57         OIDCConfigurationRepresentation rep;
    59             rep = JsonSerialization.readValue(inputStream, OIDCConfigurationRepresentation.class);
    60         } 
catch (IOException e) {
    61             throw new RuntimeException(
"failed to load openid connect metadata", e);
    63         OIDCIdentityProviderConfig config = 
new OIDCIdentityProviderConfig(
new IdentityProviderModel());
    64         config.setIssuer(rep.getIssuer());
    65         config.setLogoutUrl(rep.getLogoutEndpoint());
    66         config.setAuthorizationUrl(rep.getAuthorizationEndpoint());
    67         config.setTokenUrl(rep.getTokenEndpoint());
    68         config.setUserInfoUrl(rep.getUserinfoEndpoint());
    69         if (rep.getJwksUri() != null) {
    70             config.setValidateSignature(
true);
    71             config.setUseJwksUrl(
true);
    72             config.setJwksUrl(rep.getJwksUri());
    74         return config.getConfig();