docs: update seafile docs (#4151)

This fixes an issue with the Seafile OIDC integration docs.
pull/4145/head^2
Philipp 2022-10-18 12:27:38 +02:00 committed by GitHub
parent a894e272cb
commit a471c31d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -16,9 +16,9 @@ community: true
## Tested Versions ## Tested Versions
* [Authelia] * [Authelia]
* [v4.35.5](https://github.com/authelia/authelia/releases/tag/v4.35.5) * [v4.36.9](https://github.com/authelia/authelia/releases/tag/v4.36.9)
* [Seafile] Server * [Seafile] Server
* 9.0.4 * [9.0.9](https://manual.seafile.com/changelog/server-changelog/#909-2022-09-22)
## Before You Begin ## Before You Begin
@ -39,7 +39,10 @@ This example makes the following assumptions:
To configure [Seafile] to utilize Authelia as an [OpenID Connect] Provider: To configure [Seafile] to utilize Authelia as an [OpenID Connect] Provider:
1. Edit your [Seafile] `seahub_settings.py` configuration file and add configure the following: 1. [Seafile] may require some dependencies such as `requests_oauthlib` to be manually installed.
See the [Seafile] documentation in the [see also](#see-also) section for more information.
2. Edit your [Seafile] `seahub_settings.py` configuration file and add configure the following:
```python ```python
ENABLE_OAUTH = True ENABLE_OAUTH = True
@ -52,15 +55,14 @@ OAUTH_AUTHORIZATION_URL = 'https://auth.example.com/api/oidc/authorization'
OAUTH_TOKEN_URL = 'https://auth.example.com/api/oidc/token' OAUTH_TOKEN_URL = 'https://auth.example.com/api/oidc/token'
OAUTH_USER_INFO_URL = 'https://auth.example.com/api/oidc/userinfo' OAUTH_USER_INFO_URL = 'https://auth.example.com/api/oidc/userinfo'
OAUTH_SCOPE = [ OAUTH_SCOPE = [
"openid", "openid",
"profile", "profile",
"email", "email",
"groups",
] ]
OAUTH_ATTRIBUTE_MAP = { OAUTH_ATTRIBUTE_MAP = {
"id": (True, "preferred_username"), "email": (True, "email"),
"name": (False, "name"), "name": (False, "name"),
"email": (False, "email"), "id": (False, "not used"),
} }
``` ```