Allow configuring scheduler on ReactiveAuthenticationManagerAdapter
Currently, authentication logic will be performed on hardcoded elastic scheduler in ReactiveAuthenticationManagerAdapter. This commit makes the authentication logic scheduler configureable.
This commit is contained in:
committed by
Rob Winch
parent
e6ace0891f
commit
71dc4f39be
+6
-1
@@ -52,8 +52,13 @@ public class ReactiveAuthenticationManagerAdapterTests {
|
||||
new ReactiveAuthenticationManagerAdapter(null);
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void setSchedulerNull() {
|
||||
this.manager.setScheduler(null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void authenticateWhenSuccessThenSucces() {
|
||||
public void authenticateWhenSuccessThenSuccess() {
|
||||
when(delegate.authenticate(any())).thenReturn(authentication);
|
||||
when(authentication.isAuthenticated()).thenReturn(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user