KEYCLOAK-1170 User details for customer-portal-js are all null
This commit is contained in:
parent
48c7bd1b5e
commit
bdbb1b891a
1 changed files with 5 additions and 5 deletions
|
@ -26,11 +26,11 @@ User <b id="subject"></b> made this request.
|
||||||
|
|
||||||
if (keycloak.idToken) {
|
if (keycloak.idToken) {
|
||||||
document.getElementById('profileType').innerHTML = 'IDToken';
|
document.getElementById('profileType').innerHTML = 'IDToken';
|
||||||
document.getElementById('username').innerHTML = keycloak.idToken.preferred_username;
|
document.getElementById('username').innerHTML = keycloak.idTokenParsed.preferred_username;
|
||||||
document.getElementById('email').innerHTML = keycloak.idToken.email;
|
document.getElementById('email').innerHTML = keycloak.idTokenParsed.email;
|
||||||
document.getElementById('name').innerHTML = keycloak.idToken.name;
|
document.getElementById('name').innerHTML = keycloak.idTokenParsed.name;
|
||||||
document.getElementById('givenName').innerHTML = keycloak.idToken.given_name;
|
document.getElementById('givenName').innerHTML = keycloak.idTokenParsed.given_name;
|
||||||
document.getElementById('familyName').innerHTML = keycloak.idToken.family_name;
|
document.getElementById('familyName').innerHTML = keycloak.idTokenParsed.family_name;
|
||||||
} else {
|
} else {
|
||||||
keycloak.loadUserProfile(function() {
|
keycloak.loadUserProfile(function() {
|
||||||
document.getElementById('profileType').innerHTML = 'Account Service';
|
document.getElementById('profileType').innerHTML = 'Account Service';
|
||||||
|
|
Loading…
Reference in a new issue