Based on the information obtained in the Creating an OIDC application in the IdP section, create a config.json file in the following format.
{
"name": "OIDC", // Login source name
"issuer": "<Issuer>", // OIDC client issuer
"clientId": "<clientId>", // OIDC client ID
"clientSecret": "<clientSecret>", // OIDC client secret
"pkceEnabled": false, // Whether to enable PKCE
"claimMapping": { // Field mapping for user attributes. Only top-level claim mapping is supported. For nested claims, map them to the top level using a custom claim.
"username": "preferred_username", // Username mapping
"email": "email", // Email mapping
"telephone": "phone_number" // Phone number mapping
},
"scope": "openid profile email phone" // Scopes required by the client, assembled based on claims
}Parameter description
| Parameter | Description |
|---|---|
| name | Specifies a unique name for this SSO login source, for example, Okta-SSO or Duo-Login. |
| issuer | The issuer URL obtained from the IdP. |
| clientId | The client ID obtained from the IdP. |
| clientSecret | The client secret obtained from the IdP. |
| pkceEnabled | Whether to enable PKCE security enhancement. For web applications such as AOC, this is typically set to false. |
| scope | Defines the scope of information AOC requests from the IdP. Multiple scopes are separated by spaces. openid is required. |
| claimMapping | The core configuration. Maps user information (claims) returned by the IdP to AOC user attributes. |
| claimMapping.username | Required. Specifies which claim returned by the IdP to use as the unique login name for the user in AOC. It is strongly recommended to use email or sub (unique user ID). |
| claimMapping.* | (Optional) Additional attribute mappings, for example, the mapping of the IdP's name claim to the user's name attribute in AOC. |