Skip to content

Conversation

@VincentLanglet
Copy link
Contributor

Hi @chalasr,

I have a use case when I'd like to return an extra data in the response of the authentication, basically a user "state" (in context of SSO to tell if the user was created or already exists).

In my service I already do my work and then call

$this->authenticationSuccessHandler->handleAuthenticationSuccess($user)

manually.

Unfortunately I cannot pass aditionnal data this way. Listening the Events::AUTHENTICATION_SUCCESS event to modify the data is not a solution, since the listener won't have the information i want to add to the event data.

The best solution I see is, in the same way it's currently possible to pass a specific jwt, to allow passing extra data on the handleAuthenticationSuccess method.

I try to implement it ; WDYT ?

@VincentLanglet
Copy link
Contributor Author

Failure seems unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant