<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Micro Focus OAuth Sample</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular-resource.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular-route.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ngStorage/0.3.9/ngStorage.min.js"></script>

<script th:src="@{/js/oauth-ng.js}"></script>
<script th:src="@{/js/mainCtlr.js}"></script>
</head>
<body ng-app="myApp" ng-controller="mainCtrl">
	<div>
		<!-- Header -->
		<nav class="navbar navbar-default">
		  <div class="container-fluid">
		    <div class="navbar-header">
		      <a class="navbar-brand" href="/">Implicit Flow Sample</a>
		    </div>
		  </div>
		</nav>
		
		<!-- Message to be displayed when Access token is retrieved. -->
		<div class="container">
	    	<span class="col-sm-12">
				<h3 ng-if="username">Welcome, {{username}}!</h3>
			 </span>
		</div>
		
		<!-- Angular code that does the heavy lifting of requesting and parsing the tokens -->
		<oauth
		  site="https://sles12-acidp.labs.blr.novell.com:8443/nidp/oauth/nam"
		  client-id="6a66fad5-654f-4f73-86f9-393474655e75"
		  redirect-uri="http://localhost:8080"
		  scope="profile"
		  template="oauthTemp">
		</oauth> 
	</div>
</body>
</html>