public OpenIdConfigurationResponse execOpenIdConfiguration() throws IOException { initClientRequest(); return _execOpenIdConfiguration(); }
@Deprecated public OpenIdConfigurationResponse execOpenIdConfiguration(ClientExecutor executor) throws IOException { this.clientRequest = new ClientRequest(getUrl(), executor); return _execOpenIdConfiguration(); }
private void loadOpenIdConfiguration() throws IOException { String openIdProvider = appConfiguration.getOpenIdProviderUrl(); if (StringHelper.isEmpty(openIdProvider)) { throw new ConfigurationException("OpenIdProvider Url is invalid"); } final OpenIdConfigurationClient openIdConfigurationClient = new OpenIdConfigurationClient(openIdProvider); final OpenIdConfigurationResponse response = openIdConfigurationClient.execOpenIdConfiguration(); if ((response == null) || (response.getStatus() != 200)) { throw new ConfigurationException("Failed to load oxAuth configuration"); } logger.info("Successfully loaded oxAuth configuration"); this.openIdConfiguration = response; }
String openIdConfigurationUrl = openIdConnectDiscoveryResponse.getLinks().get(0).getHref() + "/.well-known/openid-configuration"; OpenIdConfigurationClient openIdConfigurationClient = new OpenIdConfigurationClient( openIdConfigurationUrl); OpenIdConfigurationResponse openIdConfigurationResponse; if (clientExecutor == null) { openIdConfigurationResponse = openIdConfigurationClient.execOpenIdConfiguration(); } else { openIdConfigurationResponse = openIdConfigurationClient.execOpenIdConfiguration(clientExecutor); requestString2 = openIdConfigurationClient.getRequestAsString(); responseString2 = openIdConfigurationClient.getResponseAsString();
OpenIdConfigurationClient client = new OpenIdConfigurationClient(configurationEndpoint); client.setExecutor(clientExecutor(true)); OpenIdConfigurationResponse response = client.execOpenIdConfiguration();
setRequest(new OpenIdConfigurationRequest()); clientRequest.setHttpMethod(getHttpMethod()); setResponse(new OpenIdConfigurationResponse(status)); getResponse().setEntity(entity); getResponse().setHeaders(clientResponse.getMetadata()); if (StringUtils.isNotBlank(entity)) { JSONObject jsonObj = new JSONObject(entity); getResponse().setIssuer(jsonObj.getString(ISSUER)); getResponse().setAuthorizationEndpoint(jsonObj.getString(AUTHORIZATION_ENDPOINT)); getResponse().setTokenEndpoint(jsonObj.getString(TOKEN_ENDPOINT)); getResponse().setTokenRevocationEndpoint(jsonObj.getString(TOKEN_REVOCATION_ENDPOINT)); getResponse().setUserInfoEndpoint(jsonObj.getString(USER_INFO_ENDPOINT)); getResponse().setClientInfoEndpoint(jsonObj.getString(CLIENT_INFO_ENDPOINT)); getResponse().setCheckSessionIFrame(jsonObj.getString(CHECK_SESSION_IFRAME)); getResponse().setEndSessionEndpoint(jsonObj.getString(END_SESSION_ENDPOINT)); getResponse().setJwksUri(jsonObj.getString(JWKS_URI));
OpenIdConfigurationClient client = new OpenIdConfigurationClient(configurationEndpoint); OpenIdConfigurationResponse response = client.execOpenIdConfiguration();