Social IdP scripting API
The following bindings are available to social identity provider (IdP) scripts that are used by the following components:
-
Social IdP service to transform the IdP’s raw profile into a normalized object.
-
Social Provider Handler node to transform the normalized profile into an identity or managed object.
-
OIDC ID Token Validator node to map ID token attributes to local attributes.
|
This script can be either a legacy or a next-generation script. It has access to all the common bindings for its scripting context. Learn about converting existing scripts in Migrate OAuth scripts to next-generation scripts. |
Legacy API
For Legacy, the following bindings are available to the Social Identity Provider Profile Transformation script context:
-
jwtClaims -
normalizedProfile -
rawProfile -
requestHeaders -
requestParameters -
selectedIdp -
sharedState -
transientState
Next-generation API
For next-generation, scripting functionality is divided between the following contexts, each of which has access to a subset of the bindings:
| Context | Bindings |
|---|---|
Social Identity Provider Profile Transformation (Next-Gen) |
|
Social Provider Handler Node |
|
OIDC Node |
|
Bindings
In addition to the common bindings, the social IdP scripts have access to the following bindings:
| Binding | Description | Legacy type | Next-generation type |
|---|---|---|---|
|
The JWT claims. |
An object representing a JSON value. |
Map of JSON value objects. Only available to OIDC node scripts. |
|
The object that stores the normalized profile data. |
An object representing a JSON value. |
Map of JSON value objects. Only available to Social Provider Handler node scripts. |
|
The object that stores the social IdP profile attributes in the format received by the provider. For example:
|
An object representing a JSON value. |
Map of JSON value objects. Only available to Social IdP Profile Transformation scripts |
|
Access the HTTP headers provided in the login request by calling:
For example:
|
Map<String, List<String>> |
Map<String, List<String>> |
|
Access the HTTP request parameters provided in the login request by calling For example:
|
Map<String, List<String>> |
Map<String, List<String>> |
|
Deprecated in favor of the common binding, |
Not available |
|
|
The social identity provider name. For example: |
String |
String |
|
Deprecated in favor of the common binding, |
Not available |
|