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

symfony error: No route found for "GET https://mydomain.tld/login/check-google" #2033

Open
lxregistry opened this issue Jan 3, 2025 · 0 comments

Comments

@lxregistry
Copy link

Q A
Bug? yes
New Feature? no
Support question? yes
Version 2.3

Actual Behavior

What is the actual behavior?
after update to version 2.3. I receive this error:

No route found for "GET https://mydomain.com/login/check-google" (from "https://accounts.google.com/")

my hwi_oauth_routing.yaml:

hwi_oauth_redirect:
    resource: "@HWIOAuthBundle/Resources/config/routing/redirect.php"
    prefix:   /connect

hwi_oauth_connect:
    resource: "@HWIOAuthBundle/Resources/config/routing/connect.php"
    prefix:   /connect

hwi_oauth_login:
    resource: "@HWIOAuthBundle/Resources/config/routing/login.php"
    prefix:   /login

google_login:
    path: /login/check-google

this is my security.yaml:


     user_secured_area:
            context: user
            # this firewall applies to all URLs
            pattern: ^/
            oauth:
                resource_owners:
                    google: '/login/check-google'
                login_path: /login
                use_forward: false
                failure_path: /login

                oauth_user_provider:
                    service: my.oauth_aware.user_provider.service

            lazy: true

            provider: user_provider

Expected Behavior

What is the behavior you expect?

why this route: /login/check-google is not found

Steps to Reproduce

What are the steps to reproduce this bug? Please add code examples,
screenshots or links to GitHub repositories that reproduce the problem.

Possible Solutions

If you have already ideas how to solve the issue, add them here.
(remove this section if not needed)

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