Set Success Details node
The Set Success Details node adds additional details to the JSON response on successful authentication. You can add either or both of the following:
-
Success details: Lets you add static
key:value
fields to the JSON response. -
Session properties: Lets you add
key:value
fields to the JSON response, wherevalue
corresponds to the value of the specified session property.This lets you retrieve session properties in the journey without needing additional post-authentication processing.
You can’t override the tokenId , successUrl , and realm fields returned in the JSON response by default.
|
Compatibility
Product | Compatible? |
---|---|
PingOne Advanced Identity Cloud |
Yes |
PingAM (self-managed) |
Yes |
Ping Identity Platform (self-managed) |
Yes |
Dependencies
Make sure the user can successfully authenticate and get a session.
If this node is added to a no session journey or the noSession
query parameter is used during authentication, this node has no effect.
Configuration
Property | Usage | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Success Details |
The success details to add:
When finished, click Save to keep your settings. |
||||||||||||
Session Properties |
The session properties to add.
You can find a list of the default session properties in Session properties.
When finished, click Save to keep your settings. |
Outcomes
Single outcome path: when the journey completes successfully, this node adds the additional configured details to the JSON response.
Examples
Example 1: Add static content and session properties
This example uses the Set Success Details node to add the following additional details to the JSON response:
-
A static
authMethod:password
field. -
A
universalId
session property, which returns the corresponding value from the session when the user authenticates.
![Journey with a [.label]#Set Success Details# node](_images/set-success-details-journey.png)
-
The Page node containing the Platform Username node and Platform Password node prompts for credentials.
-
The Data Store Decision node validates the username-password credentials.
-
The Increment Login Count node updates the number of successful authentications in the user profile.
-
The Set Success Details node adds the additional configured details to the JSON response upon successful authentication. This example uses the following configuration:
- Success Details
-
Key:
authMethod
Value:
password
- Session Properties
-
Key:
universalId
Value:
sun.am.UniversalIdentifier
When the user authenticates successfully using this journey, the JSON response includes the additional details you configured. For example:
{
"tokenId": "AQIC5wM…TU3OQ*",
"successUrl": "/enduser/?realm=/alpha",
"realm": "/alpha",
"universalId": "id=bjensen,ou=user,o=alpha,ou=services,ou=am-config",
"authMethod": "password"
}
Example 2: Add dynamic content
This example uses the Configuration Provider node to imitate the Set Success Details node. Using the Configuration Provider node lets you add dynamic content to the JSON response, such as an API response, in addition to static content and session properties.
![Journey with a [.label]#Configuration Provider# node imitating the [.label]#Set Success Details# node](_images/set-success-details-journey-dynamic.png)
Find more information about this example in Example 2: Imitate the Set Success Details node.