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

json_login + GoogleAuthenticator #416

Open
SecondChance12 opened this issue Sep 1, 2023 · 0 comments
Open

json_login + GoogleAuthenticator #416

SecondChance12 opened this issue Sep 1, 2023 · 0 comments

Comments

@SecondChance12
Copy link

Hi can you help me please
I try to use json_login and GoogleAuthenticator

security:
    firewalls:
        api:
            pattern: ^/api
            provider: app_user_provider
            stateless: true
            json_login:
                check_path: /api_sign_in
                username_path: email
                password_path: password
            logout:
                path: /api_logout
                target: /

        main:
           
            provider: app_user_provider
            
            entry_point: App\Security\Socials\GoogleAuthenticator
            custom_authenticators:
                - App\Security\Socials\GoogleAuthenticator

But anyway app try to login with Google
(Also I try to use all in “main” firewall, not help)

Can you please provide the example how to use it together:
json_login for api login and google_authenticator for social login

Thank 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

No branches or pull requests

1 participant