@Test void testgetParametersFromDiscoveryResponse() { Map<String, Object> discoveryDocument = new HashMap<>(); discoveryDocument.put("issuer", "https: discoveryDocument.put("token_endpoint", "https discoveryDocument.put("jwks_uri", "https assertEquals("https assertEquals("", OpenIDConnectionUtils.getParametersFromDiscoveryResponse(discoveryDocument, "userinfo_endpoint")); }
static String getParametersFromDiscoveryResponse(Map<String, Object> responseAsJson, String key) { if (responseAsJson.containsKey(key)) { return String.valueOf(responseAsJson.get(key)); } else { LOGGER.warn("oidc: oidc: discovery object doesn't contain a {}", key); } return StringUtils.EMPTY; }
OpenIDConnectionUtils { static String getParametersFromDiscoveryResponse(Map<String, Object> responseAsJson, String key) { if (responseAsJson.containsKey(key)) { return String.valueOf(responseAsJson.get(key)); } else { LOGGER.warn("oidc: oidc: discovery object doesn't contain a {}", key); } return StringUtils.EMPTY; } }
OpenIDConnectionUtils { static String getParametersFromDiscoveryResponse(Map<String, Object> responseAsJson, String key) { if (responseAsJson.containsKey(key)) { return String.valueOf(responseAsJson.get(key)); } else { LOGGER.warn("oidc: oidc: discovery object doesn't contain a {}", key); } return StringUtils.EMPTY; } private  OpenIDConnectionUtils(); }
OpenIDConnectionUtils { static String getParametersFromDiscoveryResponse(Map<String, Object> responseAsJson, String key) { if (responseAsJson.containsKey(key)) { return String.valueOf(responseAsJson.get(key)); } else { LOGGER.warn("oidc: oidc: discovery object doesn't contain a {}", key); } return StringUtils.EMPTY; } private  OpenIDConnectionUtils(); static String resolveOIDCTokenFromAuthConfig(Map<String, String> currentAuthProviderConfig); }
OpenIDConnectionUtils { static String getParametersFromDiscoveryResponse(Map<String, Object> responseAsJson, String key) { if (responseAsJson.containsKey(key)) { return String.valueOf(responseAsJson.get(key)); } else { LOGGER.warn("oidc: oidc: discovery object doesn't contain a {}", key); } return StringUtils.EMPTY; } private  OpenIDConnectionUtils(); static String resolveOIDCTokenFromAuthConfig(Map<String, String> currentAuthProviderConfig); static final String ID_TOKEN_KUBECONFIG; static final String ISSUER_KUBECONFIG; static final String REFRESH_TOKEN_KUBECONFIG; static final String REFRESH_TOKEN_PARAM; static final String GRANT_TYPE_PARAM; static final String CLIENT_ID_PARAM; static final String CLIENT_SECRET_PARAM; static final String ID_TOKEN_PARAM; static final String ACCESS_TOKEN_PARAM; static final String CLIENT_ID_KUBECONFIG; static final String CLIENT_SECRET_KUBECONFIG; static final String IDP_CERT_DATA; static final String TOKEN_ENDPOINT_PARAM; static final String WELL_KNOWN_OPENID_CONFIGURATION; static final String GRANT_TYPE_REFRESH_TOKEN; }