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

Auth0 Token-URL not working #3485

Closed
nikolasbrendes opened this issue Oct 17, 2023 · 1 comment
Closed

Auth0 Token-URL not working #3485

nikolasbrendes opened this issue Oct 17, 2023 · 1 comment

Comments

@nikolasbrendes
Copy link

I tried to configure the auth0 login method for my Inventree and Authentik instance.
Finally i got it to work.

The Error was, that allauth used the wrong URL to POST the Token to Authentik. The wrong url is:
access_token_url = "{0/oauth/token".format(provider_base_url)

So I changed it to the following
access_token_url = "{0}/token/".format(provider_base_url)

I dont know if this error is specific to the Inventree instance (i dont think so)
The Error sits in the file allauth/socialaccount/providers/auth0 Line 20

@pennersr
Copy link
Owner

I have not tried to run Auth0 myself, but from what I see here:

https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow#post-to-token-url-example

... the /oauth/token url seems to be correct.

Note that you have {0/.... -- but allauth is correctly using {0}/.... Also you have a trailing slash in your token which I don't see in their documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants