File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
src/AspNet.Security.OAuth.Apple
test/AspNet.Security.OAuth.Providers.Tests Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,13 @@ private async Task<HandleRequestResult> HandleRemoteAuthenticateAsync(
339
339
}
340
340
}
341
341
342
+ string ? idToken = tokens . Response . RootElement . GetString ( "id_token" ) ;
343
+
344
+ if ( ! string . IsNullOrEmpty ( idToken ) )
345
+ {
346
+ authTokens . Add ( new AuthenticationToken ( ) { Name = "id_token" , Value = idToken } ) ;
347
+ }
348
+
342
349
properties . StoreTokens ( authTokens ) ;
343
350
}
344
351
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ protected internal override void RegisterAuthentication(AuthenticationBuilder bu
45
45
{
46
46
ConfigureDefaults ( builder , options ) ;
47
47
options . ClientId = "com.martincostello.signinwithapple.test.client" ;
48
+ options . SaveTokens = true ;
48
49
} ) ;
49
50
}
50
51
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ protected internal override void RegisterAuthentication(AuthenticationBuilder bu
35
35
ConfigureDefaults ( builder , options ) ;
36
36
37
37
options . ClientId = "gg454918d75b1b53101065c16ee51123" ;
38
+ options . SaveTokens = true ;
38
39
options . TokenValidationParameters . ValidAudience = options . ClientId ;
39
40
options . TokenValidationParameters . ValidIssuer = "https://sod.superoffice.com" ;
40
41
} ) ;
You can’t perform that action at this time.
0 commit comments