I have tried this for Symfony 4.2.2.
When i edit my security.yaml, i have this error : " Unrecognized option "knpu_oauth2_client" under "security". Available options are "access_control", "access_decision_manager", "access_denied_url", "always_authenticate_before_granting", "encoders", "erase_credentials", "firewalls", "hide_user_not_found", "providers", "role_hierarchy", "session_fixation_strategy". "
Thank you for reply, I tried to get same error and I did as I said in this article and I got same error. I found the solution.
You have to insert these lines. security and knpu_oauth2_client must be same level for yaml format. Don't push knpu_oauth2_client to under security section.
security:# https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loadedproviders:my_provider:entity:{class:App:User,property:username}firewalls:# disables authentication for assets and the profiler, adapt it according to your needsdev:pattern:^/(_(profiler|wdt)|css|images|js)/security:falsemain:anonymous:~logout:path:/logouttarget:/loginlogout_on_user_change:trueguard:authenticators:-App\Security\GoogleAuthenticatorknpu_oauth2_client:clients:google:type:googleclient_id:'%env(resolve:GOOGLE_CLIENT_ID)%'client_secret:'%env(resolve:GOOGLE_CLIENT_SECRET)%'redirect_route:connect_google_checkredirect_params:{}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi,
I have tried this for Symfony 4.2.2.
When i edit my security.yaml, i have this error : " Unrecognized option "knpu_oauth2_client" under "security". Available options are "access_control", "access_decision_manager", "access_denied_url", "always_authenticate_before_granting", "encoders", "erase_credentials", "firewalls", "hide_user_not_found", "providers", "role_hierarchy", "session_fixation_strategy". "
I don't know how can i solve it ?
Hi ,
Did you found a solution for this problem , cause i have the same and couldn't fix it ?
Hi fellas,
Thank you for reply, I tried to get same error and I did as I said in this article and I got same error. I found the solution.
You have to insert these lines. security and knpu_oauth2_client must be same level for yaml format. Don't push knpu_oauth2_client to under security section.