Repository navigation
First semver release of github.com/smhanov/auth. The package has been in active use across smhanov and ArchieOS projects since 2019; this is the first versioned (tagged) release.
Capabilities
- Email/password authentication with secure session management and password hashing
- OAuth 2.0 login (Google, Facebook, Twitter, Apple web + native), plus a pluggable
OAuthProviderinterface - Enterprise SAML SSO
- Built-in rate limiting
- Pluggable storage via
sqlx(SQLite / PostgreSQL) - Ready-to-use password-reset, email-update, and account-creation flows
Fixed
- Hardened SAML assertion handling — malformed client input now returns stable
400/401responses instead of panicking or leaking library errors (325b2e1)
Notes
- Requires Go 1.26.0 or later
- MIT licensed
Install:
go get github.com/smhanov/auth@v1.0.0