Skip to content

Commit

Permalink
add new scope and acr values in test
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitSerrano committed Oct 9, 2024
1 parent aed4e41 commit b8f99dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/oidcAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports.startAuth = async (conferenceDurationInMinutes, conferenceDayStri
const redirectUrl = client.authorizationUrl({
scope: "openid uid email",
state,
acr_values: config.OIDC_ACR_VALUES,
acr_values: "eidas1",
/* todo add this back
code_challenge,
code_challenge_method: 'S256',
Expand Down
3 changes: 2 additions & 1 deletion test/oidcAuthTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ describe("oidcAuth", function() {
expect(request.redirectUrl).to.equal(redirectUrl)
sinon.assert.calledWith(authorizationUrlStub.getCall(0),
{
scope: "openid",
scope: "openid uid email",
acr_values: "eidas1",
state: sinon.match.string,
nonce: sinon.match.string,
}
Expand Down

0 comments on commit b8f99dd

Please sign in to comment.