Midlertidig debug-logging for Authentik user ID
This commit is contained in:
parent
ccb29e843a
commit
7eb7c2f1db
2 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ const workspaceHandle: Handle = async ({ event, resolve }) => {
|
|||
const user = session?.user;
|
||||
|
||||
if (user?.id) {
|
||||
console.log('[workspace] user.id:', user.id, 'user.name:', user.name);
|
||||
event.locals.user = {
|
||||
id: user.id,
|
||||
name: user.name ?? '',
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ const authentik: Provider = {
|
|||
clientId: env.AUTHENTIK_CLIENT_ID,
|
||||
clientSecret: env.AUTHENTIK_CLIENT_SECRET,
|
||||
profile(profile) {
|
||||
console.log('[authentik] profile sub:', profile.sub, 'name:', profile.name);
|
||||
return {
|
||||
id: profile.sub,
|
||||
name: profile.name ?? profile.preferred_username,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue