How can I bypass login page for Superset when using OAuth2 for authentication? How can I bypass login page for Superset when using OAuth2 for authentication? flask flask

How can I bypass login page for Superset when using OAuth2 for authentication?


I had the same issue (although not with Okta, and version 0.37). From the javascript in that login page I figured out the final URL. Look at the signin function that’s called when you click the button:

function signin() {    if (currentSelection != "") {        window.location.href = baseLoginUrl + currentSelection + next;    }}

In your case I guess it would be something like:

http://[site]:8088/login/okta/?next=[dashboard]

Disclaimer: I’m absolutely not sure if this is the proper way to do it, but in my case it was just a POC so it didn’t matter much.

Also you should make sure you understand those 3 settings in superset_config.py regarding the Superset session cookie behavior in HTTP vs. HTTPS:

SESSION_COOKIE_HTTPONLY = FalseSESSION_COOKIE_SAMESITE = "None"SESSION_COOKIE_SECURE = True

And of course this makes sense only if you want to allow 1 authentication provider.