# Introduction

This contains sample app for browser client. This sample app will explain how to integrate WSO2-IAM with OpenID connect for authentication and authorization of your client apps' users. This example sample app demonstrate basic HTML and Javascript approach. Besides, same approach can be used to integrate on other Javaascript frameworks (React, Angular, etc.).

# Usage

For detailed setup and execution guide refer the confluence documentation. The approach is metntioned in step by step and all the concepts are explained in there.

	1. For basic HTML SPA sample app:
		a. Clone this repo by `git clone git@github.com:wso2/samples-is.git`
		b. Change configs in <clone location>/samples-is/oidc-client-app-samples/browser-client-app-sample/SPA_HTML_app/js/app.js
		c. Deploy SPA_HTML_app folder from this repo's <clone location>/samples-is/oidc-client-app-samples/browser-client-app-sample/SPA_HTML_app/ to tomcat and run
		d. Visit the SPA app on browser.

	2. For React SPA sample app:
		a. Clone this repo by `git clone git@github.com:wso2/samples-is.git`
		b. Change configs in <clone location>/samples-is/oidc-client-app-samples/browser-client-app-sample/SPA_React_app/app/Base.js
		c. Run SPA_React_app by 'npm start' from the SPA_React_app folder
		d. Visit the SPA app on browser.


