final TokenClient tokenClient = new TokenClient(this.openIdConfiguration.getTokenEndpoint());
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"); assertNotNull(response.getUserInfoEndpoint(), "The userInfoEndPoint is null");
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"); assertNotNull(response.getUserInfoEndpoint(), "The userInfoEndPoint is null"); tokenEndpoint = response.getTokenEndpoint(); tokenRevocationEndpoint = response.getTokenRevocationEndpoint(); userInfoEndpoint = response.getUserInfoEndpoint();
authorizationAction.setAuthorizationEndpoint(openIdConfigurationResponse.getAuthorizationEndpoint()); authorizationAction.setJwksUri(openIdConfigurationResponse.getJwksUri()); tokenAction.setTokenEndpoint(openIdConfigurationResponse.getTokenEndpoint()); userInfoAction.setUserInfoEndpoint(openIdConfigurationResponse.getUserInfoEndpoint()); checkSessionAction.setCheckSessionEndpoint(openIdConfigurationResponse.getCheckSessionIFrame());
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; }