When prompt=none
is set, reauthorizing with a smaller set of scopes causes an error
#63
Labels
prompt=none
is set, reauthorizing with a smaller set of scopes causes an error
#63
If I have previously authorized with a Doorkeeper-OIDC-based IDP using
scope=openid+email+name
, aprompt=none
authorization request with a more narrow set of claims, such asscope=openid+email
will fail. The error will indicate that user consent is required, however I think this is incorrect. The user has already granted consent for theemail
andname
claims; my reauthorization request is only requesting theemail
claim, so I believe the correct behavior is to generate and return a new access token with theopenid
andemail
claims.If this is in fact a bug, the problem seems to be that an exact match between the incoming scopes and previously granted access token's scopes is required by this method:
https://github.com/doorkeeper-gem/doorkeeper-openid_connect/blob/master/lib/doorkeeper/openid_connect/helpers/controller.rb#L79
The text was updated successfully, but these errors were encountered: