GitHub user user1500177 created a discussion: Superset 6: Bypass Login page of superset No Longer Working (Worked in v5)
Hi Superset team, After upgrading from Superset 5 to Superset 6, we’ve encountered an issues that used to work previously (in version 5): 1. Bypass Login via Custom OAuth View In Superset 5, we used a custom AuthOAuthView to bypass the login page if the user was already authenticated with our OAuth provider. Our code looked like this (Was inspired from https://github.com/dpgaspar/Flask-AppBuilder/issues/2225#issuecomment-2074682623): class CustomSsoAuthOAuthView(AuthOAuthView): @expose("/login/") @expose("/login/<provider>") def login(self, provider: Optional[str] = None) -> WerkzeugResponse: if provider is None: providers = [k for k in self.appbuilder.sm.oauth_remotes.keys()] if len(providers) == 1: provider = providers[0] return super().login(provider) This allowed users to be logged in automatically (Without seeing the LOGIN page of the superset) if they were already authenticated with the OAuth provider (ie ; bypassing the login page of superset) , if thy were not authenticated with the Oauth provider then they would have seen or encoutered the OAuth providers sign in page - THIS APPROACH WAS 100% working in superset version 5] After upgrading to Superset 6, this no longer works—users are always redirected to the login page, even if they are already authenticated. Is this related to the upgrade to Flask-AppBuilder 5.0.0 or any other breaking change in Superset 6? Is there a new recommended way to implement this bypass login behavior in version 6- so that only the OAUTH login page has to be seen by the user (if he or she is not signed in OAUTH provider). Refer image for the page that i used to avoid <img width="679" height="415" alt="image" src="https://github.com/user-attachments/assets/2fb6d7e3-23a9-495e-b7a5-6782b9daa9cc" /> GitHub link: https://github.com/apache/superset/discussions/37057 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
