Register an application in WSO2 Identity Platform
2 min

First unless you already have done that, you need to create an organization in WSO2 Identity Platform and register your application as a Next Application.

Select Traditional Page Application

Next, complete the wizard popup by providing a suitable name and an authorized redirect URL.

Example

name: asgardeo-nextjs

Authorized redirect URL: http://localhost:3000

Register a new application

Info

The authorized redirect URL determines where WSO2 Identity Platform should send users after they successfully log in. Typically, this will be the web address where your application is hosted. For this guide, we'll use http://localhost:3000, as the sample application will be accessible at this URL

Make a note of the following values from the Guide tab of the registered application. You will need them to configure the WSO2 Identity Platform provider.

NEXT_PUBLIC_ASGARDEO_BASE_URL="https://api.asgardeo.io/t/<your-org-name>"
NEXT_PUBLIC_ASGARDEO_CLIENT_ID="<your-app-client-id>"
ASGARDEO_CLIENT_SECRET="<your-app-client-secret>"

In this step, we have registered our Next.js app as an application in the WSO2 Identity Platform console and generated the required metadata. Next, we will create a Next.js app.