mirror of
https://github.com/Fishwaldo/auth2.git
synced 2025-06-03 12:21:22 +00:00
No description
Add comprehensive WebAuthn/FIDO2 support with dual-mode functionality for both passwordless authentication and multi-factor authentication (MFA). Key features: - Dual-mode provider implementing both AuthProvider and MFAProvider interfaces - Full WebAuthn protocol support using go-webauthn/webauthn library - Credential and challenge management via StateStore interface - Configurable security options (attestation, user verification, resident keys) - Comprehensive test coverage (61%) with mock implementations - Support for registration and authentication flows - Counter validation to detect cloned authenticators - Challenge expiration and one-time use enforcement Implementation includes: - pkg/auth/providers/webauthn/: Complete WebAuthn provider package - provider.go: Main dual-mode provider implementation - types.go: WebAuthn-specific types and structures - config.go: Configuration with validation - credential.go: Credential storage and management - challenge.go: Challenge generation and validation - factory.go: Provider factory for instantiation - errors.go: WebAuthn-specific error types - Comprehensive test files for all components - README.md: Documentation with usage examples This completes Phase 2.3 and partially completes Phase 3.3 of the project plan, as the provider supports both primary authentication and MFA modes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
---|---|---|
.github | ||
docs | ||
internal/errors | ||
pkg | ||
.gitignore | ||
CLAUDE.md | ||
go.mod | ||
go.sum |
Auth2 Documentation
Welcome to the Auth2 documentation. This guide will help you understand how to use and extend the Auth2 authentication library.
Table of Contents
-
- Installation
- Basic Setup
- Configuration Options
-
- Architecture Overview
- Authentication Flow
- Session Management
-
- Development Guidelines
- Testing
- Pull Request Process