File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ server.register({
65
65
clientId: ' foobar' ,
66
66
secret: ' 1234-bar-4321-foo'
67
67
},
68
- cache: {}
68
+ cache: {},
69
+ userInfo: [' name' , ' email' ]
69
70
}
70
71
}, function (err ) {
71
72
if (err) {
@@ -112,7 +113,10 @@ Required.
112
113
113
114
- ` cache {Object|false} ` : The configuration of the [ hapi.js cache] ( https://hapijs.com/api#servercacheoptions ) powered by [ catbox] [ catbox ] .<br />
114
115
If ` false ` the cache is disabled. Use an empty object to use the built-in default cache.<br />
115
- Optional. Default: ` false ` .<br />
116
+ Optional. Default: ` false ` .
117
+
118
+ - ` userInfo {Array.<?string>} ` : List of properties which should be included in the ` request.auth.credentials ` object besides ` scope ` and ` sub ` .<br />
119
+ Optional. Default: ` [] ` .<br />
116
120
117
121
#### ` server.kjwt.validate(field {string}, done {Function}) `
118
122
Uses internally [ ` GrantManager.prototype.validateAccessToken() ` ] [ keycloak-auth-utils-gm-validate ] .
@@ -166,7 +170,8 @@ server.register({
166
170
clientId: ' foobar' ,
167
171
secret: ' 1234-bar-4321-foo'
168
172
},
169
- cache: {}
173
+ cache: {},
174
+ userInfo: [' name' , ' email' ]
170
175
}
171
176
}).then (() => {
172
177
server .auth .strategy (' keycloak-jwt' , ' keycloak-jwt' );
You can’t perform that action at this time.
0 commit comments