Keycloak to superset Redirecting #29713
Replies: 1 comment 2 replies
-
Yes, you can use a Keycloak token to handle the redirection to the Superset dashboard. Here’s how you can achieve this:
Step-by-Step Implementation
Additionally, you can configure Superset to support OAuth2 tokens for database authentication by setting up the DATABASE_OAUTH2_CLIENTS: dict[str, dict[str, Any]] = {
# Example configuration for Google Sheets
# "Google Sheets": {
# "id": "XXX.apps.googleusercontent.com",
# "secret": "GOCSPX-YYY",
# "scope": " ".join(
# [
# "https://www.googleapis.com/auth/drive.readonly",
# "https://www.googleapis.com/auth/spreadsheets",
# "https://spreadsheets.google.com/feeds",
# ]
# ),
# "authorization_request_uri": "https://accounts.google.com/o/oauth2/v2/auth",
# "token_request_uri": "https://oauth2.googleapis.com/token",
# },
}
DATABASE_OAUTH2_JWT_ALGORITHM = "HS256"
DATABASE_OAUTH2_TIMEOUT = timedelta(seconds=30) By following these steps and configurations, you can use a Keycloak token to handle the redirection to the Superset dashboard [1][2][3]. |
Beta Was this translation helpful? Give feedback.
-
I have my own user management i want to configure keycloak for authentication and redirect to superset dashboard
can we user keycloak token to redirect in superset if yes than how can we do this
Beta Was this translation helpful? Give feedback.
All reactions