*******************************************************************
* Implicit Flow Sample
*
*******************************************************************

This sample demonstrates the steps involved in obtaining the Access token using the Implicit flow. 


Steps to run this application
===================================================================
1. Ensure that Access Manager is configured for Implicit flow by executing the Try Now bundle.
   - Get the Identity server host and IP
   - Get the client ID for the 'OauthDemoClient' autoconfigured by Try Now
2. Edit the index.html
   ...
   <oauth
		  site="https://sb-test147.labs.blr.novell.com/nidp/oauth/nam"
		  client-id="643085f5-8c29-458e-9e25-36149a15ef2e"
		  ...
		
	site      : Change this to your Identity server's host and port
	client-id : Change this to your Oauth client's registered ID

3. Run the application with the command: gradle bootrun
4. Access using http://localhost:8080/


Inner Workings of this application 
===================================================================
* Login 
* Provide the consent (asked just once when the user logs in for the first time)
* Access Manager redirects back to this application with the Access Token
* Parse to get the access token
* Use the access token to invoke the Token Info endpoint
* Parse the response and obtain the user_id
* Display a welcome message with that username.

