Register an application in Asgardeo
2 min
First unless you already have done that, you need to create an organization in WSO2 Identity Server and register your application as a single page application.
-
Download and setup WSO2 Identity Server
-
Sign into WSO2 Identity Server console and navigate to Applications > New Application.
- Select Single Page Application.
Next, complete the wizard popup by providing a suitable name and an authorized redirect URL.
Example
name: wso2-javascript
Authorized redirect URL: http://localhost:5173
Info
The authorized redirect URL determines where WSO2 Identity Server should send users after they successfully log in. Typically, this will be the web address where your app is hosted. For this guide, we'll use http://localhost:5173, as the sample app will be accessible at this URL.
Note down the following values from the Protocol tab of the registered application. You will need them to configure Asgardeo JavaScript SDK.
client-id
from the Protocol tab.
In this step, we have registered our JavaScript app as an application in the WSO2 Identity Server console and generated the required metadata. Next, we will create a JavaScript app using Vite.