Orchestration SDKs

Trying out RAR

PingOne Advanced Identity Cloud PingAM Android iOS JavaScript

This walkthrough takes you through a complete Rich Authorization Requests (RAR) payment transaction: a user requests a specific payment in a sample app, approves the exact payment details on a consent page, and the app receives the granted details back in its tokens.

Prerequisites

To complete this tutorial, you require the following:

  • Either of the following servers:

    • PingAM

    • PingOne Advanced Identity Cloud version 23604.0 or later.

      To check your PingOne Advanced Identity Cloud version, sign in to the admin console, open the tenant menu, and go to Tenant Settings > Details. The version appears under Identity Cloud Version.

  • An environment to host the demonstration RCS:

    • Node.js 18 or later

On PingOne Advanced Identity Cloud and PingAM, the consent page that shows the user the payment details is a Remote Consent Service (RCS): a small web application that you host.

The authorization server sends it the requested authorization_details in a signed JWT, the RCS renders those details for the user, and it returns a signed JWT with the user’s decision.

In this step you’ll run a demonstration RCS and expose it over HTTPS, so you can try the complete flow without building your own consent UI.

Step 2. Prepare the authorization server

With the RCS running, your authorization server needs to know about it.

You’ll enable RAR processing on the OAuth2 provider, create a Remote Consent Agent pointing at your RCS, and configure an OAuth 2.0 client with the authorization detail types it may request.

The steps are the same on PingOne Advanced Identity Cloud and PingAM; only the console paths differ.

Step 3. Run a RAR flow

The sample apps request authorization for a specific payment, send you to the RCS consent page to approve it, and display the granted details from the token response.

Select your platform for steps on running the apps: