You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something that was confusing to me about this is the AuthCodeGrantonly calls validateCredentials for private clients which made it seem like you no longer needed to check if the client was confidential before attempting to verify the secret.
However the refresh token grant and password grant both are supposed to support public clients according to the OAuth specification and do not check Client::isConfidential before calling validateClient.
Wouldn't that mean the isConfidential check in the AuthCodeGrant is unnecessary as you will need to check yourself in validateClient in order to support the other grant types?
Under the current implementation, we can't support public clients for the password grant or refresh token because we always check client credentials. We need to add a same is confidential check to these grants that we have for the auth code grant.
This would be a BC break so won't be implemented until version 9.
Something that was confusing to me about this is the
AuthCodeGrant
only callsvalidateCredentials
for private clients which made it seem like you no longer needed to check if the client was confidential before attempting to verify the secret.However the refresh token grant and password grant both are supposed to support public clients according to the OAuth specification and do not check
Client::isConfidential
before callingvalidateClient
.Wouldn't that mean the
isConfidential
check in theAuthCodeGrant
is unnecessary as you will need to check yourself invalidateClient
in order to support the other grant types?Originally posted by @matt-allan in #1034 (comment)
The text was updated successfully, but these errors were encountered: