-
Notifications
You must be signed in to change notification settings - Fork 106
Add PrimaryKeySessionAuthenticator #710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.next
Are you sure you want to change the base?
Conversation
->expects($this->exactly(2)) | ||
->method('check') | ||
->with( | ||
...static::withConsecutive(['Auth'], ['Auth']), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why static
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is copy and paste from the other Session test.
public function __construct(IdentifierInterface $identifier, array $config = []) | ||
{ | ||
$config += [ | ||
'identifierKey' => 'key', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're inheriting from SessionAuthenticator
how does identifierKey
interact with fields
?
What is key
here? I don't see that as a field in the auth_users
table that your tests use. Is it primarily to be aligned with the identifier configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key here maps to the dataField of the identifier, this is how they pass in the data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fields is unused afaik.
a7a1c8c
to
3825a48
Compare
3825a48
to
fba18a2
Compare
Replaces #707
Ports dereuromark/cakephp-tinyauth#153 as direct class into this plugin.