ForgeRock Developer Experience

Step 3. Configure the embedded login sample app

In this step, you configure the sample app to connect to the authentication tree/journey you created when setting up your server configuration.

Copy the .env.example file in the sdk-sample-apps/embedded-login folder and save it with the name .env within this same directory.

Add your relevant values to this new file as it will provide all the important configuration settings to your applications.

Here’s an example; your values may vary:

AM_URL=https://openam-forgerock-sdks.forgeblocks.com/am
REALM_PATH=alpha
SCOPE=openid
TIMEOUT=5000
TREE=sdkUsernamePasswordJourney
WEB_OAUTH_CLIENT=sdkPublicClient

Here are descriptions for some of the values:

TREE

The simple login journey or tree you created earlier, for example sdkUsernamePasswordJourney.

REALM_PATH

The realm of your ForgeRock server.

Usually, root for AM and alpha or beta for Identity Cloud.

Copyright © 2010-2024 ForgeRock, all rights reserved.