File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/Microsoft.Owin.Security.Facebook
tests/Microsoft.Owin.Security.Tests Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ internal static class Constants
88 public const string DefaultAuthenticationType = "Facebook" ;
99
1010 // https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow#login
11- internal const string AuthorizationEndpoint = "https://www.facebook.com/v8 .0/dialog/oauth" ;
12- internal const string TokenEndpoint = "https://graph.facebook.com/v8 .0/oauth/access_token" ;
13- internal const string UserInformationEndpoint = "https://graph.facebook.com/v8 .0/me" ;
11+ internal const string AuthorizationEndpoint = "https://www.facebook.com/v10 .0/dialog/oauth" ;
12+ internal const string TokenEndpoint = "https://graph.facebook.com/v10 .0/oauth/access_token" ;
13+ internal const string UserInformationEndpoint = "https://graph.facebook.com/v10 .0/me" ;
1414 }
1515}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public async Task ChallengeWillTriggerRedirection()
5959 var transaction = await SendAsync ( server , "http://example.com/challenge" ) ;
6060 transaction . Response . StatusCode . ShouldBe ( HttpStatusCode . Redirect ) ;
6161 var location = transaction . Response . Headers . Location . AbsoluteUri ;
62- location . ShouldContain ( "https://www.facebook.com/v2.8 /dialog/oauth" ) ;
62+ location . ShouldContain ( "https://www.facebook.com/v10.0 /dialog/oauth" ) ;
6363 location . ShouldContain ( "?response_type=code" ) ;
6464 location . ShouldContain ( "&client_id=" ) ;
6565 location . ShouldContain ( "&redirect_uri=" ) ;
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ public async Task ReplyPathWillAuthenticateValidAuthorizeCodeAndState()
230230 {
231231 Sender = async req =>
232232 {
233- if ( req . RequestUri . AbsoluteUri == "https://www .googleapis.com/oauth2/v4 /token" )
233+ if ( req . RequestUri . AbsoluteUri == "https://oauth2 .googleapis.com/token" )
234234 {
235235 return await ReturnJsonResponse ( new
236236 {
@@ -351,7 +351,7 @@ public async Task AuthenticatedEventCanGetRefreshToken()
351351 {
352352 Sender = async req =>
353353 {
354- if ( req . RequestUri . AbsoluteUri == "https://www .googleapis.com/oauth2/v4 /token" )
354+ if ( req . RequestUri . AbsoluteUri == "https://oauth2 .googleapis.com/token" )
355355 {
356356 return await ReturnJsonResponse ( new
357357 {
You can’t perform that action at this time.
0 commit comments