|
101 | 101 | |-------------------------------------------------------------------------- |
102 | 102 | | |
103 | 103 | | When using navigation, redirects to these url on success: |
104 | | - | - login: after a successfull login. |
105 | | - | - register: after a successfull Webauthn key creation. |
| 104 | + | - login: after a successful login. |
| 105 | + | - register: after a successful Webauthn key creation. |
106 | 106 | | |
107 | 107 | | Redirects are not used in case of application/json requests. |
108 | 108 | | |
|
264 | 264 | | See https://www.w3.org/TR/webauthn/#enum-userVerificationRequirement |
265 | 265 | | |
266 | 266 | | Supported: "required", "preferred", "discouraged". |
| 267 | + | Forced to "required" when userless is true. |
267 | 268 | | |
268 | 269 | */ |
269 | 270 |
|
270 | 271 | 'user_verification' => 'preferred', |
271 | 272 |
|
272 | 273 | /* |
273 | 274 | |-------------------------------------------------------------------------- |
274 | | - | Userless (One touch, Typeless) login |
| 275 | + | The resident key |
275 | 276 | |-------------------------------------------------------------------------- |
276 | 277 | | |
277 | | - | By default, users must input their email to receive a list of credentials |
278 | | - | ID to use for authentication, but they can also login without specifying |
279 | | - | one if the device can remember them, allowing for true one-touch login. |
| 278 | + | When userless is set to 'preferred' or 'required', the resident key will be |
| 279 | + | forced to be 'required' automatically. |
280 | 280 | | |
281 | 281 | | See https://www.w3.org/TR/webauthn/#enum-residentKeyRequirement |
282 | 282 | | |
283 | 283 | | Supported: "null", "required", "preferred", "discouraged". |
| 284 | + | Forced to "required" when userless is true. |
| 285 | + | |
| 286 | + */ |
| 287 | + |
| 288 | + 'resident_key' => 'preferred', |
| 289 | + |
| 290 | + /* |
| 291 | + |-------------------------------------------------------------------------- |
| 292 | + | Userless (One touch, Typeless) login |
| 293 | + |-------------------------------------------------------------------------- |
| 294 | + | |
| 295 | + | This activates userless login, also known as one-touch login or typeless |
| 296 | + | login for devices when they're being registered. |
284 | 297 | | |
285 | 298 | */ |
286 | 299 |
|
287 | | - 'userless' => null, |
| 300 | + 'userless' => (bool) env('WEBAUTHN_USERLESS', false), |
288 | 301 |
|
289 | 302 | ]; |
0 commit comments