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

New access_token Authenticator Section #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Spomky
Copy link

@Spomky Spomky commented Apr 4, 2023

This PR proposes to use the new access_token authenticator for Symfony 6.2+.
Related to the discussion in symfony/symfony#49830

Note: yet, the code has not been tested

@bocharsky-bw bocharsky-bw mentioned this pull request Apr 6, 2023
@bocharsky-bw
Copy link
Member

Failed PHP CS Fixer changes unrelated, it was fixed in #400, you can rebase now to make it pass

Note: yet, the code has not been tested

Also, are you going to test that code yourself?

# app/config/packages/security.yaml
security:
# ...
+ enable_authenticator_manager: true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line triggers the following error in Symfony 7.0

Unrecognized option "enable_authenticator_manager" under "security". Available options are "access_control", "access_decision_manager", "access_denied_url", "erase_credentials", "firewalls", "hide_user_not_found", "password_hashers", "providers", "role_hierarchy", "session_fixation_strategy".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for testing this! That enable_authenticator_manager is not needed for Symfony 7, it was opt-in feature in previous versions but default in Sf 7, you can ignore it.

Probably makes sense to add a comment that this needed only for legacy Symfony <7 projects.

Other than that looks good in this new example to you?

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

3 participants