diff --git a/obp-api/src/main/scala/code/snippet/UserInformation.scala b/obp-api/src/main/scala/code/snippet/UserInformation.scala index e8b58ad431..166f71145a 100644 --- a/obp-api/src/main/scala/code/snippet/UserInformation.scala +++ b/obp-api/src/main/scala/code/snippet/UserInformation.scala @@ -43,6 +43,7 @@ class UserInformation extends MdcLoggable { private object providerVar extends RequestVar("") private object devEmailVar extends RequestVar("") private object usernameVar extends RequestVar("") + private object userIdVar extends RequestVar("") def show: CssSel = { if(!AuthUser.loggedIn_?) { @@ -52,6 +53,7 @@ class UserInformation extends MdcLoggable { } else { val user: User = AuthUser.getCurrentUser.openOrThrowException(attemptedToOpenAnEmptyBox) usernameVar.set(user.name) + userIdVar.set(user.userId) devEmailVar.set(user.emailAddress) providerVar.set(user.provider) idTokenVar.set(AuthUser.getIDTokenOfCurrentUser) @@ -61,7 +63,8 @@ class UserInformation extends MdcLoggable { "#user-info-provider" #> SHtml.text(providerVar.is, providerVar(_)) & "#user-info-email" #> SHtml.text(devEmailVar, devEmailVar(_)) & "#user-info-id-token" #> SHtml.text(idTokenVar, idTokenVar(_)) & - "#user-info-access-token" #> SHtml.text(accessTokenVar, accessTokenVar(_)) + "#user-info-access-token" #> SHtml.text(accessTokenVar, accessTokenVar(_)) & + "#user-info-user-id" #> SHtml.text(userIdVar, accessTokenVar(_)) } & "#register-consumer-success" #> "" } } diff --git a/obp-api/src/main/webapp/user-information.html b/obp-api/src/main/webapp/user-information.html index 40a84c0863..122c9fd828 100644 --- a/obp-api/src/main/webapp/user-information.html +++ b/obp-api/src/main/webapp/user-information.html @@ -57,6 +57,10 @@

User Information

+
+ + +