Clarified hypothetical controllers
This commit is contained in:
@@ -258,6 +258,8 @@ const webAuthn = new WebAuthn({}, {
|
|||||||
|
|
||||||
Attestation is the _ceremony_ to create WebAuthn Credentials. To create an Attestable Response that the user device can understand, use the `AttestationRequest::toCreate()` form request.
|
Attestation is the _ceremony_ to create WebAuthn Credentials. To create an Attestable Response that the user device can understand, use the `AttestationRequest::toCreate()` form request.
|
||||||
|
|
||||||
|
For example, we can create our own `AttestationController` to create it.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
// app\Http\Controllers\WebAuthn\AttestationController.php
|
// app\Http\Controllers\WebAuthn\AttestationController.php
|
||||||
use Laragear\WebAuthn\Http\Requests\AttestationRequest;
|
use Laragear\WebAuthn\Http\Requests\AttestationRequest;
|
||||||
@@ -354,6 +356,8 @@ The Assertion procedure also follows a two-step procedure: the user will input i
|
|||||||
|
|
||||||
First, use the `AssertionRequest::toVerify()` form request. It will automatically create an assertion for the user that matches the credentials, or a blank one in case you're using [userless login](#userlessone-touchtypeless-login). Otherwise, you may set stricter validation rules to always ask for credentials.
|
First, use the `AssertionRequest::toVerify()` form request. It will automatically create an assertion for the user that matches the credentials, or a blank one in case you're using [userless login](#userlessone-touchtypeless-login). Otherwise, you may set stricter validation rules to always ask for credentials.
|
||||||
|
|
||||||
|
For example, we can use our own `AssertionController` to handle it.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
// app\Http\Controllers\WebAuthn\AssertionController.php
|
// app\Http\Controllers\WebAuthn\AssertionController.php
|
||||||
use Laragear\WebAuthn\Http\Requests\AssertionRequest;
|
use Laragear\WebAuthn\Http\Requests\AssertionRequest;
|
||||||
|
|||||||
Reference in New Issue
Block a user