0

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?

davidism
  • 121,510
  • 29
  • 395
  • 339
A100
  • 11
  • 1
  • 5

1 Answers1

0

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

A100
  • 11
  • 1
  • 5