Skip to content

Authenticate Superset on behalf on Application 2 api by modifying AUTHOAUTHVIEW #60

@Synarcs

Description

@Synarcs

My use case is we have a second NextJs app we want this app to be the initiator of superset session. (only needed to login) to view charts in Superset

Superset Version: 1.0.2
Mode of Authentication: Oauth
Authentication Server: Keyclaok.

Based on the oauth.py code the AuthOuath View extended with custom redirection URL which generates a state with the request,.args and redirects to the authentication server. after successful login we have a token generated in keycloak, fetched corresponding user from superset db and use login_user to login that user. However, I want something like a service account that is my nextjs app will hit the post request on /login/ and further all phases would be done in the view and a global session in the browser will be initialed based on my nextjs application.

Can this be possible. I do extended the /login/ view with post handler and did all the above steps as required but when rendering the chart it again hits /login/ route now with provider as None
Any ideas how this can be Done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions