Skip to content

Commit

Permalink
fix: Add issuer to OIDC callback parameters
Browse files Browse the repository at this point in the history
Closes #562
  • Loading branch information
meltyshev committed Dec 9, 2023
1 parent 80d12aa commit 28c3f28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions server/api/helpers/users/get-or-create-one-using-oidc.js
Expand Up @@ -24,8 +24,13 @@ module.exports = {
try {
const tokenSet = await client.callback(
sails.config.custom.oidcRedirectUri,
{ code: inputs.code },
{ nonce: inputs.nonce },
{
iss: sails.config.custom.oidcIssuer,
code: inputs.code,
},
{
nonce: inputs.nonce,
},
);
userInfo = await client.userinfo(tokenSet);
} catch (e) {
Expand Down

0 comments on commit 28c3f28

Please sign in to comment.