1
0
mirror of https://github.com/volatiletech/authboss.git synced 2024-11-24 08:42:17 +02:00
Commit Graph

35 Commits

Author SHA1 Message Date
Aaron L
be041cbae6 remember: Context+Request separation ripple
- Re-add the age-old "Values" from the Context. This was originally
  there for exactly the documented purpose. However the Context holding
  the request form values negated it's use. It's back because of this
  new separation.
- Make the auth success path set the authboss.CookieRemember value in
  the context before calling it's callback.
2015-08-02 14:02:14 -07:00
Aaron
c98ef93e06 Fix modules after refactor. 2015-04-01 13:08:08 -07:00
Aaron
f12f10fa43 Stop reliance on global scope.
- This change was necessary because multi-tenancy sites could not use
  authboss properly.
2015-03-31 12:34:03 -07:00
Aaron
a4fd382287 Make RememberStorer more independent.
- RememberStorer checks to see if either provided storer is of the correct
  type. If neither are then the module fails to load.
- Fix #48
2015-03-27 09:35:55 -07:00
Aaron
07cbd6016f Make remember and oauth2 work better together.
- Change OAuth2 extra params to not use state, but session instead.
2015-03-24 19:39:20 -07:00
Aaron L
185d916d95 Fix some comments. 2015-03-16 21:38:00 -07:00
Aaron L
99d0af8b72 Destroy a list of go lint errors. 2015-03-16 14:42:45 -07:00
Aaron
d7e63bc876 Remove silly key return from RememberStorer 2015-03-15 15:00:37 -07:00
Aaron
d8cede4292 Rename TokenStorer to RememberStorer 2015-03-15 11:26:25 -07:00
Aaron
87e0ab9835 Delete useless readme files. 2015-03-15 11:24:38 -07:00
Aaron
f93fb38181 Change documentation a little bit, and fix one bug. 2015-03-15 08:06:08 -07:00
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
Aaron L
aaf9c71f3c Add new PasswordReset event.
- Make remember clear it's tokens on password reset.
- Fix #14
2015-03-05 20:06:44 -08:00
Kris Runzer
045b9331c7 Fix expire token shenanigans
- Add session and cookie cleanup on logout
2015-03-02 22:09:32 -08:00
Kris Runzer
21c35ac1d5 Remember now properly regenerates tokens on use. 2015-03-01 20:40:09 -08:00
Kris Runzer
a7a67981ce Move create from Storer to RegisterStorer
- Fixed the qq tests
- Removed all module singletons
2015-03-01 20:00:19 -08:00
Aaron
c723f46a3e Refactor storers into modules. 2015-02-24 11:04:27 -08:00
Aaron
73dcb5beb1 Add a few updates to documentation. 2015-02-22 22:27:45 -08:00
Aaron
001810bf7c Add PrimaryID to the system.
- Fix #17
2015-02-22 13:24:53 -08:00
Aaron
4eeb21e16d Fix the remember module. 2015-02-22 12:55:09 -08:00
Kris Runzer
bab1475b72 Change config to be global. Updated most modules and tests. 2015-02-15 20:07:36 -08:00
Kris Runzer
1aa0da808c Move duplicate testing mocks to internal/mocks
- Add force err ability to internal/mocks
2015-02-11 16:38:09 -08:00
Aaron
8f6f322c63 Add new internal mocks.
- Update remember to use new mocks.
2015-01-23 16:24:34 -08:00
Aaron
f537664fd9 Cleanup various sad things.
- Export ModuleAttrMeta so the modules can access it.
- Add a couple new events for later use.
- Fix a few compile errors.
- Prefix err constants with Err.
2015-01-23 15:56:24 -08:00
Kris Runzer
934ddf5531 Move all html to internal packge views 2015-01-18 14:24:20 -08:00
Aaron
e4dfe30d02 Initial validate module. 2015-01-17 23:37:05 -08:00
Kris Runzer
a0bde30e3d Implement auth logout
- Add del to client storer interface
2015-01-15 16:04:33 -08:00
Kris Runzer
14272c8164 Changed remember and auth to work together. 2015-01-15 15:10:47 -08:00
Kris Runzer
716e7dd6ba Add response writer to client storer 2015-01-15 14:01:01 -08:00
Aaron
443f482b71 Fixed auth and auth tests.
- Added more error checking to remember module.
2015-01-15 13:24:12 -08:00
Aaron
0b66578b88 Add full-circle remember me test.
- Add more helpers to context.
2015-01-15 02:56:13 -08:00
Aaron
670c6f3b9f Add more to context.
- Add test coverage to various modules.
2015-01-14 19:18:45 -08:00
Aaron
7f9fe3ec77 Add session and cookie concepts.
- Add tests for callbacks.
- Refactor callbacks into a keyed map.
2015-01-12 23:46:52 -08:00
Aaron
a2ffe4f7c4 Add many new files and types.
- Add context.
- Add handler type.
- Add new storers for client storage and sessions.
- Add start of remember module.
2015-01-10 22:54:31 -08:00
Aaron L
77cac7a486 Add module directories and readme. 2015-01-03 08:58:09 -08:00