Skip to content

Commit

Permalink
Oauth2 desktop (#254)
Browse files Browse the repository at this point in the history
* Implemented OAuth2 AuthorizeAsync.

* Fixed MvcOAuth2Authorizer bug preventing confidential clients from working.
  • Loading branch information
JoeMayo authored Feb 1, 2022
1 parent 4199313 commit fc8a39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LinqToTwitter6/LinqToTwitter/OAuth/OAuth2Authorizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void HandleAuthorizationHeader(HttpRequestMessage req, string url)
throw new NullReferenceException(CredentialStoreMessage);

bool isAuthorizationRequest(string url) => url.StartsWith(AuthorizeUrl);
bool isPublicClient() => !string.IsNullOrWhiteSpace(credStore.ClientSecret);
bool isPublicClient() => string.IsNullOrWhiteSpace(credStore.ClientSecret);

if (isAuthorizationRequest(url) || isPublicClient())
return;
Expand Down

0 comments on commit fc8a39a

Please sign in to comment.