|
| 1 | +======================================= |
| 2 | +User authentication with OpenID Connect |
| 3 | +======================================= |
| 4 | + |
| 5 | +Nextcloud users can authenticate via an external identity provider. |
| 6 | +Nextcloud can also be an identity provider itself. |
| 7 | + |
| 8 | +Authentication in Nextcloud |
| 9 | +--------------------------- |
| 10 | + |
| 11 | +The `OpenID Connect user backend app <https://apps.nextcloud.com/apps/user_oidc>`_ makes it possible for users to |
| 12 | +authenticate using external Oidc identity providers. |
| 13 | + |
| 14 | +This app can optionally be in charge of user provisioning (by creating users when they first connect) or rely on |
| 15 | +other user backends and only take care of authentication. |
| 16 | + |
| 17 | +`More details in the project's README <https://github.com/nextcloud/user_oidc#user_oidc>`_ |
| 18 | + |
| 19 | +Using Nextcloud as an identity provider |
| 20 | +--------------------------------------- |
| 21 | + |
| 22 | +The `OIDC Identity Provider community app <https://apps.nextcloud.com/apps/oidc>`_ |
| 23 | +can be installed to make Nextcloud an identity provider for other services. |
| 24 | + |
| 25 | +This app will allow any Nextcloud user (managed by any user backend) to authenticate during an Oidc login flow. |
| 26 | +This is useful if you want your Nextcloud instance to be the authority regarding authentication and user profile data |
| 27 | +among multiple services. |
| 28 | + |
| 29 | +Bearer token validation |
| 30 | +----------------------- |
| 31 | + |
| 32 | +Nextcloud can accept Oidc ID tokens and access tokens as valid bearer token for API requests. |
| 33 | +If using an external identity provider, only the ``user_oidc`` app is necessary. |
| 34 | + |
| 35 | +If Nextcloud is the identity provider, you will naturally need the ``oidc`` app to make Nextcloud an Oidc provider, |
| 36 | +and also the ``user_oidc`` app because it will take care of validating API requests authentication. |
| 37 | +In user_oidc, the ``oidc_provider_bearer_validation`` config flag needs to be set to true so ``user_oidc`` knows |
| 38 | +it needs to ask the ``oidc`` app to validate the received bearer tokens. |
| 39 | + |
| 40 | +`More details on bearer token validation <https://github.com/nextcloud/user_oidc#bearer-token-validation>`_ |
0 commit comments