Superset Flask OAuth client no redirect_uri

Question:

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 the Django oauth server. How do I fix this?

Asked By: A100

||

Answers:

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

Answered By: A100
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.