Adjust ClientRegistrationsTests

Closes gh-9748
This commit is contained in:
Josh Cummings 2021-05-14 07:20:06 -06:00
parent 160a3f85af
commit 5b24bd1288
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
package org.springframework.security.oauth2.client.registration;
import java.net.URI;
import java.util.Arrays;
import java.util.Map;
@ -160,7 +161,7 @@ public class ClientRegistrationsTests {
assertThat(registration.getClientAuthenticationMethod())
.isEqualTo(ClientAuthenticationMethod.CLIENT_SECRET_BASIC);
assertThat(registration.getAuthorizationGrantType()).isEqualTo(AuthorizationGrantType.AUTHORIZATION_CODE);
assertThat(registration.getRegistrationId()).isEqualTo(this.server.getHostName());
assertThat(registration.getRegistrationId()).isEqualTo(URI.create(this.issuer).getHost());
assertThat(registration.getClientName()).isEqualTo(this.issuer);
assertThat(registration.getScopes()).isNull();
assertThat(provider.getAuthorizationUri()).isEqualTo("https://example.com/o/oauth2/v2/auth");