<!doctype html><!--
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
~ and other contributors as indicated by the @author tags.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
--><htmllang="en"><head><metacharset="utf-8"><title>Google Authentication Example</title><scriptsrc="js/lib/angular/angular.js"></script><scriptsrc="js/lib/angular/angular-resource.js"></script><scriptsrc="js/lib/angular/angular-route.js"></script><scriptsrc="js/lib/angular/ui-bootstrap-tpls-0.4.0.js"></script><scriptsrc="/auth/js/keycloak.js"></script><scriptsrc="js/app.js"type="text/javascript"></script></head><bodydata-ng-controller="GlobalCtrl"><divid="content-area"class="col-md-9"role="main"><divid="content"><h2>Hello, {{identity.name}} [<ahref=""ng-click="logout()">Sign Out</a>]</h2><div><p><b>This is your Keycloak Profile</b>:</p><p><ul><li><b>Id</b>: {{identity.sub}}</li><li><b>Username</b>: {{identity.preferred_username}}</li><li><b>Email</b>: {{identity.email}}</li><li><b>Full Name</b>: {{identity.name}}</li></ul></p></div><div><p><buttontype="submit"data-ng-click="loadSocialProfile()">Load your social profile</button></p><divdata-ng-show="socialProfile"><p><b>This is your Google Profile</b>:</p><p><ul><li><b>Id</b>: {{socialProfile.id}}</li><li><b>First Name</b>: {{socialProfile.name['givenName']}}</li><li><b>Last Name</b>: {{socialProfile.name['familyName']}}</li><li><b>Gender</b>: {{socialProfile.gender}}</li><li><b>Profile Link</b>: <ahref="{{socialProfile.url}}">{{socialProfile.url}}</a></li></ul></p></div></div></div></div></body></html>