docs: required information for OAuth2 configuration (#15010)

This commit is contained in:
Ke Zhu 2021-06-06 22:26:13 -04:00 committed by GitHub
parent 3138091044
commit a90e16850d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,8 @@ RequestHeader set X-Forwarded-Proto "https"
Beyond FAB supported providers (Github, Twitter, LinkedIn, Google, Azure, etc), its easy to connect
Superset with other OAuth2 Authorization Server implementations that support “code” authorization.
Make sure the pip package [`Authlib`](https://authlib.org/) is installed on the webserver.
First, configure authorization in Superset `superset_config.py`.
```python
@ -175,6 +177,10 @@ from custom_sso_security_manager import CustomSsoSecurityManager
CUSTOM_SECURITY_MANAGER = CustomSsoSecurityManager
```
Notice that the redirect URL will be `https://<superset-webserver>/oauth-authorized/<provider-name>`
When configuring an OAuth2 authorization provider if needed. For instance, the redirect URL will
be `https://<superset-webserver>/oauth-authorized/egaSSO` for the above configuration.
### Feature Flags
To support a diverse set of users, Superset has some features that are not enabled by default. For