-
Notifications
You must be signed in to change notification settings - Fork 0
IBX-8356: Reworked Ibexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface usages to comply with Symfony-based authentication
#67
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
1205c27 to
d5946ba
Compare
291aa09 to
74f5a21
Compare
Ibexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface usages to comply with Symfony-based authentication
…henticatorInterface usages to comply with Symfony-based authentication
74f5a21 to
3884487
Compare
|
@konradoboza Could you please provide example of request with authentication using JWT? |
|
@adamwojs since you cannot perform such queries via GraphiQL client (no way to specify additional headers), the only way is to make a cURL request with |
Ibexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface usages to comply with Symfony-based authenticationIbexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface usages to comply with Symfony-based authentication
Ibexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface usages to comply with Symfony-based authenticationIbexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface usages to comply with Symfony-based authentication
f43c65e to
52e0d1f
Compare
52e0d1f to
51e57fe
Compare
|



Related PRs:
Ibexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterfaceto be replaced with Symfony-based authentication core#375Description:
After going through multiple approaches we realized that
Authenticationmutation should not authenticate user. Instead we simply compare credentials without any security voodoo at this point and return newly generated JWT Token. From now on, it can be used asAuthorization: Bearer <token_here>header to perform any operations in Ibexa Repository.Example query:
Generating token via GraphQL mutation (fully backwards compatible with what it was before):
produces:
Then use the token as in:
where
json.jsonfile might contain some query (to increase readability):Response should look mor or less as follows:
For QA:
All related to JWT in GraphQL needs to be checked.
Documentation:
We should probably mention dropped code even though query and their responses are the same.