Skip to content

Commit

Permalink
docs: Clarify wording in the autoprovisioning section
Browse files Browse the repository at this point in the history
Fixes #9613
  • Loading branch information
rhafer committed Aug 6, 2024
1 parent b8335f1 commit 8c624ff
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions services/proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ A number of prerequisites must be met for automatic user provisioning to work:
* ownCloud Infinite Scale must be configured to use an external OpenID Connect IDP
* The `graph` service must be configured to allow updating users and groups
(`GRAPH_LDAP_SERVER_WRITE_ENABLED`).
* The IDP must return a unique value in the user's claims (as part of the
userinfo response and/or the access tokens) that can be used to identify
the user. This claim needs to be stable and cannot be changed for the whole
lifetime of the user. That means, if a claim like `email` or
`preferred_username` is used, you must ensure that the user's email address or
username never changes.
* One of the claim values returned by the IDP as part of the userinfo response
or the access token must be unique and stable for the user. I.e. the value
must not change for the whole lifetime of the user. This claim is configured
via the `PROXY_USER_OIDC_CLAIM` environment variable (see below). A natural
choice would e.g. be the `sub` claim which is guaranteed to be unique and
stable per IDP. If a claim like `email` or `preferred_username` is used, you
have to ensure that the user's email address or username never changes.

### Configuration

Expand Down Expand Up @@ -111,8 +112,12 @@ service using the claim values configured in
`PROXY_AUTOPROVISION_CLAIM_USERNAME`, `PROXY_AUTOPROVISION_CLAIM_EMAIL` and
`PROXY_AUTOPROVISION_CLAIM_DISPLAYNAME`.

If the user does already exist, the proxy will check if the user's email or
displayname has changed and updates those accordingly via `graph` service.
If the user does already exist, the proxy checks if the displayname has changed
and updates that accordingly via `graph` service.

Unless the claim configured via `PROXY_AUTOPROVISION_CLAIM_EMAIL` is the same
as the one set via `PROXY_USER_OIDC_CLAIM` the proxy will also check if the
email address has changed and update that as well.

Next, the proxy will check if the user is a member of the groups configured in
`PROXY_AUTOPROVISION_CLAIM_GROUPS`. It will add the user to the groups listed
Expand Down

0 comments on commit 8c624ff

Please sign in to comment.