From 4f9de8549744ea2d511d5a5db172c6171cda3b5f Mon Sep 17 00:00:00 2001 From: Leo Picado Date: Sat, 12 Jan 2019 17:55:18 -0600 Subject: [PATCH 1/2] Close body tag --- implicit_grant/public/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/implicit_grant/public/index.html b/implicit_grant/public/index.html index 7e3ab27e..7e4cfc4e 100644 --- a/implicit_grant/public/index.html +++ b/implicit_grant/public/index.html @@ -151,4 +151,5 @@

oAuth info

} })(); + From fd984a758d4b0395ec39021681076a33b6c40f9f Mon Sep 17 00:00:00 2001 From: Leo Picado Date: Sat, 12 Jan 2019 17:55:45 -0600 Subject: [PATCH 2/2] Render access token after login --- implicit_grant/public/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/implicit_grant/public/index.html b/implicit_grant/public/index.html index 7e4cfc4e..24b4df27 100644 --- a/implicit_grant/public/index.html +++ b/implicit_grant/public/index.html @@ -95,8 +95,7 @@

oAuth info

var userProfileSource = document.getElementById('user-profile-template').innerHTML, userProfileTemplate = Handlebars.compile(userProfileSource), - userProfilePlaceholder = document.getElementById('user-profile'); - + userProfilePlaceholder = document.getElementById('user-profile'), oauthSource = document.getElementById('oauth-template').innerHTML, oauthTemplate = Handlebars.compile(oauthSource), oauthPlaceholder = document.getElementById('oauth'); @@ -122,6 +121,10 @@

oAuth info

$('#login').hide(); $('#loggedin').show(); + + oauthPlaceholder.innerHTML = oauthTemplate({ + access_token: access_token + }); } }); } else {