From b04f86e85528199553ca5c948424b412aa5b4b51 Mon Sep 17 00:00:00 2001 From: Carlos Esteban Lopez Date: Mon, 3 Oct 2022 11:46:16 -0500 Subject: [PATCH] docs: Use correct user info name Signed-off-by: Carlos Esteban Lopez --- docs/auth/oidc.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/auth/oidc.md b/docs/auth/oidc.md index 321559440e..732a8d9c0d 100644 --- a/docs/auth/oidc.md +++ b/docs/auth/oidc.md @@ -176,7 +176,7 @@ export default async function createPlugin( + resolver(info, ctx) { + const userRef = stringifyEntityRef({ + kind: 'User', -+ name: info.profile.email!, ++ name: info.result.userinfo.sub, + namespace: DEFAULT_NAMESPACE, + }); + return ctx.issueToken({ @@ -191,7 +191,6 @@ export default async function createPlugin( } ``` - ### The configuration Since we are using our custom OIDC Auth Provider, we need to add a configuration based