@@ -133,7 +133,7 @@ public async Task ChallengeWillSetCorrelationCookie()
133
133
} ) ;
134
134
using var server = host . GetTestServer ( ) ;
135
135
var transaction = await server . SendAsync ( "https://example.com/challenge" ) ;
136
- Assert . Contains ( transaction . SetCookie , cookie => cookie . StartsWith ( ".AspNetCore.Correlation.Google. " ) ) ;
136
+ Assert . Contains ( transaction . SetCookie , cookie => cookie . StartsWith ( ".AspNetCore.Correlation." ) ) ;
137
137
}
138
138
139
139
[ Fact ]
@@ -392,7 +392,7 @@ public async Task ReplyPathWithAccessDeniedErrorFails(bool redirect)
392
392
} ) ;
393
393
using var server = host . GetTestServer ( ) ;
394
394
var sendTask = server . SendAsync ( "https://example.com/signin-google?error=access_denied&error_description=SoBad&error_uri=foobar&state=protected_state" ,
395
- ".AspNetCore.Correlation.Google. correlationId=N" ) ;
395
+ ".AspNetCore.Correlation.correlationId=N" ) ;
396
396
if ( redirect )
397
397
{
398
398
var transaction = await sendTask ;
@@ -431,7 +431,7 @@ public async Task ReplyPathWithAccessDeniedError_AllowsCustomizingPath()
431
431
} ) ;
432
432
using var server = host . GetTestServer ( ) ;
433
433
var transaction = await server . SendAsync ( "https://example.com/signin-google?error=access_denied&error_description=SoBad&error_uri=foobar&state=protected_state" ,
434
- ".AspNetCore.Correlation.Google. correlationId=N" ) ;
434
+ ".AspNetCore.Correlation.correlationId=N" ) ;
435
435
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
436
436
Assert . Equal ( "https://example.com/custom-denied-page?rurl=http%3A%2F%2Fwww.google.com%2F" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
437
437
}
@@ -474,7 +474,7 @@ public async Task ReplyPathWithAccessDeniedErrorAndNoAccessDeniedPath_FallsBackT
474
474
} ) ;
475
475
using var server = host . GetTestServer ( ) ;
476
476
var transaction = await server . SendAsync ( "https://example.com/signin-google?error=access_denied&error_description=whyitfailed&error_uri=https://example.com/fail&state=protected_state" ,
477
- ".AspNetCore.Correlation.Google. correlationId=N" ) ;
477
+ ".AspNetCore.Correlation.correlationId=N" ) ;
478
478
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
479
479
Assert . StartsWith ( "/error?FailureMessage=" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
480
480
Assert . True ( accessDeniedCalled ) ;
@@ -510,7 +510,7 @@ public async Task ReplyPathWithErrorFails(bool redirect)
510
510
} ) ;
511
511
using var server = host . GetTestServer ( ) ;
512
512
var sendTask = server . SendAsync ( "https://example.com/signin-google?error=itfailed&error_description=whyitfailed&error_uri=https://example.com/fail&state=protected_state" ,
513
- ".AspNetCore.Correlation.Google. correlationId=N" ) ;
513
+ ".AspNetCore.Correlation.correlationId=N" ) ;
514
514
if ( redirect )
515
515
{
516
516
var transaction = await sendTask ;
@@ -552,11 +552,11 @@ public async Task ReplyPathWillAuthenticateValidAuthorizeCodeAndState(string cla
552
552
using var server = host . GetTestServer ( ) ;
553
553
var transaction = await server . SendAsync (
554
554
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
555
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
555
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
556
556
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
557
557
Assert . Equal ( "/me" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
558
558
Assert . Equal ( 2 , transaction . SetCookie . Count ) ;
559
- Assert . Contains ( $ ".AspNetCore.Correlation.Google. { correlationValue } ", transaction . SetCookie [ 0 ] ) ;
559
+ Assert . Contains ( $ ".AspNetCore.Correlation.{ correlationValue } ", transaction . SetCookie [ 0 ] ) ;
560
560
Assert . Contains ( ".AspNetCore." + TestExtensions . CookieAuthenticationScheme , transaction . SetCookie [ 1 ] ) ;
561
561
562
562
var authCookie = transaction . AuthenticationCookieValue ;
@@ -619,7 +619,7 @@ public async Task ReplyPathWillThrowIfCodeIsInvalid(bool redirect)
619
619
using var server = host . GetTestServer ( ) ;
620
620
var sendTask = server . SendAsync (
621
621
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
622
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
622
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
623
623
if ( redirect )
624
624
{
625
625
var transaction = await sendTask ;
@@ -671,7 +671,7 @@ public async Task ReplyPathWillRejectIfAccessTokenIsMissing(bool redirect)
671
671
using var server = host . GetTestServer ( ) ;
672
672
var sendTask = server . SendAsync (
673
673
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
674
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
674
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
675
675
if ( redirect )
676
676
{
677
677
var transaction = await sendTask ;
@@ -715,11 +715,11 @@ public async Task AuthenticatedEventCanGetRefreshToken()
715
715
using var server = host . GetTestServer ( ) ;
716
716
var transaction = await server . SendAsync (
717
717
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
718
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
718
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
719
719
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
720
720
Assert . Equal ( "/me" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
721
721
Assert . Equal ( 2 , transaction . SetCookie . Count ) ;
722
- Assert . Contains ( $ ".AspNetCore.Correlation.Google. { correlationValue } ", transaction . SetCookie [ 0 ] ) ;
722
+ Assert . Contains ( $ ".AspNetCore.Correlation.{ correlationValue } ", transaction . SetCookie [ 0 ] ) ;
723
723
Assert . Contains ( ".AspNetCore." + TestExtensions . CookieAuthenticationScheme , transaction . SetCookie [ 1 ] ) ;
724
724
725
725
var authCookie = transaction . AuthenticationCookieValue ;
@@ -755,11 +755,11 @@ public async Task NullRedirectUriWillRedirectToSlash()
755
755
using var server = host . GetTestServer ( ) ;
756
756
var transaction = await server . SendAsync (
757
757
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
758
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
758
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
759
759
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
760
760
Assert . Equal ( "/" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
761
761
Assert . Equal ( 2 , transaction . SetCookie . Count ) ;
762
- Assert . Contains ( $ ".AspNetCore.Correlation.Google. { correlationValue } ", transaction . SetCookie [ 0 ] ) ;
762
+ Assert . Contains ( $ ".AspNetCore.Correlation.{ correlationValue } ", transaction . SetCookie [ 0 ] ) ;
763
763
Assert . Contains ( ".AspNetCore." + TestExtensions . CookieAuthenticationScheme , transaction . SetCookie [ 1 ] ) ;
764
764
}
765
765
@@ -802,7 +802,7 @@ public async Task ValidateAuthenticatedContext()
802
802
using var server = host . GetTestServer ( ) ;
803
803
var transaction = await server . SendAsync (
804
804
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
805
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
805
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
806
806
807
807
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
808
808
Assert . Equal ( "/foo" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
@@ -876,11 +876,11 @@ public async Task AuthenticateAutomaticWhenAlreadySignedInSucceeds()
876
876
using var server = host . GetTestServer ( ) ;
877
877
var transaction = await server . SendAsync (
878
878
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
879
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
879
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
880
880
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
881
881
Assert . Equal ( "/me" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
882
882
Assert . Equal ( 2 , transaction . SetCookie . Count ) ;
883
- Assert . Contains ( $ ".AspNetCore.Correlation.Google. { correlationValue } ", transaction . SetCookie [ 0 ] ) ; // Delete
883
+ Assert . Contains ( $ ".AspNetCore.Correlation.{ correlationValue } ", transaction . SetCookie [ 0 ] ) ; // Delete
884
884
Assert . Contains ( ".AspNetCore." + TestExtensions . CookieAuthenticationScheme , transaction . SetCookie [ 1 ] ) ;
885
885
886
886
var authCookie = transaction . AuthenticationCookieValue ;
@@ -920,11 +920,11 @@ public async Task AuthenticateGoogleWhenAlreadySignedInSucceeds()
920
920
using var server = host . GetTestServer ( ) ;
921
921
var transaction = await server . SendAsync (
922
922
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
923
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
923
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
924
924
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
925
925
Assert . Equal ( "/me" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
926
926
Assert . Equal ( 2 , transaction . SetCookie . Count ) ;
927
- Assert . Contains ( $ ".AspNetCore.Correlation.Google. { correlationValue } ", transaction . SetCookie [ 0 ] ) ; // Delete
927
+ Assert . Contains ( $ ".AspNetCore.Correlation.{ correlationValue } ", transaction . SetCookie [ 0 ] ) ; // Delete
928
928
Assert . Contains ( ".AspNetCore." + TestExtensions . CookieAuthenticationScheme , transaction . SetCookie [ 1 ] ) ;
929
929
930
930
var authCookie = transaction . AuthenticationCookieValue ;
@@ -964,11 +964,11 @@ public async Task AuthenticateFacebookWhenAlreadySignedWithGoogleReturnsNull()
964
964
using var server = host . GetTestServer ( ) ;
965
965
var transaction = await server . SendAsync (
966
966
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
967
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
967
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
968
968
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
969
969
Assert . Equal ( "/me" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
970
970
Assert . Equal ( 2 , transaction . SetCookie . Count ) ;
971
- Assert . Contains ( $ ".AspNetCore.Correlation.Google. { correlationValue } ", transaction . SetCookie [ 0 ] ) ; // Delete
971
+ Assert . Contains ( $ ".AspNetCore.Correlation.{ correlationValue } ", transaction . SetCookie [ 0 ] ) ; // Delete
972
972
Assert . Contains ( ".AspNetCore." + TestExtensions . CookieAuthenticationScheme , transaction . SetCookie [ 1 ] ) ;
973
973
974
974
var authCookie = transaction . AuthenticationCookieValue ;
@@ -1001,11 +1001,11 @@ public async Task ChallengeFacebookWhenAlreadySignedWithGoogleSucceeds()
1001
1001
using var server = host . GetTestServer ( ) ;
1002
1002
var transaction = await server . SendAsync (
1003
1003
"https://example.com/signin-google?code=TestCode&state=" + UrlEncoder . Default . Encode ( state ) ,
1004
- $ ".AspNetCore.Correlation.Google. { correlationValue } =N") ;
1004
+ $ ".AspNetCore.Correlation.{ correlationValue } =N") ;
1005
1005
Assert . Equal ( HttpStatusCode . Redirect , transaction . Response . StatusCode ) ;
1006
1006
Assert . Equal ( "/me" , transaction . Response . Headers . GetValues ( "Location" ) . First ( ) ) ;
1007
1007
Assert . Equal ( 2 , transaction . SetCookie . Count ) ;
1008
- Assert . Contains ( $ ".AspNetCore.Correlation.Google. { correlationValue } ", transaction . SetCookie [ 0 ] ) ; // Delete
1008
+ Assert . Contains ( $ ".AspNetCore.Correlation.{ correlationValue } ", transaction . SetCookie [ 0 ] ) ; // Delete
1009
1009
Assert . Contains ( ".AspNetCore." + TestExtensions . CookieAuthenticationScheme , transaction . SetCookie [ 1 ] ) ;
1010
1010
1011
1011
var authCookie = transaction . AuthenticationCookieValue ;
0 commit comments