Skip to content

Commit a105c0a

Browse files
authored
Merge pull request #30 from zackchengyk/patch-1
Fix Node example's client config's `id_token_signed_response_alg` value
2 parents e5721c9 + 28a059e commit a105c0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/nodejs/src/router.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ const singpassIssuer = await Issuer.discover(config.ISSUER_URL);
99

1010
const singpassClient = new singpassIssuer.Client(
1111
{
12+
// All the hardcoded values used below are taken from Singpass' OpenID Provider Metadata,
13+
// which can be found at config.ISSUER_URL + '/.well-known/openid-configuration'
1214
client_id: config.CLIENT_ID,
1315
response_types: ['code'],
1416
token_endpoint_auth_method: 'private_key_jwt',
15-
id_token_signed_response_alg: config.KEYS.PRIVATE_SIG_KEY.alg,
17+
id_token_signed_response_alg: 'ES256',
1618
userinfo_encrypted_response_alg: config.KEYS.PRIVATE_ENC_KEY.alg,
1719
userinfo_encrypted_response_enc: 'A256GCM',
1820
userinfo_signed_response_alg: config.KEYS.PRIVATE_SIG_KEY.alg,

0 commit comments

Comments
 (0)