Ping SDKs

Authentication journey tutorial for a React Native app

This tutorial covers the basics of running a protected mobile app with React Native.

Ping Identity does not provide a React Native version of the Ping SDK. Instead we present this example of "bridge code" for connecting the Ping SDK for Android and iOS to the React Native layer.

This guide covers how to implement the following application features using the Ping SDKs:

  1. Authentication through a simple journey/tree.

  2. Requesting OAuth/OIDC tokens.

  3. Requesting user information.

  4. Logging a user out.

react native todos screen
Figure 1. The to-do sample app

Before you begin

Before you begin this tutorial ensure you have set up your PingOne Advanced Identity Cloud tenant or PingAM server with the required configuration.

For example, you will need to configure an OAuth 2.0 client application, as well as an authentication journey for the app to navigate.

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.

Step 2. Configure the projects

In this step you install the dependencies the projects require.

Step 3. Configure connection properties

In this step, you configure the samples to connect to the authentication tree/journey and OAuth 2.0 client you created when setting up your server configuration.

Step 4. Build and run the apps

Build and run the apps, and try out the API backend by creating and editing todo items.