Warm tip: This article is reproduced from stackoverflow.com, please click
authentication django flask oauth-2.0 superset

Superset Flask OAuth client no redirect_uri

发布于 2020-04-11 11:38:55

I am trying to authenticate superset flask user with OAuth (flask-oauthlib) by having Django Oauth server. But, In flask config.py OAUTH_PROVIDERS, there is no redirect_uri for getting the temporary authorization code from django oauth server. How do i fix this?

Questioner
A100
Viewed
92
A100 2020-02-11 14:47

I solved this issue, for people facing this, the redirect uri has to be given in this format in your custom OAuth2 server <your_application_client_domain>/oauth-authorized/<provider_name>

For example, If I create an OAuth2 provider dictionary entry called djangooauth in flask settings with all credentials given to it, the redirect uri to be given to the server while creating a client would be <client-domain>/oauth-authorized/djangooauth