@Override public int hashCode() { return this.getValue().hashCode(); } }
@Test public void constructorWhenValueIsNullThenThrowIllegalArgumentException() { assertThatThrownBy(() -> new AuthenticationMethod(null)).hasMessage("value cannot be empty"); }
if (AuthenticationMethod.FORM.equals(clientRegistration.getProviderDetails().getUserInfoEndpoint().getAuthenticationMethod())) { httpMethod = HttpMethod.POST;
.getUserInfoEndpoint().getAuthenticationMethod(); WebClient.RequestHeadersSpec<?> requestHeadersSpec; if (AuthenticationMethod.FORM.equals(authenticationMethod)) { requestHeadersSpec = this.webClient.post() .uri(userInfoUri)
if (AuthenticationMethod.FORM.equals(clientRegistration.getProviderDetails().getUserInfoEndpoint().getAuthenticationMethod())) { httpMethod = HttpMethod.POST;
@Test public void getValueWhenFormAuthenticationTypeThenReturnForm() { assertThat(AuthenticationMethod.FORM.getValue()).isEqualTo("form"); }
.getUserInfoEndpoint().getAuthenticationMethod(); WebClient.RequestHeadersSpec<?> requestHeadersSpec; if (AuthenticationMethod.FORM.equals(authenticationMethod)) { requestHeadersSpec = this.webClient.post() .uri(userInfoUri)
@Test public void getValueWhenFormAuthenticationTypeThenReturnQuery() { assertThat(AuthenticationMethod.QUERY.getValue()).isEqualTo("query"); } }
@Test public void getValueWhenHeaderAuthenticationTypeThenReturnHeader() { assertThat(AuthenticationMethod.HEADER.getValue()).isEqualTo("header"); }
@Override public int hashCode() { return this.getValue().hashCode(); } }
@Override public int hashCode() { return this.getValue().hashCode(); } }