From 0752877b900fe0bfb7dfab06143ccf9c9d687083 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 26 Apr 2017 08:21:03 +0200 Subject: [PATCH] Fix keycloak.username to keycloak.subject in JS example --- securing_apps/topics/oidc/javascript-adapter.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/securing_apps/topics/oidc/javascript-adapter.adoc b/securing_apps/topics/oidc/javascript-adapter.adoc index 24c1e1ec9c..9b8d3e9c9c 100644 --- a/securing_apps/topics/oidc/javascript-adapter.adoc +++ b/securing_apps/topics/oidc/javascript-adapter.adoc @@ -73,7 +73,7 @@ After the user is authenticated the application can make requests to RESTful ser [source,javascript] ---- var loadData = function () { - document.getElementById('username').innerText = keycloak.username; + document.getElementById('username').innerText = keycloak.subject; var url = 'http://localhost:8080/restful-service';