From ade5a3cf8f5cb267d0d9a4dec7d5f477ff7e7335 Mon Sep 17 00:00:00 2001 From: Javier Rojas Blum Date: Sun, 8 Nov 2015 23:09:44 -0400 Subject: [PATCH] Client Credentials Grant : support authentication by keys (private/public ) #88 --- .../oxauth/ws/rs/ClientCredentialsGrantHttpTest.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Client/src/test/java/org/xdi/oxauth/ws/rs/ClientCredentialsGrantHttpTest.java b/Client/src/test/java/org/xdi/oxauth/ws/rs/ClientCredentialsGrantHttpTest.java index 04b2df19bd..6155dfbce6 100644 --- a/Client/src/test/java/org/xdi/oxauth/ws/rs/ClientCredentialsGrantHttpTest.java +++ b/Client/src/test/java/org/xdi/oxauth/ws/rs/ClientCredentialsGrantHttpTest.java @@ -29,13 +29,11 @@ public class ClientCredentialsGrantHttpTest extends BaseTest { public void defaultAuthenticationMethod(final String redirectUris) throws Exception { showTitle("defaultAuthenticationMethod"); - List responseTypes = new ArrayList(); List scopes = Arrays.asList("clientinfo"); // 1. Register client RegisterRequest registerRequest = new RegisterRequest(ApplicationType.WEB, "oxAuth test app", StringUtils.spaceSeparatedToList(redirectUris)); - registerRequest.setResponseTypes(responseTypes); registerRequest.setScopes(scopes); RegisterClient registerClient = new RegisterClient(registrationEndpoint); @@ -88,13 +86,11 @@ public void defaultAuthenticationMethod(final String redirectUris) throws Except public void clientSecretBasicAuthenticationMethod(final String redirectUris) throws Exception { showTitle("clientSecretBasicAuthenticationMethod"); - List responseTypes = new ArrayList(); List scopes = Arrays.asList("clientinfo"); // 1. Register client RegisterRequest registerRequest = new RegisterRequest(ApplicationType.WEB, "oxAuth test app", StringUtils.spaceSeparatedToList(redirectUris)); - registerRequest.setResponseTypes(responseTypes); registerRequest.setScopes(scopes); registerRequest.setTokenEndpointAuthMethod(AuthenticationMethod.CLIENT_SECRET_BASIC); @@ -149,13 +145,11 @@ public void clientSecretBasicAuthenticationMethod(final String redirectUris) thr public void clientSecretPostAuthenticationMethod(final String redirectUris) throws Exception { showTitle("clientSecretPostAuthenticationMethod"); - List responseTypes = new ArrayList(); List scopes = Arrays.asList("clientinfo"); // 1. Register client RegisterRequest registerRequest = new RegisterRequest(ApplicationType.WEB, "oxAuth test app", StringUtils.spaceSeparatedToList(redirectUris)); - registerRequest.setResponseTypes(responseTypes); registerRequest.setScopes(scopes); registerRequest.setTokenEndpointAuthMethod(AuthenticationMethod.CLIENT_SECRET_POST); @@ -210,13 +204,11 @@ public void clientSecretPostAuthenticationMethod(final String redirectUris) thro public void clientSecretJwtAuthenticationMethod(final String redirectUris, final String sectorIdentifierUri) throws Exception { showTitle("clientSecretJwtAuthenticationMethod"); - List responseTypes = new ArrayList(); List scopes = Arrays.asList("clientinfo"); // 1. Register client RegisterRequest registerRequest = new RegisterRequest(ApplicationType.WEB, "oxAuth test app", StringUtils.spaceSeparatedToList(redirectUris)); - registerRequest.setResponseTypes(responseTypes); registerRequest.setScopes(scopes); registerRequest.setTokenEndpointAuthMethod(AuthenticationMethod.CLIENT_SECRET_JWT); registerRequest.setSectorIdentifierUri(sectorIdentifierUri); @@ -275,13 +267,11 @@ public void privateKeyJwtAuthenticationMethod(final String redirectUris, final S final String privateExponent) throws Exception { showTitle("privateKeyJwtAuthenticationMethod"); - List responseTypes = new ArrayList(); List scopes = Arrays.asList("clientinfo"); // 1. Register client RegisterRequest registerRequest = new RegisterRequest(ApplicationType.WEB, "oxAuth test app", StringUtils.spaceSeparatedToList(redirectUris)); - registerRequest.setResponseTypes(responseTypes); registerRequest.setScopes(scopes); registerRequest.setTokenEndpointAuthMethod(AuthenticationMethod.PRIVATE_KEY_JWT); registerRequest.setSectorIdentifierUri(sectorIdentifierUri);