Authentik Provider
리소스
설정
Callback URL
https://example.com/api/auth/callback/authentik
환경 변수
AUTH_AUTHENTIK_ID
AUTH_AUTHENTIK_SECRET
AUTH_AUTHENTIK_ISSUER
설정
/auth.ts
import NextAuth from "next-auth";
import Authentik from "next-auth/providers/authentik";
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [Authentik({
clientId: AUTH_AUTHENTIK_CLIENT_ID
clientSecret: AUTH_AUTHENTIK_CLIENT_SECRET
issuer: AUTH_AUTHENTIK_ISSUER
})]
});
💡
issuer는 슬래시 없이 슬러그를 포함해야 합니다. 예를 들어, https://my-authentik-domain.com/application/o/My_Slug