mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-06 03:54:17 +02:00
The boss of http auth.
06edd2e615
- Add a new storer specifically for OAuth2 to enable clients to choose regular database storing OR Oauth2 but not have to have both. - Stop storing OAuth2 credentials in a combined form inside username. - Add new events to capture OAuth events just like auth. - Have pass-through parameters for OAuth init urls, this allows us to pass additional behavior options (redirects and remember me) as well as other things that should be present on the page that is redirected to. - Context.LoadUser is now OAuth aware. - Remember's callbacks now include an OAuth check to see if a horribly packed state variable contains a flag to say that we want to be remembered. - Change the OAuth2 Callback to use Attributes instead of that custom struct to allow people to append whatever attributes they want into the user that will be saved. |
||
---|---|---|
auth | ||
confirm | ||
internal | ||
lock | ||
oauth2 | ||
recover | ||
register | ||
remember | ||
.gitignore | ||
authboss_test.go | ||
authboss.go | ||
callbacks_test.go | ||
callbacks.go | ||
client_storer_test.go | ||
client_storer.go | ||
config.go | ||
context_test.go | ||
context.go | ||
errors_test.go | ||
errors.go | ||
expire_test.go | ||
expire.go | ||
LICENSE | ||
mailer_test.go | ||
mailer.go | ||
mocks_test.go | ||
module_test.go | ||
module.go | ||
oauth2.go | ||
README.md | ||
router_test.go | ||
router.go | ||
rules_test.go | ||
rules.go | ||
storer_test.go | ||
storer.go | ||
validation_test.go | ||
validation.go | ||
views_test.go | ||
views.go | ||
xsrf.go |
Authboss
Authboss is a modular authentication system for the web. It tries to remove as much boilerplate and "hard things" as possible so that each time you start a new web project in Go, you can plug it in, configure and be off to the races without having to think about the hard questions like how to store Remember Me tokens, or passwords.
Modules
Each module can be turned on simply by importing it and the side-effects take care of the rest. However each module has storage requirements and configuration that's required.
Name | Import Path | Description |
---|---|---|
Core | gopkg.in/authboss.v0 | Support for the modular system, constants, helpers. |
Register | gopkg.in/authboss.v0/register | Provides a registration section for users. |
Confirm | gopkg.in/authboss.v0/confirm | Sends an e-mail verification before allowing users to log in. |
Recover | gopkg.in/authboss.v0/recover | Allows for password resets via e-mail. |
Remember | gopkg.in/authboss.v0/remember | Persisting login sessions past session expiry. |
Lock | gopkg.in/authboss.v0/lock | Locks user accounts after N authentication failures in M time. |
Expire | gopkg.in/authboss.v0/expire | Expires user sessions after a certain period of inactivity. |