1
0
mirror of synced 2026-08-03 08:51:58 +00:00

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:
Tadaya Tsuyukubo
2019-05-08 18:21:07 -07:00
committed by Rob Winch
parent e6ace0891f
commit 71dc4f39be
2 changed files with 23 additions and 3 deletions
@@ -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);