If you register a user through OAuth 2.0 Client Registration that is authenticated through SAML 2.0 Assertion, JSON Web Token, or a custom source, you need to specify how the Pega server identifies an operator. Use the Identity Mapping data instance to create a profile, and map attributes, claims, or password credentials to operator record properties to identify an operator.
Click Create and open.
In the Signature verification section, in the Truststore field, press the Down Arrow Key and select the same keystore that is used by the SAML 2.0 Assertion and that verifies the token.
In the Attribute Name field, enter an attribute to map the .pyUserIdentifier property to identify an existing operator.
In the Processing options section, in the Post processing activity field, enter the name of your post-processing activity. The post-processing activity can connect to any external entity to get additional data, and enrich the OperatorID page with attributes that are available on the assertion page. You can use the pzSAMLBearerIdentityMappingAct activity as a reference while creating your own post-processing activity.
You need to create a new identity mapping instance and token profile. In the token profile, specify the Issuer and Audience claim in the Claim validation section, the Subject and Expiration Time claim in the Claims mapping section, and a keystore in the Trustore field. For more information, see Processing a JSON Web Token.
Click Create and open.
In the Token Validation section, in the Token processing profile field, press the Down Arrow key and select the JSON Web Token profile that you created to validate the token.
In the Processing options section, in the Post processing activity field, press the Down Arrow key and the pyJWTBearerIdentityMappingAct activity that processes the JSON Web Token.
Modify pyJWTBearerIdentityMappingAct activity to map the claims in the Claim mapping and Advanced mapping section in the token profile to the operator page.
For external users, modify steps 3, 4 and 5 in the pyCustomIdentityMappingAct activity. In addition, you must populate the pyOperPage parameter if it is not populated in the custom activity.
In the Processing options section, in the Post processing activity field, press the Down Arrow key and select the activity name that is used to identifies the operator through the password credentials.