final String redirectionUrl = this.openIdConfiguration.getAuthorizationEndpoint() + "?" + authorizationRequest.getQueryString(); logger.debug("oxAuth redirection Url: '{}'", redirectionUrl);
assertEquals(response.getStatus(), 200, "Unexpected response code"); assertNotNull(response.getIssuer(), "The issuer is null"); assertNotNull(response.getAuthorizationEndpoint(), "The authorizationEndpoint is null"); assertNotNull(response.getTokenEndpoint(), "The tokenEndpoint is null"); assertNotNull(response.getTokenRevocationEndpoint(), "The tokenRevocationEndpoint is null");
authorizationAction.setAuthorizationEndpoint(openIdConfigurationResponse.getAuthorizationEndpoint()); authorizationAction.setJwksUri(openIdConfigurationResponse.getJwksUri()); tokenAction.setTokenEndpoint(openIdConfigurationResponse.getTokenEndpoint());
public String getPropertyValue(String propertyName) { if (StringHelper.equalsIgnoreCase(Configuration.OAUTH_PROPERTY_AUTHORIZE_URL, propertyName)) { return openIdConfiguration.getAuthorizationEndpoint(); } else if (StringHelper.equalsIgnoreCase(Configuration.OAUTH_PROPERTY_TOKEN_URL, propertyName)) { return openIdConfiguration.getTokenEndpoint(); } else if (StringHelper.equalsIgnoreCase(Configuration.OAUTH_PROPERTY_USERINFO_URL, propertyName)) { return openIdConfiguration.getUserInfoEndpoint(); } else if (StringHelper.equalsIgnoreCase(Configuration.OAUTH_PROPERTY_LOGOUT_URL, propertyName)) { return openIdConfiguration.getEndSessionEndpoint(); } else if (StringHelper.equalsIgnoreCase(Configuration.OAUTH_PROPERTY_LOGOUT_REDIRECT_URL, propertyName)) { return appConfiguration.getOpenIdPostLogoutRedirectUri(); } else if (StringHelper.equalsIgnoreCase(Configuration.OAUTH_PROPERTY_CLIENT_ID, propertyName)) { return appConfiguration.getOpenIdClientId(); } else if (StringHelper.equalsIgnoreCase(Configuration.OAUTH_PROPERTY_CLIENT_PASSWORD, propertyName)) { return appConfiguration.getOpenIdClientPassword(); } else if (StringHelper.equalsIgnoreCase(Configuration.OAUTH_PROPERTY_CLIENT_SCOPE, propertyName)) { return Util.listAsString(appConfiguration.getOpenIdScopes()); } return null; }
assertEquals(response.getStatus(), 200, "Unexpected response code"); assertNotNull(response.getIssuer(), "The issuer is null"); assertNotNull(response.getAuthorizationEndpoint(), "The authorizationEndpoint is null"); assertNotNull(response.getTokenEndpoint(), "The tokenEndpoint is null"); assertNotNull(response.getTokenRevocationEndpoint(), "The tokenRevocationEndpoint is null"); assertTrue(response.getClaimsSupported().size() > 0, "The claimsSupported is empty"); authorizationEndpoint = response.getAuthorizationEndpoint(); tokenEndpoint = response.getTokenEndpoint(); tokenRevocationEndpoint = response.getTokenRevocationEndpoint();