-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSO issue with Apache Superset #14056
Comments
Hi @SajithTS thanks for opening this issue. I'm not familiar with how Apache Superset interacts with the Amazon Cognito Hosted UI endpoints. Once difference I can think of here between using Hosted UI and your custom sign in form is that Hosted UI may write session cookies under the Hosted UI domain, but the Could you inspect the network traffic when |
Thanks @HuiSF for the quick response. Here is the network results while loading the superset, https://my-domain.auth.region.amazoncognito.com/oauth2/authorize?response_type=code ........ And the response code is Which result in calling the below resource https://my-domain.auth.region.amazoncognito.com/login?response_type=code No other requests are showing |
@SajithTS, when you state that "Previously, I was using the Cognito Hosted UI for the authentication process, and Superset would automatically log in if I was already authenticated in the application..." are you calling |
@cwomack Apache Superset is handling the sign-in flow directly without any additional function calls. We are just including few auth configuaration options in the Superset project. That configuration is showing below
Note: |
@SajithTS, after doing a little more investigation on this... it looks like Amplify and Superset are not compatible in this way currently until we have support for initiating auth flows from external, 3rd party IDP's (as captured in feature request #13343). We'll consolidate this issue into #13343, but please upvote or comment on that issue to help the feature request gain community traction. |
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
Describe the bug
I am using Angular v17 in my project, with authentication handled by AWS Cognito. Apache Superset is also integrated into my application. Previously, I was using the Cognito Hosted UI for the authentication process, and Superset would automatically log in if I was already authenticated in the application.
However, I recently created a custom login page using AWS Amplify with Cognito. After this change, Superset now prompts for authentication and redirects to the Cognito Hosted UI.
Expected behavior
With the Amplify Hosted Login UI version of my application, Superset single sign-on (SSO) was working fine. I am expecting the same SSO functionality with the custom login as well.
Reproduction steps
Code Snippet
Custom login UI Login button click
Superset page redirection
Log output
aws-exports.js
Manual configuration
No response
Additional configuration
Superset config
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: