Step 1. Download the samples
To start this tutorial, you need to download the SDK sample apps repo, which contains the projects you will use.
Within the repo are two branches related to this tutorial:
build-protected-app/start
-
Contains all the source files you need to follow this tutorial, but without the actual implementation of the Ping SDK functionality.
Use this branch if you want to complete the tutorial step-by-step, adding the code the tutorial provides.
build-protected-app/complete
-
The same source files but with the Ping SDK code already implemented.
Use this branch if you want to skip ahead of the tutorial, or if you want to compare your work with the completed version for troubleshooting.
To get a copy of the tutorial source code:
-
In a web browser, navigate to the SDK Sample Apps repository.
-
Download the source code using one of the following methods:
- Download a ZIP file
-
-
Select which branch to download:
-
Click Code, and then click Download ZIP.
-
Extract the contents of the downloaded ZIP file to a suitable location.
-
- Use a Git-compatible tool to clone the repo locally
-
-
Click Code, and then copy the HTTPS URL.
-
Use the URL to clone the repository to a suitable location.
For example, from the command-line you could run:
git clone https://github.com/ForgeRock/sdk-sample-apps.git
-
Checkout which branch you want to work on.
For example, from the command-line you could run:
git checkout build-protected-app/start
-
The result of these steps is a local folder named sdk-sample-apps
.