Skip to content

Commit 7d51e20

Browse files
committed
remove token signing key algorithm from client details
1 parent 2d6d99c commit 7d51e20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/DynamicClientRegistration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const requestDynamicClientRegistration = async (
1515
const client_registration_request_body = {
1616
...client_details,
1717
grant_types: ["authorization_code", "refresh_token"],
18-
id_token_signed_response_alg: "ES256",
18+
// id_token_signed_response_alg: "ES256", // omitting as NSS does not support ES256 while CSS does not support RS256
1919
token_endpoint_auth_method: "none",
2020
application_type: "web",
2121
subject_type: "public",

tests/core/DynamicClientRegistration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('requestDynamicClientRegistration', () => {
7272
expect(requestBody).toMatchObject({
7373
redirect_uris: ['https://app.example.com/redirect'],
7474
grant_types: ['authorization_code', 'refresh_token'],
75-
id_token_signed_response_alg: 'ES256',
75+
// id_token_signed_response_alg: 'ES256', // as commented out in the code because this is actually not required for this library, we can use what jose supports
7676
token_endpoint_auth_method: 'none',
7777
application_type: 'web',
7878
subject_type: 'public',

0 commit comments

Comments
 (0)