This is an automated email from the ASF dual-hosted git repository.
dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 3b4924f0b0 docs: small fixes for OAuth (#20640)
3b4924f0b0 is described below
commit 3b4924f0b0fc03a69f9b43f307d41d990fef0857
Author: Daniel Vaz Gaspar <[email protected]>
AuthorDate: Thu Jul 7 15:01:36 2022 +0100
docs: small fixes for OAuth (#20640)
---
docs/docs/installation/configuring-superset.mdx | 4 ++++
docs/docs/installation/running-on-kubernetes.mdx | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/docs/docs/installation/configuring-superset.mdx
b/docs/docs/installation/configuring-superset.mdx
index 05f845c114..aefc12d603 100644
--- a/docs/docs/installation/configuring-superset.mdx
+++ b/docs/docs/installation/configuring-superset.mdx
@@ -149,7 +149,11 @@ Make sure the pip package
[`Authlib`](https://authlib.org/) is installed on the
First, configure authorization in Superset `superset_config.py`.
```python
+from flask_appbuilder.security.manager import AUTH_OAUTH
+
+# Set the authentication type to OAuth
AUTH_TYPE = AUTH_OAUTH
+
OAUTH_PROVIDERS = [
{ 'name':'egaSSO',
'token_key':'access_token', # Name of the token in the response of
access_token_url
diff --git a/docs/docs/installation/running-on-kubernetes.mdx
b/docs/docs/installation/running-on-kubernetes.mdx
index af76187517..755172a7ce 100644
--- a/docs/docs/installation/running-on-kubernetes.mdx
+++ b/docs/docs/installation/running-on-kubernetes.mdx
@@ -239,7 +239,7 @@ configOverrides:
# This will make sure the redirect_uri is properly computed, even with SSL
offloading
ENABLE_PROXY_FIX = True
- from flask_appbuilder.security.manager import (AUTH_OAUTH, AUTH_DB)
+ from flask_appbuilder.security.manager import AUTH_OAUTH
AUTH_TYPE = AUTH_OAUTH
OAUTH_PROVIDERS = [
{