AUTHORIZE_URL & ACCESS_TOKEN_URL

#1
by coyotte508 HF staff - opened

Currently:

AUTHORIZE_URL = OPENID_PROVIDER_URL + "/oauth/authorize"
ACCESS_TOKEN_URL = OPENID_PROVIDER_URL + "/oauth/token"

I don't think they're needed, if authlib can read automatically https://huggingface.co/.well-known/openid-configuration (from base url?)

Yes indeed, authlib can manage this. I made a change in this commit. Thanks for the advice :)

Wauplin changed discussion status to closed

Hmm in authlib they have lepture/authlib/authlib/oidc/discovery/well_known.py in which they try for the .well-known/openid-configuration suffix

But I can't find where it's used, so maybe you have to add the suffix yourself :thinking_face:

Sign up or log in to comment