Skip to content

New access_token Authenticator Section#399

Open
Spomky wants to merge 1 commit into
knpuniversity:mainfrom
Spomky:patch-1
Open

New access_token Authenticator Section#399
Spomky wants to merge 1 commit into
knpuniversity:mainfrom
Spomky:patch-1

Conversation

@Spomky
Copy link
Copy Markdown

@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
Copy Markdown
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?

Comment thread README.md
# app/config/packages/security.yaml
security:
# ...
+ enable_authenticator_manager: true
Copy link
Copy Markdown

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
Copy Markdown
Member

@bocharsky-bw bocharsky-bw Feb 5, 2024

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.

3 participants