---
title: Step 2. Preparing the authorization server
description: "Configure PingOne Advanced Identity Cloud or PingAM for Rich Authorization Requests (RAR): enable RAR in the OAuth2 provider, create a Remote Consent Agent, and configure OAuth 2.0 clients."
component: orchsdks
page_id: orchsdks:oidc:use-cases/rar/02-setup-server
canonical_url: https://developer.pingidentity.com/orchsdks/oidc/use-cases/rar/02-setup-server.html
llms_txt: https://developer.pingidentity.com/orchsdks/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: Tue, 4 Nov 2026 00:00:00 +0000
keywords: ["OAuth 2.0", "OpenID Connect", "Rich Authorization Requests", "RAR", "RFC 9396", "Remote Consent Service", "RCS", "SDK"]
section_ids:
  prerequisites: Prerequisites
  task_1_enabling_rar_in_the_oauth2_provider_service: Task 1. Enabling RAR in the OAuth2 provider service
  task-2-creating-the-remote-consent-agent: Task 2. Creating the Remote Consent Agent
  task_3_configuring_an_oauth_2_0_client_for_authentication: Task 3. Configuring an OAuth 2.0 client for authentication
  task_4_configuring_an_oauth_2_0_client_for_rar: Task 4. Configuring an OAuth 2.0 client for RAR
  next_steps: Next steps
---

# Step 2. Preparing the authorization server

[icon: circle-check, set=far]PingOne Advanced Identity Cloud [icon: circle-check, set=far]PingAM

This page prepares PingOne Advanced Identity Cloud or PingAM to accept `authorization_details` requests and route them through the Remote Consent Service (RCS) you hosted in [Step 1. Hosting a Remote Consent Service](01-setup-rcs.html), and registers the OAuth 2.0 clients that the sample app uses.

## Prerequisites

You need the following to prepare the authorization server for RAR and complete the tasks on this page:

* 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 tenant admin console, open the tenant menu, and go to Tenant Settings > Details. The version appears under Identity Cloud Version.

* The RCS demo app from [Step 1. Hosting a Remote Consent Service](01-setup-rcs.html) is running and reachable by using your local IP address.

## Task 1. Enabling RAR in the OAuth2 provider service

By default, the **OAuth2 Provider** service silently ignores the `authorization_details` request parameter.

Complete the following steps to enable Remote Consent and RAR processing:

1. If you are using PingOne Advanced Identity Cloud, in the administration console, select **Native Consoles** > **Access Management**.

2. In the Access Management admin console, select your realm, click Services, and then click OAuth2 Provider.

3. On the **Advanced** tab, enable Rich Authorization Requests with Remote Consent Service.

4. Click **Save Changes**.

   |   |                                                                                                     |
   | - | --------------------------------------------------------------------------------------------------- |
   |   | You must click **Save Changes** before switching to another tab, otherwise the changes will be lost |

5. On the **Consent** tab, enable Enable Remote Consent.

   |   |                                                                                                                                                                                     |
   | - | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | If the **Consent** tab is not visible, click the down arrow, and select it from the drop-down menu:![Viewing hidden tabs in the console.](../../../_images/oauth2provider-tabs.png) |

6. Save your changes.

## Task 2. Creating the Remote Consent Agent

A Remote Consent Agent tells the authorization server where your RCS is and how to trust its responses.

Complete the following steps to create an agent for the sample RCS:

1. If you are using PingOne Advanced Identity Cloud, in the administration console, select **Native Consoles** > **Access Management**.

2. In the Access Management admin console, select the realm you are using.

3. Go to Applications > OAuth 2.0 > Remote Consent.

4. Click [icon: plus, set=fa]Add Remote Consent Agent.

5. In **Agent ID**, enter `myCustomRCS`, and then click Create.

6. Configure the agent with these values, replacing `<your-local-ip>` with the local IP address of the machine running the sample RCS:

   | Properties                            | Value                                                                                                                                                                            | Why                                                                                                                                                                                                                                                                                                                           |
   | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | **Redirect URL**                      | `https://<your-local-ip>:8081/consent`                                                                                                                                           | The authorization server redirects the browser here with the consent request JWT.&#xA;&#xA;The local IP address can change if your machine obtains its address with DHCP.&#xA;&#xA;If a RAR flow suddenly fails to reach the sample RCS, confirm the address is still correct, and update the agent values if it has changed. |
   | **Enable consent request Encryption** | **Disabled**                                                                                                                                                                     | The sample RCS parses signed three-part JWTs.Encrypted five-part JWEs fail with an "Unexpected number of Base64URL parts, must be three" error.                                                                                                                                                                               |
   | **Public key selector**               | `JWKs`                                                                                                                                                                           | The sample RCS runs on a local machine, which the authorization server's cloud services cannot reach to fetch keys from a URI.Providing the keys directly means the authorization server does not need to contact the sample RCS to verify consent response signatures.                                                       |
   | **Json Web Key**                      | The JWK set output by the sample RCS when it starts.For example:```json
   {"keys":[{"kty":"RSA","n":"...","e":"AQAB","kid":"rcs-demo-signing-key","alg":"RS256","use":"sig"}]}
   ``` | The sample RCS signs consent responses with RS256, and the authorization server verifies the signatures against these keys.Copy the complete value from the sample RCS console output, from the opening brace to the closing brace.                                                                                           |

7. Save your changes.

   |   |                                                                                                                                                                                                 |
   | - | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | Wait 30 to 60 seconds after making RCS agent changes before starting a RAR flow.The server caches agent attributes, and a flow started immediately after saving can fail with the stale values. |

## Task 3. Configuring an OAuth 2.0 client for authentication

The sample apps perform a standard login that does not use `authorization_details`, and they authenticate as a separate client for it.

This is because consent handling is a per-client setting: the RAR client must have implied consent disabled, but the standard login should complete without stopping at a consent prompt.

Register the standard client as a public OAuth 2.0 client as follows:

* PingOne Advanced Identity Cloud

* PingAM

Public clients do not use a client secret to obtain tokens because they are unable to keep them hidden. The Orchestration SDKs commonly use this type of client to obtain tokens, as they cannot guarantee safekeeping of the client credentials in a browser or on a mobile device.

To register a *public* OAuth 2.0 client application for use with the SDKs in PingOne Advanced Identity Cloud, follow these steps:

1. Log in to your PingOne Advanced Identity Cloud tenant.

2. In the left panel, click Applications.

3. Click [icon: plus, set=fa]Custom Application.

4. Select OIDC - OpenId Connect as the sign-in method, and then click Next.

5. Select Native / SPA as the application type, and then click Next.

6. In Name, enter a name for the application, such as `Public SDK Client`.

7. In Owners, select a user that is responsible for maintaining the application, and then click Next.

   |   |                                                                                    |
   | - | ---------------------------------------------------------------------------------- |
   |   | When trying out the SDKs, you could select the `demo` user you created previously. |

8. In Client ID, enter `sdkPublicClient`

9. Select **Configure for SDK Sample Apps**.

10. Click Create Application.

    PingOne Advanced Identity Cloud creates the application and displays the details screen.

11. On the Sign On tab:

    1. In Sign-In URLs, ensure the following values appear, or add them if they don't:

       `com.example.demo://oauth2redirect`

       |   |                                                             |
       | - | ----------------------------------------------------------- |
       |   | Also add any other domains where you host SDK applications. |

    2. In Grant Types, ensure the following values appear:

       `Authorization Code`

       `Refresh Token`

    3. In Scopes, ensure the following values appear:

       `openid profile email address`

12. Click Show advanced settings, and on the Authentication tab, confirm the following properties:

    1. In Token Endpoint Authentication Method, select `none`.

    2. In Client Type, select `Public`.

    3. Enable the Implied Consent property.

13. Click Save.

The application is now configured to accept client connections from and issue OAuth 2.0 tokens to the example applications and tutorials covered by this documentation.

Public clients do not use a client secret to obtain tokens because they are unable to keep them hidden. The Orchestration SDKs commonly use this type of client to obtain tokens, as they cannot guarantee safekeeping of the client credentials in a browser or on a mobile device.

To register a *public* OAuth 2.0 client application for use with the SDKs in AM, follow these steps:

1. Log in to the PingAM admin UI as an administrator.

2. Navigate to [icon: list-alt, set=fa]Applications > OAuth 2.0 > Clients, and then click [icon: plus, set=fa]Add Client.

3. In Client ID, enter `sdkPublicClient`.

4. Leave Client secret empty.

5. In Redirection URIs, enter the following values:

   `com.example.demo://oauth2redirect`

   |   |                                                                        |
   | - | ---------------------------------------------------------------------- |
   |   | Also add any other domains where you will be hosting SDK applications. |

6. In Scopes, enter the following values:

   `openid profile email address`

7. Click Create.

   PingAM creates the new OAuth 2.0 client, and displays the properties for further configuration.

8. On the Core tab:

   1. In Client type, select `Public`.

   2. Disable Allow wildcard ports in redirect URIs.

   3. Click Save Changes.

9. On the Advanced tab:

   1. In Grant Types, enter the following values:

      ```none
      Authorization Code
      Refresh Token
      ```

   2. In Token Endpoint Authentication Method, select `None`.

   3. Enable the Implied consent property.

10. Click Save Changes.

## Task 4. Configuring an OAuth 2.0 client for RAR

Configure an OAuth 2.0 client on the server that the sample apps use for the RAR flow.

It should be a public client with the authorization code grant, permitted to request your authorization detail types, and routed through the RCS:

1. If you are using PingOne Advanced Identity Cloud, in the administration console, select **Native Consoles** > **Access Management**.

2. In the Access Management admin console, navigate to Applications > OAuth 2.0 > Clients, and then click [icon: plus, set=fa]Add Client.

3. In **Client ID**, enter `rarClient`.

4. In **Redirection URIs**, enter the redirect URI the sample apps use:

   `com.example.demo://oauth2redirect`

5. Click **Create**.

   The console creates the new OAuth 2.0 client, and displays the properties for further configuration.

6. On the **Core** tab:

   1. In **Client type**, select `Public`.

   2. In **Scope(s)**, add the same scopes you gave the standard client in Task 3:

      `openid profile email address`

      The token response includes an ID token when the `openid` scope is granted.

   3. In **Authorization Detail Type(s)**, enter the types your app requests:

      `payment_initiation`

      `account_information`

      |   |                                                                                                                                                                                                                                              |
      | - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
      |   | Requesting an unlisted typeIf the app requests a type that is not in the client's Authorization Detail Type(s) list, the authorization request fails with `invalid_authorization_details` and an error description naming the rejected type. |

   4. Click **Save Changes**.

      |   |                                                                                                                    |
      | - | ------------------------------------------------------------------------------------------------------------------ |
      |   | You must click **Save Changes** before changing tabs, otherwise the page discards any changes you made on the tab. |

7. On the **Advanced** tab:

   1. In **Grant Types**, ensure `Authorization Code` is listed.

   2. In **Token Endpoint Authentication Method**, select `none`.

   3. Disable **Implied Consent**.

      |   |                                                                                                                                                                                          |
      | - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
      |   | Implied consent and `authorization_details` are incompatible.A client with implied consent enabled that receives an `authorization_details` request always fails with `invalid_request`. |

   4. Click **Save Changes**.

8. On the **OAuth2 Provider Overrides** tab:

   1. Set **Enable OAuth2 Provider Overrides** to **Enabled**.

   2. Set **Enable Remote Consent** to **Enabled**.

   3. In **Remote Consent Service ID**, select the agent you created in [Task 2. Creating the Remote Consent Agent](#task-2-creating-the-remote-consent-agent).

      For example, `myCustomRCS`.

   4. Click **Save Changes**.

## Next steps

With the server configured, and the sample RCS app running, you can now build and run a RAR flow from a sample app.

Choose the platform to run below:

[icon: android, set=fab, size=3x]

#### [Android](android/try-it-out.html)

Run a complete RAR payment transaction in the Android sample app.

[icon: apple, set=fab, size=3x]

#### [iOS](ios/try-it-out.html)

Run a complete RAR payment transaction in the iOS sample app.

[icon: js, set=fab, size=3x]

#### [JavaScript](javascript/try-it-out.html)

Run a complete RAR payment transaction in the JavaScript sample app.
