younifyd
Menu

Retrieve Identity Provider

Retrieve/Get a specific identity provider.

GET/tenants/{tenantId}/idps/{name}

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Retrieve Identity Provider action (under Auth Admin).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveIdentityProvider.response.data}}.

Request

Path parameters

namestringrequired
tenantIdstringrequired

Response

Returns 200 with an object. Read it in later steps with {{retrieveIdentityProvider.response.data.<field>}}.

namestring

Identity Provider Name

One ofadfsappleauth0azurecognitofacebookforgerockgigyagigya_socialgoogleoktapingsalesforce

authUrlstring

IDP authorize URL

tokenUrlstring

IDP token URL

tokenInfoUrlstring

IDP token info URL

userInfoUrlstring

IDP user info URL

redirectUrlstring

Redirect URL to go to after IDP flow is complete. This URL must be registered with the IDP.

wellKnownUrlstring

IDP URL to get OIDC configuration.

clientIdstring

Client Id of the third party IDP.

clientSecretstring

Client Secret of the third party IDP. For Apple copy the contents from the .p8 file that was downloaded from Apple between -*----BEGIN PRIVATE KEY-----* and -*---END PRIVATE KEY-----* markers.

preferenceValueboolean

Set the IDP configuration as the Preferred SLAS IDP. Default value is `false`.

isClientCredsBodyboolean

Default is to place the client credentials in a basic authorization header for the call to the IDP. If true, the client credentials are placed in the POST body to the IDP.

useWellKnownboolean

If set to `true`, SLAS uses the `wellKnowUrl` value to populate the `authUrl`, `tokenUrl`, `userInfoUrl`, and `scopes` values from the identity provider. Default value is `false`.

scopesarray<string>

IDP Scopes

teamIdstring

Apple Team Id. Used primarily for Sign with Apple in generating the client secret.

keyIdstring

Apple key id. This is the Key ID that was obtained from Apple when the the private key for client authentication was created. Used primarily for Sign with Apple in generating the client secret.

loginMergeClaimsarray<string>

List of user info claims that can be used as identifiers to look up and merge with an existing B2C Commerce profile for a registered shopper or an existing B2C Commerce profile created via federated login with an external Identity Provider with the same merge claim as this one. If multiple matching B2C Commerce shopper (customer) profiles are found, the external profile is merged with the most recently created shopper (customer) profile. Refer to the Merge Shopper Profiles user guide for more details. Note: When configuring an Apple IDP, 'email' and 'sub' are the only supported merge claims.

oidcClaimMapperarray<string>

Mapping from the identity provider’s token claims for SLAS to get user information values when the user successfully authenticates. The values in this array should be setup using the following `key=value` pair pattern. The key part is the SLAS key with the value part being the OIDC claim key.

json
{
  "name": "google",
  "authUrl": "https://www.salesforce.com/authorize",
  "tokenUrl": "https://www.salesforce.com/token",
  "tokenInfoUrl": "https://www.salesforce.com/introspect",
  "userInfoUrl": "https://www.salesforce.com/userinfo",
  "redirectUrl": "https://www.salesforce.com/idp/callback",
  "wellKnownUrl": "https://www.salesforce.com/.well-known/openid-configuration",
  "clientId": "934277749308-02dg4398n3s31ofge8cot46jirn3kpkf.apps.googleusercontent.com",
  "clientSecret": "aKZM1xEnZopNP2bm2gc3GKex",
  "isClientCredsBody": false,
  "scopes": [
    "oidc",
    "email",
    "profile"
  ],
  "preferenceValue": true
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.