Update nodejs-adapter.adoc
example of response_mode 'permissions' uses token as value
This commit is contained in:
parent
5ba4113091
commit
00273fb95d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue