-
-
Notifications
You must be signed in to change notification settings - Fork 612
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
Add JWTAuthenticationResponse #177
Conversation
CS Fixes [WIP] Use the JWTResponse in authentication handlers Add authentication failure/success Response classes Fix tests
ping @slashfan |
OK for me, I was just waiting for the last checkbox to be checked |
I was waiting your opinion about the feature before writing the doc :) I ping you when it's done |
2f2ee10
to
55b5c22
Compare
@slashfan Doc slightly updated, ready to review. No changed typehint and no difference in events that developers listen on, no BC break. |
*/ | ||
public function setMessage($message) | ||
{ | ||
$this->message = $message; |
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.
Is it expected that the JSON body keep the initial message when the message is modified ?
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.
Good catch @GromNaN
Scrutinizer Fixes Fix segmentation fault (infinite loop) BTW fix deprecation warning if funct test config Fixed setData logic in success+failure responses Add a JWTAuthenticationFailureTest::testSetMessage
👍 |
| Q | A | |---------------|------| | Bug fix? | no | | New feature? | yes | | BC breaks? | no | | Deprecations | yes | | Fixed tickets | n/a | | Tests pass? | yes | This introduces a generic Response class for successful/failed authentication. BTW remove duplicated failure Responses with pretty much the same data (3times). Let me know what do you think. Steps: - [x] Add JWTAuthenticationFailureResponse & JWTAuthenticationSuccessResponses - [x] Add tests - [x] Update documentation
This introduces a generic Response class for successful/failed authentication.
BTW remove duplicated failure Responses with pretty much the same data (3times).
Let me know what do you think.
Steps: