Add Claim Dialects¶
A set of claims are identified as a dialect. Different dialects represent the same piece of information with different claim URIs. The following dialects are defined by default with the Claim Management Feature in MWARE IAM.
http://schemas.xmlsoap.org/ws/2005/05/identity
- Default dialect for STShttp://wso2.org/claims
- Default dialect for WSO2 Carbonhttp://axschema.org
- Default dialect for OpenID Attribute Exchangehttp://schema.openid.net/2007/05/claims
- Default dialect for OpenID Simple Registrationhttp://wso2.org/oidc/claim
- Default dialect for OpenID Connecturn:scim:schemas:core:1.0
- Default dialect for SCIM
In MWARE IAM, there are two ways you can add a new dialect.
Use the management console¶
Follow the instructions below to add a new dialect using the management console.
- Access the Management Console (
https://<IS_HOST>:<PORT>/carbon
). - Go to Main > Identity > Claims and click Add.
-
Click Add Claim Dialect and enter a value for the Dialect URI.
Info
The Dialect URI is a unique URI identifying the dialect (for example,
http://schema.openid.net/2007/05/claims
). -
Click Add and the claim dialect will appear on the list as follows.
Use the configuration file¶
Follow the instructions below to add a new dialect through the configuration file.
Note
The dialects configured in the <IS_HOME>/repository/conf/claim-config.xml
file get applied only when you start the product for the first time or for any newly created tenants.
With the first startup, dialects and claims are loaded from the file and persisted in the database. Any consecutive updates to the file will not be picked up.
-
Open the
claim-config.xml
file found in the<IS_HOME>/repository/conf/
folder. -
Add the following configuration to the file along with the new claims you want to add under the dialect.
<Dialect dialectURI="http://wso2.org/SampleAppClaims"> <Claim> <ClaimURI>http://wso2.org/SampleAppClaims/givenname</ClaimURI> <DisplayName>First Name</DisplayName> <MappedLocalClaim>http://wso2.org/claims/givenname</MappedLocalClaim> </Claim> <Claim> <ClaimURI>http://wso2.org/SampleAppClaims/nickName</ClaimURI> <DisplayName>Nick Name</DisplayName> <MappedLocalClaim>http://wso2.org/claims/nickname</MappedLocalClaim> </Claim> </Dialect>
-
Once you have edited the
claim-config.xml
file, restart MWARE IAM.
You can now view the new dialect via the management console.
Related topics