@@ -370,37 +370,6 @@ public async Task AuthenticationManager_Logout_DoesNothingOnRedirect()
370
370
371
371
}
372
372
373
- [ Fact ]
374
- public async Task AuthenticationManager_Logout_RedirectsToFailureOnInvalidSignOutState ( )
375
- {
376
- // Arrange
377
- var ( remoteAuthenticator , renderer , authServiceMock ) = CreateAuthenticationManager (
378
- "https://www.example.com/base/authentication/logout" ,
379
- new InteractiveRequestOptions { Interaction = InteractionType . SignIn , ReturnUrl = "https://www.example.com/base/fetchData" } . ToState ( ) ) ;
380
-
381
- if ( remoteAuthenticator . SignOutManager is TestSignOutSessionStateManager testManager )
382
- {
383
- testManager . SignOutState = false ;
384
- }
385
-
386
- var parameters = ParameterView . FromDictionary ( new Dictionary < string , object >
387
- {
388
- [ _action ] = RemoteAuthenticationActions . LogOut
389
- } ) ;
390
-
391
- // Act
392
- await renderer . Dispatcher . InvokeAsync < object > ( ( ) => remoteAuthenticator . SetParametersAsync ( parameters ) ) ;
393
-
394
- // Assert
395
- Assert . Equal (
396
- "https://www.example.com/base/authentication/logout-failed" ,
397
- remoteAuthenticator . Navigation . Uri ) ;
398
-
399
- Assert . Equal (
400
- "The logout was not initiated from within the page." ,
401
- ( ( TestNavigationManager ) remoteAuthenticator . Navigation ) . HistoryEntryState ) ;
402
- }
403
-
404
373
[ Fact ]
405
374
public async Task AuthenticationManager_Logout_NavigatesToLogoutFailureOnError ( )
406
375
{
@@ -731,8 +700,6 @@ private static
731
700
Mock . Of < IOptionsSnapshot < RemoteAuthenticationOptions < OidcProviderOptions > > > ( ) ,
732
701
navigationManager ) ;
733
702
734
- remoteAuthenticator . SignOutManager = new TestSignOutSessionStateManager ( ) ;
735
-
736
703
remoteAuthenticator . AuthenticationService = authenticationServiceMock ;
737
704
remoteAuthenticator . AuthenticationProvider = authenticationServiceMock ;
738
705
return ( remoteAuthenticator , renderer , authenticationServiceMock ) ;
@@ -756,24 +723,6 @@ protected override void NavigateToCore(string uri, NavigationOptions options)
756
723
}
757
724
}
758
725
759
- #pragma warning disable CS0618 // Type or member is obsolete, we keep it for now for backwards compatibility
760
- private class TestSignOutSessionStateManager : SignOutSessionStateManager
761
- #pragma warning restore CS0618 // Type or member is obsolete, we keep it for now for backwards compatibility
762
- {
763
- public TestSignOutSessionStateManager ( ) : base ( null )
764
- {
765
- }
766
- public bool SignOutState { get ; set ; } = true ;
767
-
768
- public override ValueTask SetSignOutState ( )
769
- {
770
- SignOutState = true ;
771
- return default ;
772
- }
773
-
774
- public override Task < bool > ValidateSignOutState ( ) => Task . FromResult ( SignOutState ) ;
775
- }
776
-
777
726
private class TestJsRuntime : IJSRuntime
778
727
{
779
728
public ( string identifier , object [ ] args ) LastInvocation { get ; set ; }
0 commit comments