Revert to clean Authentik provider configuration
- Use official Authentik provider instead of generic OIDC - Issue was resolved by fixing callback URL in Authentik configuration - Cleaner and more maintainable auth setup 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
10
src/auth.ts
10
src/auth.ts
@@ -4,17 +4,11 @@ import { AUTHENTIK_ID, AUTHENTIK_SECRET, AUTHENTIK_ISSUER } from "$env/static/pr
|
|||||||
|
|
||||||
export const { handle, signIn, signOut } = SvelteKitAuth({
|
export const { handle, signIn, signOut } = SvelteKitAuth({
|
||||||
providers: [
|
providers: [
|
||||||
{
|
Authentik({
|
||||||
id: "authentik",
|
|
||||||
name: "Authentik",
|
|
||||||
type: "oidc",
|
|
||||||
clientId: AUTHENTIK_ID,
|
clientId: AUTHENTIK_ID,
|
||||||
clientSecret: AUTHENTIK_SECRET,
|
clientSecret: AUTHENTIK_SECRET,
|
||||||
issuer: AUTHENTIK_ISSUER,
|
issuer: AUTHENTIK_ISSUER,
|
||||||
checks: ["state"],
|
})],
|
||||||
}],
|
|
||||||
trustHost: true,
|
|
||||||
debug: process.env.NODE_ENV === "development",
|
|
||||||
callbacks: {
|
callbacks: {
|
||||||
// this feels like an extremely hacky way to get nickname and groups into the session object
|
// this feels like an extremely hacky way to get nickname and groups into the session object
|
||||||
// TODO: investigate if there's a better way to do this
|
// TODO: investigate if there's a better way to do this
|
||||||
|
Reference in New Issue
Block a user