Gold Identity Mapper Guide
--- Our gold custom service and how we work
Note: The first column (User Property/Attribute
) is just a reference title and must not be consumed for attribute mapping, instead please use the last column (Standard Realm - OIDC Payload
) to use it as the claim name in your Identity Providers Mappers configuration.
IDP Attributes & Mappers
IDIR
Note:
In Gold, the SAML payload contains
<NameID>
, whose value is same as that of theidir_user_guid
will be mapped tousername
of the logging in user inside parent realmUser Property/Attribute IDP - SAML Payload(*) Parent Realm Mapper Custom/Standard Realm Mapper Standard Realm - OIDC Payload First Name first_name given_name given_name given_name Last Name last_name family_name family_name family_name Email email email email email Display Name display_name display_name display_name display_name IDIR Username idir_username idir_username idir_username idir_username IDIR User GUID idir_user_guid idir_user_guid idir_user_guid idir_user_guid Keycloak Generated Preferred Username idir_user_guid preferred_username preferred_username= {{preferred_username}}@idir
preferred_username
Azure IDIR
In Gold
User Property/Attribute | IDP - SAML Payload(*) | Parent Realm Mapper | Custom/Standard Realm Mapper | Standard Realm - OIDC Payload |
---|---|---|---|---|
First Name | first_name | given_name | given_name | given_name |
Last Name | last_name | family_name | family_name | family_name |
Display Name | display_name | display_name | display_name | display_name |
IDIR Username | idir_username | idir_username | idir_username | idir_username |
IDIR User GUID | idir_user_guid | idir_user_guid | idir_user_guid | idir_user_guid |
User Principal Name | user_principal_name | user_principal_name | user_principal_name | user_principal_name |
Keycloak Generated Preferred Username | idir_user_guid | preferred_username | preferred_username={{preferred_username}}@azureidir | preferred_username |
Basic BCeID
In Gold
User Property/Attribute IDP - SAML Payload(*) Parent Realm Mapper Custom/Standard Realm Mapper Standard Realm - OIDC Payload Email email email email email Display Name display_name display_name display_name display_name Display Name display_name display_name given_name given_name BCeID Username bceid_username bceid_username bceid_username bceid_username BCeID User GUID bceid_user_guid bceid_user_guid bceid_user_guid bceid_user_guid Keycloak Generated Preferred Username bceid_user_guid preferred_username preferred_username= {{bceid_user_guid}}@bceidbasic
preferred_username
Business BCeID
In Gold
User Property/Attribute IDP - SAML Payload(*) Parent Realm Mapper Custom/Standard Realm Mapper Standard Realm - OIDC Payload Email email email email email Display Name display_name display_name display_name display_name Display Name display_name display_name given_name given_name BCeID Username bceid_username bceid_username bceid_username bceid_username BCeID User GUID bceid_user_guid bceid_user_guid bceid_user_guid bceid_user_guid Keycloak Generated Preferred Username bceid_user_guid preferred_username preferred_username= {{bceid_user_guid}}@bceidbusiness
preferred_username BCeID Business Guid SMGOV_BUSINESSGUID bceid_business_guid bceid_business_guid bceid_business_guid BCeID Business Name SMGOV_BUSINESSLEGALNAME bceid_business_name bceid_business_name bceid_business_name
BCeID Both
In Gold
User Property/Attribute IDP - SAML Payload(*) Parent Realm Mapper Custom/Standard Realm Mapper Standard Realm - OIDC Payload Email email email email email Display Name display_name display_name display_name display_name Display Name display_name display_name given_name given_name BCeID Username bceid_username bceid_username bceid_username bceid_username BCeID User GUID bceid_user_guid bceid_user_guid bceid_user_guid bceid_user_guid Keycloak Generated Preferred Username bceid_user_guid preferred_username preferred_username= {{bceid_user_guid}}@bceidboth
preferred_username BCeID Business Guid SMGOV_BUSINESSGUID bceid_business_guid bceid_business_guid bceid_business_guid BCeID Business Name SMGOV_BUSINESSLEGALNAME bceid_business_name bceid_business_name bceid_business_name
GitHub Public
In Gold
User Property/Attribute IDP - SAML Payload(*) Parent Realm Mapper Custom/Standard Realm Mapper Standard Realm - OIDC Payload Email email email email email Display Name name display_name display_name display_name Display Name name display_name display_name name Display Name name display_name given_name given_name GitHub ID id github_id github_id github_id Keycloak Generated Preferred Username id preferred_username preferred_username= {{id}}@githubpublic
preferred_username= {{id}}@githubpublic
GitHub Username login github_username github_username github_username BCGov Github Membership org_verified org_verified org_verified BCGov Github Orgs orgs orgs orgs
GitHub BCGov
In Gold
User Property/Attribute IDP - SAML Payload(*) Parent Realm Mapper Custom/Standard Realm Mapper Standard Realm - OIDC Payload Email email email email email Display Name name display_name display_name display_name Display Name name display_name display_name name Display Name name display_name given_name given_name GitHub ID id github_id github_id github_id Keycloak Generated Preferred Username id preferred_username preferred_username= {{id}}@githubbcgov
preferred_username= {{id}}@githubbcgov
GitHub Username login github_username github_username github_username BCGov Github Membership org_verified org_verified org_verified BCGov Github Orgs orgs orgs orgs org_verified
:true
if the authenticated user hasbcgov
GitHub org membership, otherwise,false
.orgs
:space-separated
list of BCGov GitHub org that the authenticated user has a membership of.
BC Services Card
In Gold
Clients can request additional claims when creating their client in the CSS App. See here for an up-to-date list of available claims. The BCSC sub will not be available for selection in the app, however the received token's sub or preferred_username claim can be used as an identifier.
The
idp-name
will be generated from your client name and idUser Property/Attribute IDP - Payload(*) Custom/Standard Realm Mapper Standard Realm - OIDC Payload Keycloak Generated Preferred Username sub preferred_username= {{sub}}@<idp-name>
preferred_username= {{sub}}@<idp-name>
Digital Credential
In Gold
The requested credential information will be in JSON format under the vc_presented_attributes claim
User Property/Attribute IDP - Payload(*) Custom/Standard Realm Mapper Standard Realm - OIDC Payload Keycloak Generated Preferred Username sub preferred_username= {{sub}}@digitalcredential
preferred_username= {{sub}}@digitalcredential
Digital Credential Content (JSON) vc_presented_attributes vc_presented_attributes vc_presented_attributes The Presentation Request Configuration ID pres_req_conf_id pres_req_conf_id pres_req_conf_id