Skip to content
This repository was archived by the owner on Mar 20, 2019. It is now read-only.

Conversation

@AlphaGremlin
Copy link

The two calls to IAuthorizationServerHost.GetClient had mutually exclusive requirements:

  1. Throw an exception if the Client is not found, do not return null
  2. Return null if the Client is not found, do not throw an Exception

The problem prevented an OAuth2 Authorisation Server implementation from correctly handling an invalid ClientID - either the Authorize request would fail with a ProtocolException, or the Token request would fail with an ArgumentException.

This changes (2) to match the pattern of (1), which is also how the interface is documented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant