From 3291c57a3ad4bedbdfc3aa9ca2cf4e5b2f5f792b Mon Sep 17 00:00:00 2001 From: Italo Date: Thu, 19 Jan 2023 11:55:21 -0300 Subject: [PATCH] Clarified hypothetical controllers --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7039733..a1c9162 100644 --- a/README.md +++ b/README.md @@ -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. +For example, we can create our own `AttestationController` to create it. + ```php // app\Http\Controllers\WebAuthn\AttestationController.php 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. +For example, we can use our own `AssertionController` to handle it. + ```php // app\Http\Controllers\WebAuthn\AssertionController.php use Laragear\WebAuthn\Http\Requests\AssertionRequest;