1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-06 03:54:17 +02:00
The boss of http auth.
Go to file
Aaron L 06edd2e615 Make OAuth2 implementation less shoddy.
- 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.
2015-03-13 16:29:58 -07:00
auth Fix expire token shenanigans 2015-03-02 22:09:32 -08:00
confirm Rename HostName to RootURL 2015-03-12 19:20:28 -07:00
internal Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
lock Update binding/unbinding to support Null* values with SQL drivers 2015-03-03 23:18:24 -08:00
oauth2 Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
recover Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
register Move create from Storer to RegisterStorer 2015-03-01 20:00:19 -08:00
remember Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
.gitignore Cleaned up auth module and tests 2015-01-12 21:08:52 -08:00
authboss_test.go Remember now properly regenerates tokens on use. 2015-03-01 20:40:09 -08:00
authboss.go Remember now properly regenerates tokens on use. 2015-03-01 20:40:09 -08:00
callbacks_test.go Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
callbacks.go Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
client_storer_test.go Fix flash message clearing 2015-02-26 22:01:53 -08:00
client_storer.go Clean up OAuth and finish tests. 2015-03-13 02:15:58 -07:00
config.go Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
context_test.go Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
context.go Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
errors_test.go Add many tests. 2015-02-20 05:08:11 -08:00
errors.go Add router tests. 2015-02-24 14:45:37 -08:00
expire_test.go Fix expire token shenanigans 2015-03-02 22:09:32 -08:00
expire.go Fix expire token shenanigans 2015-03-02 22:09:32 -08:00
LICENSE Updated copyright information. 2015-01-03 08:59:12 -08:00
mailer_test.go Increase test coverage in authboss. 2015-02-24 13:03:06 -08:00
mailer.go Change config to be global. Updated most modules and tests. 2015-02-15 20:07:36 -08:00
mocks_test.go Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
module_test.go Add router tests. 2015-02-24 14:45:37 -08:00
module.go Change config to be global. Updated most modules and tests. 2015-02-15 20:07:36 -08:00
oauth2.go Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
README.md Add a few updates to documentation. 2015-02-22 22:27:45 -08:00
router_test.go Add router tests. 2015-02-24 14:45:37 -08:00
router.go Make log output cooler. 2015-02-25 23:11:58 -08:00
rules_test.go Add additional rule options. 2015-02-24 11:13:46 -08:00
rules.go Add additional rule options. 2015-02-24 11:13:46 -08:00
storer_test.go Update binding/unbinding to support Null* values with SQL drivers 2015-03-03 23:18:24 -08:00
storer.go Make OAuth2 implementation less shoddy. 2015-03-13 16:29:58 -07:00
validation_test.go Add PrimaryID to the system. 2015-02-22 13:24:53 -08:00
validation.go Start the register module. 2015-02-23 02:03:29 -08:00
views_test.go Add many tests. 2015-02-20 05:08:11 -08:00
views.go Add many tests. 2015-02-20 05:08:11 -08:00
xsrf.go Add form value name for xsrf tokens. 2015-01-27 17:34:55 -08:00

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.