auth0 / symfony

Symfony SDK for Auth0 Authentication and Management APIs.
MIT License
124 stars 74 forks source link

Problem with redirectUri #159

Closed apsylone closed 9 months ago

apsylone commented 11 months ago

Checklist

Description

Hi,

I have subdomains in my application :

I'm using the "host" argument for generating my routes.

Actually, I met a problem with the redirectUri generated by auth0/symfony.

I've followed all the steps (no more) in the Readme and my redirectUri is looking at : "https://app.planners.wip//www.planners.wip"

I'm wondering if it could be a bug because of my configuration about "host" ? It seems to not generate the absolute url with the scheme.

Any help would be greatly appreciated :)

Cheers,

Reproduction

  1. Follow the Readme for configuration
  2. Create controller with subdomain (host)
  3. Try to connect
  4. Error on auth0 when logout

invalid_request: The "returnTo" querystring parameter "https://app.domain.wip//www.domain.wip/" is not defined as a valid URL in "Allowed Logout URLs". To add a new URL, please do it here: https://manage.auth0.com/#/applications/xxxxxxxxx/settings

TRACKING ID: 919365f98da6e3e840db

Additional context

No response

jwt-auth-bundle version

latest

Symfony version

latest

PHP version

8.1

evansims commented 10 months ago

Thanks @apsylone 👋 I'll investigate this and get back to you

evansims commented 10 months ago

I'm having trouble fully understanding the issue you've described. Have you assigned the redirect_uri value in the SDK's configuration? If unassigned, the SDK will make a best guess effort at determining the intended destination.

It might help to provide a sample of the relevant code for your scenario.

apsylone commented 10 months ago

If we look at the returnTo parameter, we found this : "https://app.domain.wip//www.domain.wip/"". We could this there is a problem in it (double domains, one without the scheme)... Sadly, I don't have relevant code as we abandoned Auth0 because we weren't able to make it work with our projet...

evansims commented 9 months ago

Closing as not reproducible.