SCIM Connector

The Java-based SCIM connector runs inside the Identity Java Connector Integration Framework. It communicates with target systems that provide a System for Cross-domain Identity Management (SCIM) REST API, using JSON over HTTP or HTTPS.

The connector is implemented by the class siemens.dxm.connector.framework.rest.scim.BasicScimConnector. It translates DirX Identity connector requests to SCIM REST requests and translates the responses back to SPMLv1.

Capabilities

The connector implements a basic subset of SCIM v2 for user and group resources:

  • Add, modify, delete, and search users and groups.

  • Add and remove users from groups by updating the group membership.

  • Search with SCIM filters, requested attributes, sorting, and pagination.

  • Authenticate to the SCIM service with OAuth 2.0 by obtaining and refreshing tokens with the password grant, or use a pre-issued bearer token.

The connector implements basic SCIM features. The SCIM service must support the operations and request formats used by the connector; support for other SCIM features is not implied.

Configuration

DirX Identity Manager normally supplies the endpoint and bind credentials from the selected connected directory and bind profile. In the connector configuration XML, these values are specified as standard attributes of <connection>. Additional options are specified as <property> elements.

Property Type Description

server

String

Required. Host name or IP address of the SCIM service.

port

String

Port of the SCIM service.

ssl

Boolean

Enables HTTPS for the SCIM service.

user

String

Required for OAuth password-grant authentication. User name sent to the OAuth service.

password

String

Required for OAuth password-grant authentication, or for bearer-token authentication without bearerTokenFile. In bearer-token mode, this is the bind-profile password and contains the token directly.

path

String

Path to the SCIM API. Defaults to scim/v2.

authorizationServerUrl

String

Required when useBearerToken is false. Full URL of the OAuth token endpoint.

clientId

String

Required when useBearerToken is false. OAuth client ID used to authenticate the client to the token service.

clientSecret

String

Required when useBearerToken is false. OAuth client secret used to authenticate the client to the token service.

oauthScope

String

Optional. Scope requested from the OAuth service.

proxyHost, proxyPort

String

Optional. Host and port of an HTTP proxy.

proxyUser, proxyPassword

String

Optional. Credentials for proxy authentication.

debugMode

Boolean

Enables debug logging. Defaults to false.

useBearerToken

Boolean

Uses a pre-issued bearer token instead of obtaining an OAuth 2.0 access token. Defaults to false.

bearerTokenFile

String

Optional absolute path to a UTF-8 file containing the pre-issued bearer token. When set, the file takes precedence over the bind-profile password.

Bearer token authentication

Set useBearerToken to true to authenticate with a pre-issued bearer token instead of the OAuth 2.0 password grant. You can provide the token in either of these ways:

  • Enter the token, without the `Bearer ` prefix, in the password of the associated bind profile.

  • Set bearerTokenFile to the absolute path of a protected file on the machine that runs the provisioning job.

The token file is the preferred option for long tokens because the bind-profile password may be subject to an RSA encryption limit. It must contain only the UTF-8 token, optionally followed by one newline. The connector reads the file for every request, so replacing the file can make a newly issued token effective without restarting the job. Replace the file atomically to avoid requests reading a partial token.

The file takes precedence over the bind-profile password. Restrict file permissions to the provisioning service account and administrators: the file contains the token in plaintext.

In bearer token mode, the connector does not obtain or refresh tokens and cannot recover from an authorization error by obtaining a new token. Replace an expired or revoked token manually. With a bind-profile password, update the password and restart the job so that the new token is loaded.

Use HTTPS for the SCIM service and never include the token in job configuration or logs.

Example configuration:

<connector className="siemens.dxm.connector.framework.rest.scim.BasicScimConnector"
           name="SCIM" role="connector">
    <connection type="SCIMv2" server="scim.example.com" port="443"
                ssl="true" user="service-user">
        <property name="path" value="scim/v2"/>
        <property name="authorizationServerUrl"
                  value="https://auth.example.com/oauth/token"/>
        <property name="clientId" value="client-id"/>
        <property name="clientSecret" value="client-secret"/>
        <property name="oauthScope" value="userManagement"/>
        <property name="useBearerToken" value="false"/>
    </connection>
</connector>

The SCIM API endpoint is formed from the protocol, server, port, and path. User and group resources are addressed under the Users and Groups paths, respectively.