Add OidcClientRegistrationAuthenticationProvider.setRegisteredClientConverter()
Closes gh-696
This commit is contained in:
@@ -134,6 +134,13 @@ public class OidcClientRegistrationAuthenticationProviderTests {
|
||||
.withMessage("tokenGenerator cannot be null");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setRegisteredClientConverterWhenNullThenThrowIllegalArgumentException() {
|
||||
assertThatIllegalArgumentException()
|
||||
.isThrownBy(() -> this.authenticationProvider.setRegisteredClientConverter(null))
|
||||
.withMessage("registeredClientConverter cannot be null");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void supportsWhenTypeOidcClientRegistrationAuthenticationTokenThenReturnTrue() {
|
||||
assertThat(this.authenticationProvider.supports(OidcClientRegistrationAuthenticationToken.class)).isTrue();
|
||||
|
||||
Reference in New Issue
Block a user