This repository documents my successful completion of a 2-point project, submitted as part of my application for the WSO2 Customer Success Internship.
- Applicant: Sasanka Hemakumara
- Date: November 1, 2025
- Task: Use a WSO2 product in a real-world project or solution.
The goal of this project was to deploy a local instance of the WSO2 Identity Server (v7.2.0) and integrate it with the official Asgardeo JavaScript SPA sample application.
This demonstrates a real-world use case of WSO2 IS providing OpenID Connect (OIDC) authentication for a modern, single-page web application.
- WSO2 Identity Server (v7.2.0)
- Asgardeo HTML/JS SPA Sample Project
- Node.js (for running the
npmcommands) http-server(to serve the sample application)
- Server Setup: Downloaded and successfully ran the WSO2 Identity Server (
wso2is-7.2.0) locally. - Application Registration: Created a new "Single-Page Application" in the WSO2 Console.
- Configuration:
- Configured the "Authorized redirect URL" in the WSO2 Console to
https://localhost:3000. - Copied the generated Client ID.
- Edited the sample app's
index.htmlfile to include this Client ID and thebaseUrl(https://localhost:9443).
- Configured the "Authorized redirect URL" in the WSO2 Console to
- App Deployment: Started the JavaScript SPA on
https://localhost:3000using thenpx http-server -p 3000 -S -a localhostcommand. - Authentication: Successfully tested the complete authentication flow.
The sample application is running successfully on https://localhost:3000, displaying the "Login" button.
Clicking "Login" correctly redirects to the WSO2 Identity Server's login page, which is running on https://localhost:9443.

After entering the correct admin/admin credentials, the server authenticates the user and redirects back to the application. The app now displays the "Authentication Response" and the user's details, confirming a successful integration.
