@@ -261,6 +261,7 @@ OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values
261
261
Collection <JWSAlgorithm > serverSigningAlgs = signService .getAllSigningAlgsSupported ();
262
262
Collection <JWSAlgorithm > clientSymmetricSigningAlgs = Lists .newArrayList (JWSAlgorithm .HS256 , JWSAlgorithm .HS384 , JWSAlgorithm .HS512 );
263
263
Collection <JWSAlgorithm > clientSymmetricAndAsymmetricSigningAlgs = Lists .newArrayList (JWSAlgorithm .HS256 , JWSAlgorithm .HS384 , JWSAlgorithm .HS512 , JWSAlgorithm .RS256 , JWSAlgorithm .RS384 , JWSAlgorithm .RS512 );
264
+ Collection <Algorithm > clientSymmetricAndAsymmetricSigningAlgsWithNone = Lists .newArrayList (JWSAlgorithm .HS256 , JWSAlgorithm .HS384 , JWSAlgorithm .HS512 , JWSAlgorithm .RS256 , JWSAlgorithm .RS384 , JWSAlgorithm .RS512 , JWSAlgorithm .NONE );
264
265
265
266
Map <String , Object > m = new HashMap <String , Object >();
266
267
m .put ("issuer" , config .getIssuer ());
@@ -279,7 +280,7 @@ OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values
279
280
m .put ("userinfo_signing_alg_values_supported" , Collections2 .transform (clientSymmetricAndAsymmetricSigningAlgs , toAlgorithmName ));
280
281
m .put ("userinfo_encryption_alg_values_supported" , Collections2 .transform (encService .getAllEncryptionAlgsSupported (), toAlgorithmName ));
281
282
m .put ("userinfo_encryption_enc_values_supported" , Collections2 .transform (encService .getAllEncryptionEncsSupported (), toAlgorithmName ));
282
- m .put ("id_token_signing_alg_values_supported" , Collections2 .transform (clientSymmetricAndAsymmetricSigningAlgs , toAlgorithmName ));
283
+ m .put ("id_token_signing_alg_values_supported" , Collections2 .transform (clientSymmetricAndAsymmetricSigningAlgsWithNone , toAlgorithmName ));
283
284
m .put ("id_token_encryption_alg_values_supported" , Collections2 .transform (encService .getAllEncryptionAlgsSupported (), toAlgorithmName ));
284
285
m .put ("id_token_encryption_enc_values_supported" , Collections2 .transform (encService .getAllEncryptionEncsSupported (), toAlgorithmName ));
285
286
m .put ("request_object_signing_alg_values_supported" , Collections2 .transform (clientSymmetricAndAsymmetricSigningAlgs , toAlgorithmName ));
0 commit comments