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
irm -Method POST -Body @{ grant_type="authorization_code" } https://localhost:8080/token
This returns 500 instead of 400.
OAuthAuthorizationServerHandler.InvokeTokenEndpointAuthorizationCodeGrantAsync() triggers an ArgumentNullException on line 489 when it tries to construct an AuthenticationTokenReceiveContext with a null token (tokenEndpointRequest.AuthorizationCodeGrant.Code).
I'm not quite sure why AuthenticationTokenReceiveContext throws this exception. I think it (and its consumers) should probably handle the case where token is null. Alternatively, InvokeTokenEndpointAuthorizationCodeGrantAsync() should check that a code was provided. Happy to open a PR given guidance on which approach to take.
The text was updated successfully, but these errors were encountered:
This returns 500 instead of 400.
OAuthAuthorizationServerHandler.InvokeTokenEndpointAuthorizationCodeGrantAsync()
triggers anArgumentNullException
on line 489 when it tries to construct anAuthenticationTokenReceiveContext
with a nulltoken
(tokenEndpointRequest.AuthorizationCodeGrant.Code
).I'm not quite sure why
AuthenticationTokenReceiveContext
throws this exception. I think it (and its consumers) should probably handle the case wheretoken
is null. Alternatively,InvokeTokenEndpointAuthorizationCodeGrantAsync()
should check that a code was provided. Happy to open a PR given guidance on which approach to take.The text was updated successfully, but these errors were encountered: