Configuring the Journey module in JavaScript
PingOne Advanced Identity Cloud PingAM JavaScript
You must configure the Journey client to connect to your Advanced Identity Cloud or PingAM server.
To configure the module, call the journey() factory function and provide the configuration options as follows:
journey clientconst journeyClient = await journey({
logger: {
level: 'warn', // Specify which messages the module should output
custom: customLogger, // Specify a custom logger object for the module
},
config: {
serverConfig: {
wellknown: 'https://openam-forgerock-sdks.forgeblocks.com/am/oauth2/realms/alpha/.well-known/openid-configuration',
},
},
});
Update the following properties with values that match your environment:
- wellknown
-
The OpenID Connect well-known endpoint for your server.
The Journey module derives the various endpoints and data it requires from the well-known endpoint, such as the server’s base URL, the realm being used, and authenticate and session endpoints.
- Advanced Identity Cloud example:
-
https://openam-forgerock-sdks.forgeblocks.com/am/oauth2/realms/alpha/.well-known/openid-configuration - PingAM example:
-
https://openam.example.com:8443/openam/oauth2/realms/root/.well-known/openid-configuration
- level
-
Specify what level of logging the Orchestration SDK should output.
Select one of the following:
-
none -
error -
warn -
info(the default) -
debugLearn more in Configuring JavaScript logging.
-
- custom
-
A custom logger object that the module will use to output messages.
Learn more in Customizing JavaScript logging.