---
title: Step 3. Configure connection properties
description: Prepare
component: sdks
version: latest
page_id: sdks:oidc:tutorials/javascript/pingam/03_configure_connection_properties
canonical_url: https://docs.pingidentity.com/sdks/latest/oidc/tutorials/javascript/pingam/03_configure_connection_properties.html
revdate: Thu, 24 Apr 2025 14:44:20 +0100
keywords: ["OAuth 2.0", "OpenID Connect", "Tutorial", "Source Code", "Integration", "SDK", "JavaScript"]
---

# Step 3. Configure connection properties

* [Prepare](00_before-you-begin.html)

* [Download](01_download-sample-repo.html)

* [Install](02_install-dependencies.html)

* **Configure**

* [Run](04_test_the_app.html)

***

In this step, you configure the sample app to connect to the OAuth 2.0 application you created in PingOne Advanced Identity Cloud.

1. In the IDE of your choice, open the `sdk-sample-apps` folder you cloned in the previous step.

2. Make a copy of the `/javascript/central-login-oidc/.env.example` file, and name it `.env`.

   The `.env` file provides the values used by the `Config.setAsync()` method in `javascript/central-login-oidc/src/main.js`.

3. Update the `.env` file with the details of your PingAM server.

   ```javascript
   SCOPE="$SCOPE"
   TIMEOUT=$TIMEOUT
   WEB_OAUTH_CLIENT="$WEB_OAUTH_CLIENT"
   WELL_KNOWN="$WELL_KNOWN"
   SERVER_TYPE="$SERVER_TYPE"
   ```

   Replace the following strings with the values you obtained when preparing your environment.

   * *$SCOPE*

     The scopes you added to your OAuth 2.0 application in PingOne Advanced Identity Cloud.

     For example, `address email openid phone profile`

   * *$TIMEOUT*

     How long to wait for OAuth 2.0 timeouts, in milliseconds.

     For example, `3000`

   * *$WEB\_OAUTH\_CLIENT*

     The client ID from your OAuth 2.0 application in PingAM.

     For example, `sdkPublicClient`

   * *$WELL\_KNOWN*

     The `.well-known` endpoint from your PingAM tenant.

     For example, `https://openam.example.com:8443/openam/oauth2/.well-known/openid-configuration`

   * *$SERVER\_TYPE*

     Ensures the sample app uses the correct behavior for the different servers it supports, for example what logout parameters to use.

     For PingOne Advanced Identity Cloud and PingAM servers, specify `AIC`.

   The result resembles the following:

   `.env`

   ```javascript
   SCOPE="address email openid phone profile"
   TIMEOUT=3000
   WEB_OAUTH_CLIENT="sdkPublicClient"
   WELL_KNOWN="https://openam.example.com:8443/openam/oauth2/.well-known/openid-configuration"
   SERVER_TYPE="AIC"
   ```
