-
Notifications
You must be signed in to change notification settings - Fork 39
Add new RequestMatch authentication method #35
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
Conversation
* | ||
* @author Márk Sági-Kazár <[email protected]> | ||
*/ | ||
final class RequestMatch implements Authentication |
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.
maybe we could call this ConditionalAuthentication?
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.
We should somehow have the request in the name...otherwise what condition would it be?
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.
RequestConditional?
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.
RequestAware?
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.
I fear we can't find a self-explanatory name enough, we have to document it anyway.
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.
i would like RequestConditional better. and explain it - the phpdoc above looks fine to me.
ec83dc0
to
0f422df
Compare
Yeah, I replaced the matching auth with the request matcher interface one. It indeed relied on that PR, as the deprecated matcher now uses the callback request matcher internally. |
7ab3a93
to
9239314
Compare
9239314
to
f7d3a21
Compare
Add new RequestMatch authentication method
@sagikazarmark found this branch lying around. it seems to add on #34 - is it relevant?