JavaScript tutorials
Prerequisites
Before starting the tutorials, complete these prerequisite tasks.
Install Node and NPM
The SDK requires a minimum Node.js version of 18
, and is tested on versions 18
and 20
. To get a supported version of Node.js, refer to the Node.js download page.
You will also need npm
to build the code and run the samples.
Tutorial steps
There are three tutorials available for JavaScript, depending on your server environment:
Advanced Identity Cloud/PingAM
Configure the embedded login sample JavaScript app to connect to your Advanced Identity Cloud instance or PingAM server.
Then, navigate through a simple authentication journey, and obtain OAuth 2.0 tokens for the user.
PingOne
Configure the OIDC-based centralized login sample JavaScript app to redirect users to PingOne for authentication.
Then, redirect back to your client application so that it can get OAuth 2.0 tokens and user info for the user.
PingFederate
Configure the OIDC-based centralized login sample JavaScript app to redirect users to PingFederate for authentication.
Then, redirect back to your client application so that it can get OAuth 2.0 tokens and user info for the user.