I'm using scim-rp-openid-keys.json from the output directory.
scim_rp_client_id=@!2871.5F6D.80F4.1B1E!0001!491C.0AC2!0008!144C.BCEE
scim_rs_client_id=@!2871.5F6D.80F4.1B1E!0001!491C.0AC2!0008!E68E.D587
Here's the client code:
package com.test;
> import gluu.scim.client.ScimClient;
import gluu.scim.client.ScimResponse;
import gluu.scim2.client.Scim2Client;
> import java.io.File;
import java.io.IOException;
> import javax.ws.rs.core.MediaType;
import javax.xml.bind.JAXBException;
> import org.apache.commons.io.FileUtils;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
> public class TestUma {
private static void testScim1Uma(String domain, String umaMetaDataUrl, String umaAatClientId, String umaAatClientJwks, String umaAatClientKeyId) throws IOException, JsonGenerationException, JsonMappingException, JAXBException {
final ScimClient scimClient = ScimClient.umaInstance(domain, umaMetaDataUrl, umaAatClientId, umaAatClientJwks, umaAatClientKeyId);
ScimResponse response = scimClient.personSearch("uid", "admin", MediaType.APPLICATION_JSON);
System.out.println("SCIM1 " + response.getResponseBodyString());
}
private static void testScim2Uma(String domain, String umaMetaDataUrl, String umaAatClientId, String umaAatClientJwks, String umaAatClientKeyId) throws IOException, JsonGenerationException, JsonMappingException, JAXBException {
final Scim2Client scim2Client = Scim2Client.umaInstance(domain, umaMetaDataUrl, umaAatClientId, umaAatClientJwks, umaAatClientKeyId);
ScimResponse response = scim2Client.personSearch("uid", "admin", MediaType.APPLICATION_JSON);
System.out.println("SCIM2: " + response.getResponseBodyString());
}
public static void main(String[] args) throws IOException, JAXBException {
//final String domain = "https://c67.gluu.info/identity/seam/resource/restv1";
final String domain = "https://gluu-server.com/identity/seam/resource/restv1";
//final String umaMetaDataUrl = "https://c67.gluu.info/.well-known/uma-configuration";
final String umaMetaDataUrl = "https://gluu-server.com//.well-known/uma-configuration";
//final String umaAatClientId = "@!A410.188A.95DD.EA5A!0001!3A1E.BAA5!0008!5870.A795";
final String umaAatClientId = "@!2871.5F6D.80F4.1B1E!0001!491C.0AC2!0008!144C.BCEE";
final String umaAatClientJwks = FileUtils.readFileToString(new File("//Users//kevin//Projects//gluu_server//infrastructure//scim-rp-openid-keys.json"));;
final String umaAatClientKeyId = "";
testScim1Uma(domain, umaMetaDataUrl, umaAatClientId, umaAatClientJwks, umaAatClientKeyId);
testScim2Uma(domain, umaMetaDataUrl, umaAatClientId, umaAatClientJwks, umaAatClientKeyId);
}
}
Note: I'm ready to give you remote access to my system if you're willing to do that. Mail me @ kevin.madhu@gmail.com, I'll reply with the details(and after we crack the issue, we'll update it here).