Add OidcClientRegistrationAuthenticationProvider.setRegisteredClientConverter()

Closes gh-696
This commit is contained in:
Joe Grandja
2022-10-31 14:35:45 -04:00
parent 4eb25c163f
commit 6dc3944eef
4 changed files with 26 additions and 6 deletions

View File

@@ -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();