Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable webauthn for a Symfony firewall configured with Symfony ConfigBuilder? #650

Open
spackmat opened this issue Sep 30, 2024 · 0 comments

Comments

@spackmat
Copy link

spackmat commented Sep 30, 2024

Description

Hi, maybe I'm getting something completely wrong, but I cannot find a way to configure my existing firewall with a ConfigBuilder to use webauthn.

$securityConfig->firewall('main', ['webauthn' => []]); leads to that error: "The following keys are not supported by "Symfony\Config\Security\FirewallConfig": webauthn"

$securityConfig->firewall('main')->webauthn([]) leads to the error "Attempted to call an undefined method named "webauthn" of class "Symfony\Config\Security\FirewallConfig"."

$containerConfigurator->extension('security', ['firewalls' => ['test' => ['webauthn' => []]]]); as a minimal test case works, when no other firewall configs exists.

Configuring via YAML also works as described in https://webauthn-doc.spomky-labs.com/symfony-bundle/firewall But YAML is the only documented config format here.

So any ideas how I can enable the webauthn for my firewall that is configured with a ConfigBuilder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant