rootnomad commented on PR #14205:
URL: https://github.com/apache/cloudstack/pull/14205#issuecomment-7137235855

   > Tested the PR head (4eb70e4e84) as a full build of main with a fresh 
database, against a small test identity provider that I can make misbehave on 
purpose (discovery document, JWKS with two RS256 keys, token endpoint with 
client_secret_basic).
   
   Thanks, this was a really useful test pass. All four are addressed in the 
latest push:
   
   1. The login and verify handlers now return a 531 with a message for the 
operational failures (rejected code, wrong secret, expired token, unreachable 
or mismatched issuer, bad signature in verifyOAuthCodeAndGetUser) instead of an 
empty 200.
   
   2. The issuer is now checked at registration: the discovery document is 
fetched and its issuer must match. It is best effort so a brief IdP outage does 
not block registering, and the same problem still surfaces with a clear error 
at first login.
   
   3. register now reports enabled using the same name-or-type check that list 
and update use, so it agrees with listOauthProvider right after registration.
   
   4. Added a note on the exact casing to the registerOauthProvider 
description, since registerOAuthProvider is not a valid command name.
   
   While in there I also tightened a few things your tests pointed at: 
multi-audience tokens now require azp to match the registered client, only 
asymmetric id_token signatures are accepted (HS and none are rejected), and the 
issuer, token and JWKS endpoints must use https (oauth2.oidc.require.https, 
default true, can be turned off for an http lab IdP).
   
   Mind giving it another look when you get a chance?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to