File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/AspNet.Security.OAuth.Dropbox Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ public void ConfigureServices(IServiceCollection services)
42
42
options . ClientId = "49e302895d8b09ea5656" ;
43
43
options . ClientSecret = "98f1bf028608901e9df91d64ee61536fe562064b" ;
44
44
options . Scope . Add ( "user:email" ) ;
45
+ } )
46
+
47
+ . AddDropbox ( options =>
48
+ {
49
+ options . ClientId = "jpk24g2uxfxe939" ;
50
+ options . ClientSecret = "qbxvkjk5la7mjp6" ;
45
51
} ) ;
46
52
47
53
services . AddMvc ( ) ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public DropboxAuthenticationHandler(
32
32
protected override async Task < AuthenticationTicket > CreateTicketAsync ( [ NotNull ] ClaimsIdentity identity ,
33
33
[ NotNull ] AuthenticationProperties properties , [ NotNull ] OAuthTokenResponse tokens )
34
34
{
35
- var request = new HttpRequestMessage ( HttpMethod . Get , Options . UserInformationEndpoint ) ;
35
+ var request = new HttpRequestMessage ( HttpMethod . Post , Options . UserInformationEndpoint ) ;
36
36
request . Headers . Accept . Add ( new MediaTypeWithQualityHeaderValue ( "application/json" ) ) ;
37
37
request . Headers . Authorization = new AuthenticationHeaderValue ( "Bearer" , tokens . AccessToken ) ;
38
38
You can’t perform that action at this time.
0 commit comments