You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-08-10 22:51:31 +02:00
* add new docs version 7.11.x * update to release version v7.11.0 * add changelog entry for v7.11.0 Signed-off-by: Jan Larwig <jan@larwig.com> --------- Signed-off-by: Jan Larwig <jan@larwig.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jan Larwig <jan@larwig.com>
29 lines
1.0 KiB
Markdown
29 lines
1.0 KiB
Markdown
---
|
|
id: nextcloud
|
|
title: NextCloud
|
|
---
|
|
|
|
The Nextcloud provider allows you to authenticate against users in your
|
|
Nextcloud instance.
|
|
|
|
When you are using the Nextcloud provider, you must specify the urls via
|
|
configuration, environment variable, or command line argument. Depending
|
|
on whether your Nextcloud instance is using pretty urls your urls may be of the
|
|
form `/index.php/apps/oauth2/*` or `/apps/oauth2/*`.
|
|
|
|
Refer to the [OAuth2
|
|
documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/oauth2.html)
|
|
to set up the client id and client secret. Your "Redirection URI" will be
|
|
`https://internalapp.yourcompany.com/oauth2/callback`.
|
|
|
|
```
|
|
-provider nextcloud
|
|
-client-id <from nextcloud admin>
|
|
-client-secret <from nextcloud admin>
|
|
-login-url="<your nextcloud url>/index.php/apps/oauth2/authorize"
|
|
-redeem-url="<your nextcloud url>/index.php/apps/oauth2/api/v1/token"
|
|
-validate-url="<your nextcloud url>/ocs/v2.php/cloud/user?format=json"
|
|
```
|
|
|
|
Note: in *all* cases the validate-url will *not* have the `index.php`.
|