Update nodejs-adapter.adoc

example of response_mode 'permissions' uses token as value
This commit is contained in:
Nurbek 2020-11-19 13:49:30 +06:00 committed by Stian Thorgersen
parent 5ba4113091
commit 00273fb95d

View file

@ -209,7 +209,7 @@ If `response_mode` is set to `permissions` (default mode), the server only retur
[source,javascript]
----
app.get('/apis/me', keycloak.enforcer('user:profile', {response_mode: 'token'}), function (req, res) {
app.get('/apis/me', keycloak.enforcer('user:profile', {response_mode: 'permissions'}), function (req, res) {
var permissions = req.permissions;
// show user profile