OpenIdClient
OpenIdClient declares an OpenID Connect clientId/secret to call the Identity Manager API. All the configurations need at least one clientId used by all the jobs on the agent side to call the server.
Only the hashed secret is kept in the configuration. The clear version is only known by the API callers.
The secret must be strong enough to protect access to the API.
Generate secrets with the Usercube-New-OpenIDSecret tool, which generates a cryptographically secure random secret and its hash. Each clientId must have its own secret. Rotating existing secrets regularly is recommended.
Each clientId must have a scope of responsibility. The Profile and ContextId properties assign a required Profile and an optional Profile Context.
Examplesβ
The following code declares a clientId with the Administrator profile.
<OpenIdClient Identifier="Job" HashedSecret="OPENID_CLIENT_HASH" DisplayName_L1="ClientId for Jobs" Profile="Administrator" />
The following code example declares a clientId with the RoleOfficerByCategory profile, restricted to the profile context defined in the same example. The ContextId property must reference the Id of an existing Profile Context. Profile contexts don't have identifiers, so to avoid recalculation of the ProfileContext's Id property on configuration deployment, declare the Id manually, as shown in the example. To be valid, it must be lower or equal to -2.
<OpenIdClient Identifier="RoleOfficerByCategory" HashedSecret="OPENID_CLIENT_HASH" DisplayName_L1="Role Officer by Category" Profile="RoleOfficerByCategory" ContextId="-2" />
<ProfileContext Id="-2" Category="IT Administration" D0="ORG0003" />
Propertiesβ
| Property | Details |
|---|---|
| Context optional | Type: Int64 Description: Id of the ProfileContext used to further restrict the client scope of responsibility |
| DisplayName_L1 required | Type: String Description: Name that will be Displayed on the screen |
| ExpirationDate optional | Type: DateTime Description: After this date, the client is no longer usable |
| HashedSecret required | Type: String Description: HashedPassword of client |
| Identifier required | Type: String Description: Client login name and name |
| Profile required | Type: Int64 Description: Profile linked with the client |