Skip to content

Commit

Permalink
Added docs for authentik provider (nextauthjs#199)
Browse files Browse the repository at this point in the history
* 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
Pacerino and balazsorban44 authored Jan 19, 2022
1 parent b28c1c6 commit d1d9623
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/providers/authentik.md
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/`
:::

0 comments on commit d1d9623

Please sign in to comment.