Comments (4)
Adding the following to AppServiceProvider
(and importing classes) works:
$this->app->bind(
AttestationObjectLoader::class,
fn ($app) => (new AttestationObjectLoader(
$app[AttestationStatementSupportManager::class]
))
->setLogger(new NullLogger())
);
$this->app->bind(
AuthenticatorAttestationResponseValidator::class,
fn ($app) => (new AuthenticatorAttestationResponseValidator(
$app[AttestationStatementSupportManager::class],
$app[PublicKeyCredentialSourceRepository::class],
$app[TokenBindingHandler::class],
$app[ExtensionOutputCheckerHandler::class]
))
->setLogger(new NullLogger())
);
$this->app->bind(
AuthenticatorAssertionResponseValidator::class,
fn ($app) => (new AuthenticatorAssertionResponseValidator(
$app[PublicKeyCredentialSourceRepository::class],
$app[TokenBindingHandler::class],
$app[ExtensionOutputCheckerHandler::class],
$app[CoseAlgorithmManager::class]
))
->setCounterChecker($app[CounterChecker::class])
->setLogger(new NullLogger())
);
$this->app->bind(
PublicKeyCredentialLoader::class,
fn ($app) => (new PublicKeyCredentialLoader(
$app[AttestationObjectLoader::class]
))
->setLogger(new NullLogger())
);
from laravel-webauthn.
@willbrowningme I couldn't find the class CoseAlgorithmManager
from laravel-webauthn.
Ok I found it in the service provider of this package, Thank you very much
Here are more detailed instructions
in AppServiceProvider
import
use Psr\Log\NullLogger;
use Webauthn\AttestationStatement\AttestationObjectLoader;
use Webauthn\AttestationStatement\AttestationStatementSupportManager;
use Webauthn\AuthenticationExtensions\ExtensionOutputCheckerHandler;
use Webauthn\AuthenticatorAssertionResponseValidator;
use Webauthn\AuthenticatorAttestationResponseValidator;
use Webauthn\Counter\CounterChecker;
use Webauthn\PublicKeyCredentialLoader;
use Webauthn\PublicKeyCredentialSourceRepository;
use Webauthn\TokenBinding\TokenBindingHandler;
use Cose\Algorithm\Manager as CoseAlgorithmManager;
then add this method
private function disableWebauthnLog()
{
$this->app->bind(AttestationObjectLoader::class,
fn($x) => (new AttestationObjectLoader($x[AttestationStatementSupportManager::class]))
->setLogger(new NullLogger())
);
$this->app->bind(AuthenticatorAttestationResponseValidator::class,
fn($x) => (new AuthenticatorAttestationResponseValidator(
$x[AttestationStatementSupportManager::class],
$x[PublicKeyCredentialSourceRepository::class],
$x[TokenBindingHandler::class],
$x[ExtensionOutputCheckerHandler::class]
))->setLogger(new NullLogger())
);
$this->app->bind(AuthenticatorAssertionResponseValidator::class,
fn($x) => (new AuthenticatorAssertionResponseValidator(
$x[PublicKeyCredentialSourceRepository::class],
$x[TokenBindingHandler::class],
$x[ExtensionOutputCheckerHandler::class],
$x[CoseAlgorithmManager::class]
))->setCounterChecker($x[CounterChecker::class])->setLogger(new NullLogger())
);
$this->app->bind(PublicKeyCredentialLoader::class,
fn($x) => (new PublicKeyCredentialLoader($x[AttestationObjectLoader::class]))
->setLogger(new NullLogger())
);
}
then call the method in the register
method
Thank you @willbrowningme
from laravel-webauthn.
You can now just add:
'log' => 'null',
to your config/webauthn.php
to disable logging.
from laravel-webauthn.
Related Issues (20)
- clientDataJSON base64 padding HOT 3
- Could not set attachment to platform
- is there a way to use 2.0.1 with sanctum? HOT 2
- The demo is not working on heroku HOT 2
- 500 Error with web-auth/webauthn-lib 4.5.0 HOT 1
- Fresh install - error on php artisan migrate - 1170 BLOB/TEXT column 'credentialId' used in key specification without a key length HOT 1
- Just a heads up for a soon to be removed algorithm HOT 1
- Demo application stopped working HOT 1
- Uncaught TypeError: e is undefined HOT 2
- Key Specification without a key length HOT 2
- How to get publicKey HOT 1
- some yubikeys are erroring out in Chrome HOT 3
- Uncaught TypeError: Cannot set properties of undefined (setting 'WebAuthn') at webauthn.js:220:188 at webauthn.js:220:191 HOT 1
- Webauthn\AuthenticatorSelectionCriteria::createFromArray(): Argument #1 ($json) must be of type array, Webauthn\AuthenticatorSelectionCriteria given HOT 3
- database cace Incorrect string value HOT 1
- Issue with POST request to webauthn.store.options
- not configurable RP ID
- separate authentication and registration route guard
- Array cache driver does not work HOT 1
- The relying party ID is not a registrable domain suffix of, nor equal to the current domain HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-webauthn.