@@ -230,7 +230,7 @@ public async Task NestedMapWillNotAffectRedirect()
230
230
var transaction = await server . SendAsync ( "http://example.com/base/login" ) ;
231
231
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
232
232
var location = transaction . Response . Headers . Location . AbsoluteUri ;
233
- Assert . Contains ( "https://www.facebook.com/v14 .0/dialog/oauth" , location ) ;
233
+ Assert . Contains ( "https://www.facebook.com/v22 .0/dialog/oauth" , location ) ;
234
234
Assert . Contains ( "response_type=code" , location ) ;
235
235
Assert . Contains ( "client_id=" , location ) ;
236
236
Assert . Contains ( "redirect_uri=" + UrlEncoder . Default . Encode ( "http://example.com/base/signin-facebook" ) , location ) ;
@@ -263,7 +263,7 @@ public async Task MapWillNotAffectRedirect()
263
263
var transaction = await server . SendAsync ( "http://example.com/login" ) ;
264
264
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
265
265
var location = transaction . Response . Headers . Location . AbsoluteUri ;
266
- Assert . Contains ( "https://www.facebook.com/v14 .0/dialog/oauth" , location ) ;
266
+ Assert . Contains ( "https://www.facebook.com/v22 .0/dialog/oauth" , location ) ;
267
267
Assert . Contains ( "response_type=code" , location ) ;
268
268
Assert . Contains ( "client_id=" , location ) ;
269
269
Assert . Contains ( "redirect_uri=" + UrlEncoder . Default . Encode ( "http://example.com/signin-facebook" ) , location ) ;
@@ -298,7 +298,7 @@ public async Task ChallengeWillTriggerRedirection()
298
298
var transaction = await server . SendAsync ( "http://example.com/challenge" ) ;
299
299
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
300
300
var location = transaction . Response . Headers . Location . AbsoluteUri ;
301
- Assert . Contains ( "https://www.facebook.com/v14 .0/dialog/oauth" , location ) ;
301
+ Assert . Contains ( "https://www.facebook.com/v22 .0/dialog/oauth" , location ) ;
302
302
Assert . Contains ( "response_type=code" , location ) ;
303
303
Assert . Contains ( "client_id=" , location ) ;
304
304
Assert . Contains ( "redirect_uri=" , location ) ;
@@ -388,7 +388,7 @@ public async Task PkceSentToTokenEndpoint()
388
388
{
389
389
Sender = req =>
390
390
{
391
- if ( req . RequestUri . AbsoluteUri == "https://graph.facebook.com/v14 .0/oauth/access_token" )
391
+ if ( req . RequestUri . AbsoluteUri == "https://graph.facebook.com/v22 .0/oauth/access_token" )
392
392
{
393
393
var body = req . Content . ReadAsStringAsync ( ) . Result ;
394
394
var form = new FormReader ( body ) ;
@@ -407,7 +407,7 @@ public async Task PkceSentToTokenEndpoint()
407
407
token_type = "Bearer" ,
408
408
} ) ;
409
409
}
410
- else if ( req . RequestUri . GetComponents ( UriComponents . SchemeAndServer | UriComponents . Path , UriFormat . UriEscaped ) == "https://graph.facebook.com/v14 .0/me" )
410
+ else if ( req . RequestUri . GetComponents ( UriComponents . SchemeAndServer | UriComponents . Path , UriFormat . UriEscaped ) == "https://graph.facebook.com/v22 .0/me" )
411
411
{
412
412
return ReturnJsonResponse ( new
413
413
{
@@ -433,7 +433,7 @@ public async Task PkceSentToTokenEndpoint()
433
433
var transaction = await server . SendAsync ( "https://example.com/challenge" ) ;
434
434
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
435
435
var locationUri = transaction . Response . Headers . Location ;
436
- Assert . StartsWith ( "https://www.facebook.com/v14 .0/dialog/oauth" , locationUri . AbsoluteUri ) ;
436
+ Assert . StartsWith ( "https://www.facebook.com/v22 .0/dialog/oauth" , locationUri . AbsoluteUri ) ;
437
437
438
438
var queryParams = QueryHelpers . ParseQuery ( locationUri . Query ) ;
439
439
Assert . False ( string . IsNullOrEmpty ( queryParams [ "code_challenge" ] ) ) ;
0 commit comments