Skip to content
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

Use a null token when using the authenticator manager #4067

Merged

Conversation

alanpoulain
Copy link
Member

Q A
Branch? 2.6
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #4055, fix #3922
License MIT
Doc PR N/A

Rework of #3899.

Throw back the exception if the new authenticator manager is not used (like https://github.com/symfony/symfony/blob/494ef421c554a78b38c6779c4b7deb9a20d89923/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php#L52).

Use the NullToken if the new authenticator manager is used and if there is no token in order to use the variables in the security attribute (see also symfony/symfony#37620).

@alanpoulain
Copy link
Member Author

@weaverryan if you want to look at it 🙂

@alanpoulain alanpoulain force-pushed the fix/null-token-authenticator-manager branch from f6d579f to e12885a Compare February 17, 2021 12:26
@alanpoulain alanpoulain merged commit a3563b3 into api-platform:2.6 Feb 17, 2021
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.

None yet

2 participants