IdP findAccount

This commit is contained in:
Konstantin Wohlwend 2024-12-01 01:04:36 -08:00
parent bcdd7b6da7
commit 82fac977af

View File

@ -205,6 +205,15 @@ export async function createOidcProvider(options: { id: string, baseUrl: string
ctx.type = "application/json";
ctx.body = JSON.stringify(out);
},
async findAccount(ctx, sub, token) {
return {
accountId: sub,
async claims(use, scope, claims, rejected) {
return { sub };
},
};
},
});
oidc.on('server_error', (ctx, err) => {