passwordless-lib / fido2-net-lib

FIDO2 .NET library for FIDO2 / WebAuthn Attestation and Assertion using .NET
https://fido2-net-lib.passwordless.dev/
MIT License
1.18k stars 170 forks source link

Example with Blazor and Google authentication #337

Open jkone27 opened 2 years ago

jkone27 commented 2 years ago

Could you provide a toy/example app with Blazor aspnetcore app and google authentication?

abergs commented 2 years ago

Good idea. When I have time I hope to get around to improve examples and a blazor one is certainly on my todo.

Regenhardt commented 1 year ago

I'm actually working on using this in Blazor WASM right now, maybe I can make a PR once I have it actually functional.

abergs commented 1 year ago

Appreciated @Regenhardt

Regenhardt commented 1 year ago

The Blazor WASM part of this issue is included in #379.

Not sure about google authentication, I feel like that is out of scope for this library as the point is that google provides the authentication and, if I understand those concepts correctly, FIDO is for authentication ("Who are you?", check via password/biometrics/SMS/E-Mail), not authorization ("What are you allowed to do?", checked via JWT or other tokens).
The google part is however covered in other places already, like https://code-maze.com/google-authentication-in-blazor-webassembly-hosted-applications/, which you could try to reimplement.