docs: update seafile docs (#4151)
This fixes an issue with the Seafile OIDC integration docs.pull/4145/head^2
parent
a894e272cb
commit
a471c31d74
|
@ -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
|
||||||
|
@ -55,12 +58,11 @@ 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"),
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue