update documentation for oauth

This commit is contained in:
maxid
2025-12-09 20:52:31 +01:00
parent 7f4d73ed9d
commit 84879600d0

View File

@@ -60,35 +60,14 @@ Display name for the OpenID Connect provider that will be shown on the login pag
#### Redirect URI
The OpenID server will likely require a redirect URI. The exact path depends on the `name` of the OIDC provider. Note
that the `name` is case-sensitive.
The OpenID server will likely require a redirect URI. This URL will usually look something like this:
```
{FRONTEND_URL}/api/v1/auth/cookie/{OPENID_NAME}/callback
{MEDIAMANAGER_URL}/api/v1/auth/oauth/callback
```
<warning>It is very important that you set the correct callback URI, otherwise it won't work!</warning>
E.g.: I set `MyAuthProvider` as the `name` in the `[auth.openid_connect]` config section, thus the redirect URI would
be:
```
https://mediamanager.example.com/api/v1/auth/cookie/MyAuthProvider/callback
```
#### Authentik Example {collapsible="true"}
Here is an example configuration for the OpenID Connect provider for Authentik.
![authentik-example-config.png](authentik-example-config.png)
#### PocketID Example {collapsible="true"}
Here is an example configuration for the OpenID Connect provider for PocketID.
![pocketid-example-config.png](pocketid-example-config.png)
## Example Configuration
Here's a complete example of the authentication section in your `config.toml`: