Apply suggestions from code review

Co-authored-by: Will Lewis <willl@element.io>
This commit is contained in:
Quentin Gliech
2023-11-22 15:13:28 +01:00
co-authored by Will Lewis
parent ef23b06261
commit eebbf2ff6c
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -52,12 +52,12 @@ A Jinja2 template is used as mapping for each attribute. The template currently
The following default templates are used:
- `localpart`: `{{ user.preferred_username }}`
- `display_name`: `{{ user.name }}`
- `displayname`: `{{ user.name }}`
- `email`: `{{ user.email }}`
## Multiple providers behaviour
Mutiple authentication methods can be configured at the same time, in which case the authentication service will let the user choose which one to use.
Multiple authentication methods can be configured at the same time, in which case the authentication service will let the user choose which one to use.
This is true if both the local password database and an upstream provider are configured, or if multiple upstream providers are configured.
In such cases, the `human_name` parameter of the provider configuration is used to display a human-readable name for the provider, and the `brand_name` parameter is used to show a logo for well-known providers.
@@ -93,7 +93,7 @@ upstream_oauth2:
localpart:
action: require
template: "{{ user.preferred_username }}"
display_name:
displayname:
action: suggest
template: "{{ user.name }}"
email:
@@ -144,7 +144,7 @@ upstream_oauth2:
```
## GitLab
### GitLab
1. Create a [new application](https://gitlab.com/profile/applications).
2. Add the `openid` scope. Optionally add the `profile` and `email` scope if you want to import the user's name and email.
@@ -288,7 +288,7 @@ upstream_oauth2:
localpart:
action: require
template: "{{ (user.preferred_username | split('@'))[0] }}"
display_name:
displayname:
action: suggest
template: "{{ user.name }}"
email:
+1 -1
View File
@@ -78,7 +78,7 @@ http:
The following additional resources are available, although it is recommended to serve them on a separate listener, not exposed to the public internet:
- `name: prometheus`: serves the a Prometheus-compatible metrics endpoint on `/metrics`, if the Prometheus exporter is enabled in `telemetry.metrics.exporter`.
- `name: prometheus`: serves a Prometheus-compatible metrics endpoint on `/metrics`, if the Prometheus exporter is enabled in `telemetry.metrics.exporter`.
- `name: health`: serves the health check endpoint on `/health`.
## `database`