From 3b4924f0b0fc03a69f9b43f307d41d990fef0857 Mon Sep 17 00:00:00 2001 From: Daniel Vaz Gaspar Date: Thu, 7 Jul 2022 15:01:36 +0100 Subject: [PATCH] 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 05f845c114ec0..aefc12d603061 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 af76187517082..755172a7ce34d 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 = [ {