How to authenticate with REST API
See original GitHub issueMake sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if any
- I have reproduced the issue with at least the latest released version of superset
- I have checked the issue tracker for the same issue and I haven’t found one similar
Superset version
0.17.1
Expected results
N/A
Actual results
N/A
Steps to reproduce
Sorry if this has been answered somewhere else, but is there any documentation on how to authenticate through the REST API?
Specifically, I’d like to be able to return JSON from the /superset/explore_json/
endpoint (copied from the UI slice view) using cURL (or something similar) but I get the following response when I do:
{
"message": "Access is Denied",
"severity": "danger"
}
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:27 (10 by maintainers)
Top Results From Across the Web
Best practices for REST API security: Authentication and ...
Best practices for REST API security: Authentication and authorization · Always use TLS · Use OAuth2 for single sign on (SSO) with OpenID...
Read more >4 Most Used REST API Authentication Methods
4 Most Used REST API Authentication Methods · Basic · Authorization Header · access token: sent like an API key, it allows the...
Read more >5 fundamental strategies for REST API authentication
There are various authentication methods for REST APIs, ranging from basic credentials and token encryption to complex, multilayered access ...
Read more >REST API Authentication - Stack Overflow
In a nutshell, let the client send a username and password with every request using HTTP Basic Auth (over SSL!), or authenticate once...
Read more >REST API authentication - Oracle Commerce
REST API authentication · The response includes an access token to use in subsequent requests. Each API you log into returns a separate...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those still looking for some kind of solution - the following example seems to work:
This is how we do it in the unit tests: https://github.com/airbnb/superset/blob/master/tests/base_tests.py#L127
But that may vary depending on the type of authentication you use.