-
Notifications
You must be signed in to change notification settings - Fork 14
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
IBX-8356: Removed Ibexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface
to be replaced with Symfony-based authentication
#375
Conversation
89441ae
to
05dc0dd
Compare
Ibexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface
to be replaced with Symfony-based authorizationIbexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface
to be replaced with Symfony-based 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.
I'm assuming this can be merged after or with merging ibexa/rest#98, but there are also usages:
- https://github.com/ibexa/graphql/blob/ea8ff6d/src/lib/Mutation/Authentication.php#L11
- https://github.com/ibexa/rest/blob/ibx-8290-re-implement-rest-auth/src/lib/Server/Controller/JWT.php#L12 (seems not to be covered by IBX-8290: Reworked REST authentication to comply with the new Symfony authenticator mechanism under separate firewall rest#98).
@alongosz have you heard what they say about assuming? 😉 This PR is a next step of our authentication-switch journey which is about re-assessing and reworking all the code relying on the mentioned interface (see attached ticket). I opened this PR just to check if I am a bit surprised you already reviewed this one - marking it as |
Ibexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface
to be replaced with Symfony-based authenticationIbexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface
to be replaced with Symfony-based authentication
Ibexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface
to be replaced with Symfony-based authenticationIbexa\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface
to be replaced with Symfony-based 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.
Note to myself: this interface needs to be marked as deprecated in 4.6.
#387
…henticatorInterface` to be replaced with Symfony-based authorization
05dc0dd
to
6572a91
Compare
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.
Please remember to cover this change in upgrade guide.
Quality Gate passedIssues Measures |
…henticatorInterface` to be replaced with Symfony-based authentication #375
Description:
Should be tested together with:
ibexa/recipes-dev#124
ibexa/graphql#67
Mentioned interface relies on deprecated security concepts ergo can be safely removed. The only places where it's built upon is JWT for REST and GraphQL. Since both of those authentication mechanisms were reworked, we can proceed with
ibexa/core
changes.Besides simple removal of the interface I added
src/lib/MVC/Symfony/Security/Authentication/EventSubscriber/OnAuthenticationTokenCreatedRepositoryUserSubscriber.php
which strips redundancy whenever we need to have repository user set (stateless calls validating JWT for GraphQL, JWT for REST, RestAuthenticator and coming fromibexa/core
- DefaultSuccessHandler).TODO:
For QA:
Sanities are basically all we need to track down potential usages I might be missing at this point.
Documentation:
Removal of
AuthenticatorInterface
should be mentioned in the doc.