forked from nextauthjs/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docs for authentik provider (nextauthjs#199)
* Added docs for authentik provider * Update docs/providers/authentik.md Co-authored-by: Balázs Orbán <[email protected]> Co-authored-by: Balázs Orbán <[email protected]>
- Loading branch information
1 parent
b28c1c6
commit d1d9623
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
id: authentik | ||
title: Authentik | ||
--- | ||
|
||
## Documentation | ||
|
||
https://goauthentik.io/docs/providers/oauth2 | ||
|
||
## Options | ||
|
||
The **Authentik Provider** comes with a set of default options: | ||
|
||
- [Authentik Provider options](https://github.com/nextauthjs/next-auth/blob/main/src/providers/authentik.ts) | ||
|
||
You can override any of the options to suit your own use case. | ||
|
||
## Example | ||
|
||
```js | ||
import AuthentikProvider from "next-auth/providers/authentik"; | ||
... | ||
providers: [ | ||
AuthentikProvider({ | ||
clientId: process.env.AUTHENTIK_ID, | ||
clientSecret: process.env.AUTHENTIK_SECRET, | ||
issuer: process.env.AUTHENTIK_ISSUER, | ||
}) | ||
] | ||
... | ||
``` | ||
|
||
:::note | ||
`issuer` should include the slug – e.g. `https://my-keycloak-domain.com/application/o/My_Slug/` | ||
::: |