You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,24 +108,32 @@ server.route([
108
108
## API
109
109
#### Plugin Options
110
110
111
-
-`client {Object}`: The configuration of [`keycloak-auth-utils`][keycloak-auth-utils] its [`GrantManager`][keycloak-auth-utils-gm]. The configuration requires at least `realmUrl`, `clientId` and `secret` – it may be necessary to reduce `minTimeBetweenJwksRequests`.<br/>
112
-
Required.
113
-
114
-
-`cache {Object|false}`: The configuration of the [hapi.js cache](https://hapijs.com/api#servercacheoptions) powered by [catbox][catbox].<br/>
115
-
If `false` the cache is disabled. Use an empty object to use the built-in default cache.<br/>
111
+
-`client {Object}` — The configuration of [`keycloak-auth-utils`][keycloak-auth-utils] its [`GrantManager`][keycloak-auth-utils-gm]. The configuration requires at least:
112
+
-`realmUrl {string}`: The absolute uri of the Keycloak realm<br/>
-`field {string}`: The `Bearer` field, including the scheme (`bearer`) itself.<br/>
132
+
-`field {string}` — The `Bearer` field, including the scheme (`bearer`) itself.<br/>
125
133
Example: `bearer 12345.abcde.67890`.<br/>
126
134
Required.
127
135
128
-
-`done {Function}`: The callback handler is passed `err {Error}, result {Object|false}` (error-first approach).<br/>If an error occurs, `err` is not `null`. If the token is invalid, the `result` is `false`. Otherwise it is an object containing all relevant credentials.<br/>
136
+
-`done {Function}` — The callback handler is passed `err {Error}, result {Object|false}` (error-first approach).<br/>If an error occurs, `err` is not `null`. If the token is invalid, the `result` is `false`. Otherwise it is an object containing all relevant credentials.<br/>
0 commit comments