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