@ -48,7 +48,7 @@ public class ClientRegistrationTests {
@@ -48,7 +48,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( null )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -64,7 +64,7 @@ public class ClientRegistrationTests {
@@ -64,7 +64,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -77,7 +77,7 @@ public class ClientRegistrationTests {
@@ -77,7 +77,7 @@ public class ClientRegistrationTests {
assertThat ( registration . getClientSecret ( ) ) . isEqualTo ( CLIENT_SECRET ) ;
assertThat ( registration . getClientAuthenticationMethod ( ) ) . isEqualTo ( ClientAuthenticationMethod . BASIC ) ;
assertThat ( registration . getAuthorizationGrantType ( ) ) . isEqualTo ( AuthorizationGrantType . AUTHORIZATION_CODE ) ;
assertThat ( registration . getRedirectUri ( ) ) . isEqualTo ( REDIRECT_URI ) ;
assertThat ( registration . getRedirectUriTemplate ( ) ) . isEqualTo ( REDIRECT_URI ) ;
assertThat ( registration . getScopes ( ) ) . isEqualTo ( SCOPES ) ;
assertThat ( registration . getProviderDetails ( ) . getAuthorizationUri ( ) ) . isEqualTo ( AUTHORIZATION_URI ) ;
assertThat ( registration . getProviderDetails ( ) . getTokenUri ( ) ) . isEqualTo ( TOKEN_URI ) ;
@ -92,7 +92,7 @@ public class ClientRegistrationTests {
@@ -92,7 +92,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -108,7 +108,7 @@ public class ClientRegistrationTests {
@@ -108,7 +108,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -124,7 +124,7 @@ public class ClientRegistrationTests {
@@ -124,7 +124,7 @@ public class ClientRegistrationTests {
. clientSecret ( null )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -140,7 +140,7 @@ public class ClientRegistrationTests {
@@ -140,7 +140,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( null )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -156,7 +156,7 @@ public class ClientRegistrationTests {
@@ -156,7 +156,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( null )
. redirectUriTemplate ( null )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -172,7 +172,7 @@ public class ClientRegistrationTests {
@@ -172,7 +172,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( null )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -188,7 +188,7 @@ public class ClientRegistrationTests {
@@ -188,7 +188,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( null )
. tokenUri ( TOKEN_URI )
@ -204,7 +204,7 @@ public class ClientRegistrationTests {
@@ -204,7 +204,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( null )
@ -220,7 +220,7 @@ public class ClientRegistrationTests {
@@ -220,7 +220,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -236,7 +236,7 @@ public class ClientRegistrationTests {
@@ -236,7 +236,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -252,7 +252,7 @@ public class ClientRegistrationTests {
@@ -252,7 +252,7 @@ public class ClientRegistrationTests {
. clientSecret ( CLIENT_SECRET )
. clientAuthenticationMethod ( ClientAuthenticationMethod . BASIC )
. authorizationGrantType ( AuthorizationGrantType . AUTHORIZATION_CODE )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( "scope1" )
. authorizationUri ( AUTHORIZATION_URI )
. tokenUri ( TOKEN_URI )
@ -265,7 +265,7 @@ public class ClientRegistrationTests {
@@ -265,7 +265,7 @@ public class ClientRegistrationTests {
ClientRegistration registration = ClientRegistration . withRegistrationId ( REGISTRATION_ID )
. clientId ( CLIENT_ID )
. authorizationGrantType ( AuthorizationGrantType . IMPLICIT )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. clientName ( CLIENT_NAME )
@ -274,7 +274,7 @@ public class ClientRegistrationTests {
@@ -274,7 +274,7 @@ public class ClientRegistrationTests {
assertThat ( registration . getRegistrationId ( ) ) . isEqualTo ( REGISTRATION_ID ) ;
assertThat ( registration . getClientId ( ) ) . isEqualTo ( CLIENT_ID ) ;
assertThat ( registration . getAuthorizationGrantType ( ) ) . isEqualTo ( AuthorizationGrantType . IMPLICIT ) ;
assertThat ( registration . getRedirectUri ( ) ) . isEqualTo ( REDIRECT_URI ) ;
assertThat ( registration . getRedirectUriTemplate ( ) ) . isEqualTo ( REDIRECT_URI ) ;
assertThat ( registration . getScopes ( ) ) . isEqualTo ( SCOPES ) ;
assertThat ( registration . getProviderDetails ( ) . getAuthorizationUri ( ) ) . isEqualTo ( AUTHORIZATION_URI ) ;
assertThat ( registration . getClientName ( ) ) . isEqualTo ( CLIENT_NAME ) ;
@ -285,7 +285,7 @@ public class ClientRegistrationTests {
@@ -285,7 +285,7 @@ public class ClientRegistrationTests {
ClientRegistration . withRegistrationId ( null )
. clientId ( CLIENT_ID )
. authorizationGrantType ( AuthorizationGrantType . IMPLICIT )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. clientName ( CLIENT_NAME )
@ -297,7 +297,7 @@ public class ClientRegistrationTests {
@@ -297,7 +297,7 @@ public class ClientRegistrationTests {
ClientRegistration . withRegistrationId ( REGISTRATION_ID )
. clientId ( null )
. authorizationGrantType ( AuthorizationGrantType . IMPLICIT )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. clientName ( CLIENT_NAME )
@ -309,7 +309,7 @@ public class ClientRegistrationTests {
@@ -309,7 +309,7 @@ public class ClientRegistrationTests {
ClientRegistration . withRegistrationId ( REGISTRATION_ID )
. clientId ( CLIENT_ID )
. authorizationGrantType ( AuthorizationGrantType . IMPLICIT )
. redirectUri ( null )
. redirectUriTemplate ( null )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. clientName ( CLIENT_NAME )
@ -321,7 +321,7 @@ public class ClientRegistrationTests {
@@ -321,7 +321,7 @@ public class ClientRegistrationTests {
ClientRegistration . withRegistrationId ( REGISTRATION_ID )
. clientId ( CLIENT_ID )
. authorizationGrantType ( AuthorizationGrantType . IMPLICIT )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( null )
. authorizationUri ( AUTHORIZATION_URI )
. clientName ( CLIENT_NAME )
@ -333,7 +333,7 @@ public class ClientRegistrationTests {
@@ -333,7 +333,7 @@ public class ClientRegistrationTests {
ClientRegistration . withRegistrationId ( REGISTRATION_ID )
. clientId ( CLIENT_ID )
. authorizationGrantType ( AuthorizationGrantType . IMPLICIT )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( null )
. clientName ( CLIENT_NAME )
@ -345,7 +345,7 @@ public class ClientRegistrationTests {
@@ -345,7 +345,7 @@ public class ClientRegistrationTests {
ClientRegistration . withRegistrationId ( REGISTRATION_ID )
. clientId ( CLIENT_ID )
. authorizationGrantType ( AuthorizationGrantType . IMPLICIT )
. redirectUri ( REDIRECT_URI )
. redirectUriTemplate ( REDIRECT_URI )
. scope ( SCOPES . toArray ( new String [ 0 ] ) )
. authorizationUri ( AUTHORIZATION_URI )
. clientName ( null )