@Test public void partOfRedirectUrimatching() { request.setRedirectUri("http: validate(ValidationResponse.VALID); }
@Override public ValidationResponse validate(AuthorizationRequest authorizationRequest) { try { validateAuthorizationRequest(authorizationRequest); String responseType = validateResponseType(authorizationRequest); Client client = validateClient(authorizationRequest); authorizationRequest.setClient(client); String redirectUri = determineRedirectUri(authorizationRequest, responseType, client); authorizationRequest.setRedirectUri(redirectUri); List<String> scopes = determineScopes(authorizationRequest, client); authorizationRequest.setRequestedScopes(scopes); } catch (ValidationResponseException e) { return e.v; } return VALID; }
OAuth2ValidatorImpl implements OAuth2Validator { @Override public ValidationResponse validate(AuthorizationRequest authorizationRequest) { try { validateAuthorizationRequest(authorizationRequest); String responseType = validateResponseType(authorizationRequest); Client client = validateClient(authorizationRequest); authorizationRequest.setClient(client); String redirectUri = determineRedirectUri(authorizationRequest, responseType, client); authorizationRequest.setRedirectUri(redirectUri); List<String> scopes = determineScopes(authorizationRequest, client); authorizationRequest.setRequestedScopes(scopes); } catch (ValidationResponseException e) { return e.v; } return VALID; } }
OAuth2ValidatorImpl implements OAuth2Validator { @Override public ValidationResponse validate(AuthorizationRequest authorizationRequest) { try { validateAuthorizationRequest(authorizationRequest); String responseType = validateResponseType(authorizationRequest); Client client = validateClient(authorizationRequest); authorizationRequest.setClient(client); String redirectUri = determineRedirectUri(authorizationRequest, responseType, client); authorizationRequest.setRedirectUri(redirectUri); List<String> scopes = determineScopes(authorizationRequest, client); authorizationRequest.setRequestedScopes(scopes); } catch (ValidationResponseException e) { return e.v; } return VALID; }  }
OAuth2ValidatorImpl implements OAuth2Validator { @Override public ValidationResponse validate(AuthorizationRequest authorizationRequest) { try { validateAuthorizationRequest(authorizationRequest); String responseType = validateResponseType(authorizationRequest); Client client = validateClient(authorizationRequest); authorizationRequest.setClient(client); String redirectUri = determineRedirectUri(authorizationRequest, responseType, client); authorizationRequest.setRedirectUri(redirectUri); List<String> scopes = determineScopes(authorizationRequest, client); authorizationRequest.setRequestedScopes(scopes); } catch (ValidationResponseException e) { return e.v; } return VALID; }  @Override ValidationResponse validate(AuthorizationRequest authorizationRequest); @Override ValidationResponse validate(AccessTokenRequest request, 
      BasicAuthCredentials clientCredentials); }
OAuth2ValidatorImpl implements OAuth2Validator { @Override public ValidationResponse validate(AuthorizationRequest authorizationRequest) { try { validateAuthorizationRequest(authorizationRequest); String responseType = validateResponseType(authorizationRequest); Client client = validateClient(authorizationRequest); authorizationRequest.setClient(client); String redirectUri = determineRedirectUri(authorizationRequest, responseType, client); authorizationRequest.setRedirectUri(redirectUri); List<String> scopes = determineScopes(authorizationRequest, client); authorizationRequest.setRequestedScopes(scopes); } catch (ValidationResponseException e) { return e.v; } return VALID; }  @Override ValidationResponse validate(AuthorizationRequest authorizationRequest); @Override ValidationResponse validate(AccessTokenRequest request, 
      BasicAuthCredentials clientCredentials);  }