---
title: "Task 1: Configure Your Environment"
description: The environment configuration endpoints perform the following actions:
component: pingone-api
page_id: pingone-api:workflow-library:platform-sso-and-authorization/openid-connect-oidc/refresh-token-exchange-flow/environment-configuration
canonical_url: https://developer.pingidentity.com/pingone-api/workflow-library/platform-sso-and-authorization/openid-connect-oidc/refresh-token-exchange-flow/environment-configuration.html
section_ids:
  what-youll-do: What you'll do
---

# Task 1: Configure Your Environment

The environment configuration endpoints perform the following actions:

* Update (or create) an application.

* Specify the application's resource grant.

* Specify a sign-on policy and define its actions.

* Define external identity providers.

This workflow uses an OIDC Web application with the application's `type` property set to `WEB_APP`. The Postman collection for this flow references the Web application that you created in *Getting Started*, Task 3.

## What you'll do

The application configuration in the Postman collections is a PUT call to modify the `grantTypes` property. Run the PUT call to add the `REFRESH_TOKEN` grant type to the application configuration.

|   |                                                                                                                                 |
| - | ------------------------------------------------------------------------------------------------------------------------------- |
|   | If you haven't completed [Task 3: Create an SSO workflow](../../../../getting-started/simple-sso-workflow.html), do that first. |

|   |                                                                                                                                                                                                                                                                                                       |
| - | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | If you choose to use an alternate application, be aware that the variables in the Postman collections point to the Task 3 application's ID. You must change references to the application ID manually either in your Postman environment or in the endpoint's URL or request body to run the request. |

[Run in Postman](https://god.gw.postman.com/run-collection/3468883-101c1121-30ec-4505-955b-59dceb4dcca1?action=collection%2Ffork\&source=rip_markdown\&collection-url=entityId%3D3468883-101c1121-30ec-4505-955b-59dceb4dcca1%26entityType%3Dcollection%26workspaceId%3D3550b170-7818-4801-b1eb-dcb7b3f64263#?env%5BPingOne%20Workflow%20Library%20Template%20%28release%3A%202025-04-17%29%5D=W3sia2V5IjoidGxkIiwidmFsdWUiOiJjb20iLCJlbmFibGVkIjp0cnVlLCJ0eXBlIjoiZGVmYXVsdCJ9LHsia2V5IjoiYXV0aFBhdGgiLCJ2YWx1ZSI6Imh0dHBzOi8vYXV0aC5waW5nb25lLnt7dGxkfX0iLCJlbmFibGVkIjp0cnVlLCJ0eXBlIjoiZGVmYXVsdCJ9LHsia2V5IjoiYXBpUGF0aCIsInZhbHVlIjoiaHR0cHM6Ly9hcGkucGluZ29uZS57e3RsZH19L3YxIiwiZW5hYmxlZCI6dHJ1ZSwidHlwZSI6ImRlZmF1bHQifSx7ImtleSI6ImFkbWluRW52SUQiLCJ2YWx1ZSI6IiIsImVuYWJsZWQiOnRydWUsInR5cGUiOiJkZWZhdWx0In0seyJrZXkiOiJhZG1pbkFwcElEIiwidmFsdWUiOiIiLCJlbmFibGVkIjp0cnVlLCJ0eXBlIjoiZGVmYXVsdCJ9LHsia2V5IjoiYWRtaW5BcHBTZWNyZXQiLCJ2YWx1ZSI6IiIsImVuYWJsZWQiOnRydWUsInR5cGUiOiJkZWZhdWx0In0seyJrZXkiOiJlbnZJRCIsInZhbHVlIjoiIiwiZW5hYmxlZCI6dHJ1ZSwidHlwZSI6ImRlZmF1bHQifV0=)
