File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/AspNet.Security.OAuth.StackExchange Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ public StackExchangeAuthenticationOptions()
30
30
UserInformationEndpoint = StackExchangeAuthenticationDefaults . UserInformationEndpoint ;
31
31
BackchannelHttpHandler = new HttpClientHandler { AutomaticDecompression = DecompressionMethods . GZip } ;
32
32
33
- ClaimActions . MapCustomJson ( ClaimTypes . NameIdentifier , user => user [ 0 ] ? . Value < string > ( "account_id" ) ) ;
34
- ClaimActions . MapCustomJson ( ClaimTypes . Name , user => user [ 0 ] ? . Value < string > ( "display_name" ) ) ;
35
- ClaimActions . MapCustomJson ( ClaimTypes . Webpage , user => user [ 0 ] ? . Value < string > ( "website_url" ) ) ;
36
- ClaimActions . MapCustomJson ( Claims . Link , user => user [ 0 ] ? . Value < string > ( "link" ) ) ;
33
+ ClaimActions . MapCustomJson ( ClaimTypes . NameIdentifier , user => user [ "items" ] ? [ 0 ] ? . Value < string > ( "account_id" ) ) ;
34
+ ClaimActions . MapCustomJson ( ClaimTypes . Name , user => user [ "items" ] ? [ 0 ] ? . Value < string > ( "display_name" ) ) ;
35
+ ClaimActions . MapCustomJson ( ClaimTypes . Webpage , user => user [ "items" ] ? [ 0 ] ? . Value < string > ( "website_url" ) ) ;
36
+ ClaimActions . MapCustomJson ( Claims . Link , user => user [ "items" ] ? [ 0 ] ? . Value < string > ( "link" ) ) ;
37
37
}
38
38
39
39
/// <summary>
You can’t perform that action at this time.
0 commit comments