By: Chris Lumpkin user 26 Oct 2020 at 10:57 a.m. CDT

2 Responses
Chris Lumpkin gravatar
I am following the documentation for [enabling SCIM protected by UMA](https://gluu.org/docs/gluu-server/4.2/user-management/scim2/#scim-protected-by-uma). I'm using the example code from the documentation as follows: ``` public void run(String... args) throws Exception { LOG.info("EXECUTING : command line runner"); ClientSideService client = ScimClientFactory.getClient(domainURL, umaAatClientId, umaAatClientJksPath, umaAatClientJksPassword, umaAatClientKeyId); String filter = "userName eq \"admin\""; Response response = client.searchUsers(filter, 1, 1, null, null, null, null); LOG.info("Got response : Status - " + response.getStatusInfo().getStatusCode() + ": " + response.getStatusInfo().getReasonPhrase()); LOG.info("Got response : " + response); List<BaseScimResource> resources = response.readEntity(ListResponse.class).getResources(); LOG.info("Length of results list is: {}", resources.size()); UserResource admin = (UserResource) resources.get(0); LOG.info("First user in the list is: {}" + admin.getDisplayName()); client.close(); for (int i = 0; i < args.length; ++i) { LOG.info("args[{}]: {}", i, args[i]); } } ``` These are my config values: ``` GLUU_DOMAIN=https://auth.tcpdev.org/identity/restv1 UMA_AAT_CLIENT_ID = 1202.fa5c7517-d54b-4b53-90b9-e1ba387e44aa UMA_AAT_CLIENT_JKS_PATH = certs/dev/scim-rp.jks UMA_AAT_CLIENT_JKS_PASSWORD = xxxxxxxxx ``` * Using the default `https://auth.tcpdev.org/identity/restv1` I get HTTP 307 * Using `https://auth.tcpdev.org/oxauth/restv1` or `https://auth.tcpdev.org/scim/restv1` I get HTTP 404 What is the correct URI for SCIM? Is it possible we need to enable an ingress route?

By Chris Lumpkin user 27 Oct 2020 at 3:34 p.m. CDT

Chris Lumpkin gravatar
This was fixed after adding a route to for `/scim`, so I guess the SCIM documentation isn't accurate for kubernetes deployments.

By Mohammad Abudayyeh staff 29 Oct 2020 at 7:09 a.m. CDT

Mohammad Abudayyeh gravatar
Hey Chris, Yeah there should have been an ingress defined for scim. https://github.com/GluuFederation/cloud-native-edition/blob/4.2/pygluu/kubernetes/templates/nginx/nginx.yaml#L157-L180 Thanks