GitHub user Anurag340 created a discussion: Help with superset login 
authentication

Unable to Authenticate via API (Google OAuth2 System + JWT API Docs Mismatch)

Hey everyone ๐Ÿ‘‹,

Our system uses Google OAuth2 for login, but the API documentation mainly 
describes endpoints for JWT-based authentication. Iโ€™ve been trying to 
authenticate programmatically to retrieve chart screenshots, but Iโ€™m running 
into issues.

๐Ÿ” What I Tried

I attempted to log in using different combinations of credentials โ€”
username: tried variations like google_xxxxxxx..., first name, last name
password: personal password
role: admin

๐Ÿงช Endpoints Tried

I tested the following endpoints:

/api/v1/security/login
/api/v1/security/guest_token
/api/v1/database/oauth2

Unfortunately, none of these worked.

๐ŸŽฏ Goal

My goal is to:

Authenticate via API and obtain the necessary credentials/tokens.

Use those credentials to hit the following endpoints:

/api/v1/chart/{pk}/cache_screenshot
/api/v1/chart/{pk}/screenshot/{digest}/

Retrieve the chart screenshot successfully.

๐Ÿค” Question

Has anyone managed to authenticate via API when the system uses Google OAuth2 
but the documentation only covers JWT token-based login?
If so, could you share how you handled token retrieval or any workarounds?

Thanks in advance! ๐Ÿ™

GitHub link: https://github.com/apache/superset/discussions/36024

----
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]

Reply via email to