Documentation
¶
Overview ¶
Package oneauth provides a unified authentication framework for Go applications.
OneAuth is organized into subpackages:
- core/ — Foundation types: User, Identity, Channel, store interfaces, tokens, credentials, scopes
- keys/ — Key storage, KID tracking, JWKS serving/fetching, encrypted key storage
- admin/ — Admin auth, app registration API, resource token minting
- apiauth/ — API token auth (JWT + API keys), validation middleware
- localauth/ — Local username/password auth: signup, login, email verify, password reset
- httpauth/ — HTTP middleware, CSRF protection, session-based auth mux
- stores/ — Storage backends: fs/, gorm/, gae/
- utils/ — Crypto helpers (PEM, JWK, key generation)
- client/ — Client SDK
- oauth2/ — OAuth2 provider implementations
- grpc/ — gRPC auth interceptors
See each subpackage's SUMMARY.md for details.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package client provides client-side authentication utilities for oneauth.
|
Package client provides client-side authentication utilities for oneauth. |
|
stores/fs
Package fs provides a file system-based credential store for oneauth client.
|
Package fs provides a file system-based credential store for oneauth client. |
|
cmd
|
|
|
demo-hostapp
command
|
|
|
demo-resource-server
command
|
|
|
oneauth-server
command
|
|
|
oneauth
module
|
|
|
Package core provides the foundation types and interfaces for the OneAuth authentication framework.
|
Package core provides the foundation types and interfaces for the OneAuth authentication framework. |
|
Package grpc provides authentication context utilities for passing user information between HTTP handlers and gRPC services via metadata.
|
Package grpc provides authentication context utilities for passing user information between HTTP handlers and gRPC services via metadata. |
|
Package keystoretest provides shared test suites for all KeyStore implementations.
|
Package keystoretest provides shared test suites for all KeyStore implementations. |
|
stores
|
|
|
gae
Package gae provides Google Cloud Datastore implementations of oneauth store interfaces.
|
Package gae provides Google Cloud Datastore implementations of oneauth store interfaces. |
|
gorm
Package gorm provides GORM-based implementations of oneauth store interfaces.
|
Package gorm provides GORM-based implementations of oneauth store interfaces. |
Click to show internal directories.
Click to hide internal directories.