File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Microsoft.AspNetCore.Authentication.Google
test/Microsoft.AspNetCore.Authentication.Test Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public static class GoogleDefaults
12
12
13
13
public static readonly string DisplayName = "Google" ;
14
14
15
- public static readonly string AuthorizationEndpoint = "https://accounts.google.com/o/oauth2/auth" ;
15
+ public static readonly string AuthorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/ auth" ;
16
16
17
17
public static readonly string TokenEndpoint = "https://www.googleapis.com/oauth2/v4/token" ;
18
18
Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ public async Task ChallengeWillTriggerRedirection()
457
457
var transaction = await server . SendAsync ( "https://example.com/challenge" ) ;
458
458
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
459
459
var location = transaction . Response . Headers . Location . ToString ( ) ;
460
- Assert . Contains ( "https://accounts.google.com/o/oauth2/auth?response_type=code" , location ) ;
460
+ Assert . Contains ( "https://accounts.google.com/o/oauth2/v2/ auth?response_type=code" , location ) ;
461
461
Assert . Contains ( "&client_id=" , location ) ;
462
462
Assert . Contains ( "&redirect_uri=" , location ) ;
463
463
Assert . Contains ( "&scope=" , location ) ;
You can’t perform that action at this time.
0 commit comments