antonioribeiro / antonioribeiro/tracker
not getting user login in tracker when using Sentinel
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2.9k
- Forks
- 594
- PR merge metrics
- No merged PRs in 30d
Description
i am using laravel 5 for a website. i used Sentinel (https://cartalyst.com/manual/sentinel/2.0) package for authorization and antonioribeiro/tracker (https://github.com/antonioribeiro/tracker) package for user tracking
the config is as below :
[tracker.php]
'user_model' => 'App\Sentinal_User',
'authentication_ioc_binding' => 'Cartalyst\Sentinel\Sentinel',
'authenticated_check_method' => 'check',
'authenticated_user_method' => 'getUser',
'authenticated_user_id_column' => 'id',
'authenticated_user_username_column' => 'email',
the problem is the tracker cannot recognize user login and as a result the User_id field in tracker_sessions table is always null. how to solve it ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tracker.php and the configured authentication_ioc_binding, authenticated_check_method, and authenticated_user_method, then inspect how authenticated sessions populate the User_id field in tracker_sessions. Reproduce an authenticated request using Laravel 5, Sentinel 2.0, and the listed configuration; done means the logged-in user's id is stored instead of null.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100