We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e5721c9 + 28a059e commit a105c0aCopy full SHA for a105c0a
examples/nodejs/src/router.mjs
@@ -9,10 +9,12 @@ const singpassIssuer = await Issuer.discover(config.ISSUER_URL);
9
10
const singpassClient = new singpassIssuer.Client(
11
{
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'
14
client_id: config.CLIENT_ID,
15
response_types: ['code'],
16
token_endpoint_auth_method: 'private_key_jwt',
- id_token_signed_response_alg: config.KEYS.PRIVATE_SIG_KEY.alg,
17
+ id_token_signed_response_alg: 'ES256',
18
userinfo_encrypted_response_alg: config.KEYS.PRIVATE_ENC_KEY.alg,
19
userinfo_encrypted_response_enc: 'A256GCM',
20
userinfo_signed_response_alg: config.KEYS.PRIVATE_SIG_KEY.alg,
0 commit comments