Skip to content

Commit fa0b177

Browse files
cristiz1992kevinchalet
authored andcommitted
Fix the Dropbox provider to use POST instead of GET for userinfo retrieval
1 parent b6bdf2d commit fa0b177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AspNet.Security.OAuth.Dropbox/DropboxAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public DropboxAuthenticationHandler([NotNull] HttpClient client)
2828
protected override async Task<AuthenticationTicket> CreateTicketAsync([NotNull] ClaimsIdentity identity,
2929
[NotNull] AuthenticationProperties properties, [NotNull] OAuthTokenResponse tokens)
3030
{
31-
var request = new HttpRequestMessage(HttpMethod.Get, Options.UserInformationEndpoint);
31+
var request = new HttpRequestMessage(HttpMethod.Post, Options.UserInformationEndpoint);
3232
request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
3333
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", tokens.AccessToken);
3434

0 commit comments

Comments
 (0)