Skip to content

Trying to configure Okta/Auth0 OIDC on Netbox v3.6.4 but getting a 404 error #14185

Answered by candlerb
erosa23 asked this question in Help Wanted!
Discussion options

You must be logged in to vote

Looks to me like python-social-auth is broken.

PSA has hard-coded URL paths with "v1" in their name here:

class OktaMixin:
    def api_url(self):
        return append_slash(self.setting("API_URL"))

    def authorization_url(self):
        return self._url("v1/authorize")

    def access_token_url(self):
        return self._url("v1/token")

OktaMixin is inherited by OktaOAuth2, and in turn by OktaOpenIdConnect

But the Okta URL you gave clearly doesn't use v1 in the paths.

$ curl -sS https://dev-xyt2ijb2tbk2pnrt.us.auth0.com/.well-known/openid-configuration | python3 -mjson.tool
{
    "issuer": "https://dev-xyt2ijb2tbk2pnrt.us.auth0.com/",
    "authorization_endpoint": "https://dev-xyt2i…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@erosa23
Comment options

Answer selected by erosa23
Comment options

You must be logged in to vote
1 reply
@candlerb
Comment options

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