API authenthication using db-provider when connected to LDAP #30590
-
Running Superset 3.1 using LDAP provider. WOrks like an charm. Now, we are implementing OpenMetadata, and connecting to the API using my LDAP credentials works and I can ingest stuff. However, since this is an corporate AD, I have no "service account" available, and I can't use my personal credentials, since they expire every x days. So the solution would be to use db-authentication on the api. Doing an post /api/v1/security/login returns:
Some sources points to an variable: Anyone had success with using db-provider for API access when using other provider for UI? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @ziggekatten! I'm here to help you with any bugs, questions, or anything else you need assistance with. Let's tackle this together! The error message you're encountering suggests that the API is not allowing an alternative authentication provider. The Here are a few steps you can try:
If these steps don't resolve the issue, it might be necessary to look deeper into the codebase or consider alternative approaches for service account management. |
Beta Was this translation helpful? Give feedback.
Hey @ziggekatten! I'm here to help you with any bugs, questions, or anything else you need assistance with. Let's tackle this together!
The error message you're encountering suggests that the API is not allowing an alternative authentication provider. The
AUTH_API_LOGIN_ALLOW_MULTIPLE_PROVIDERS
variable is intended to enable multiple authentication providers for API access, but it seems it might not be functioning as expected in your setup.Here are a few steps you can try:
Verify Configuration: Ensure that
AUTH_API_LOGIN_ALLOW_MULTIPLE_PROVIDERS
is correctly set in yoursuperset_config.py
file. Double-check for any typos or syntax errors.Restart Superset: After making changes to th…