1
0
mirror of https://github.com/volatiletech/authboss.git synced 2024-12-04 10:24:52 +02:00
Commit Graph

184 Commits

Author SHA1 Message Date
Aaron
d8cede4292 Rename TokenStorer to RememberStorer 2015-03-15 11:26:25 -07:00
Aaron
47d9dc66f8 Rename OAuthProvider to OAuth2Provider
- Add more docs.
2015-03-15 11:25:59 -07:00
Aaron
090ce2b6c3 Make register follow it's redir path. 2015-03-15 11:25:23 -07:00
Aaron
4651176f4d Add more config docs. 2015-03-15 11:25:01 -07:00
Aaron
87e0ab9835 Delete useless readme files. 2015-03-15 11:24:38 -07:00
Aaron
fc0ec60a4f Make the lock module respect lock duration. 2015-03-15 08:38:50 -07:00
Aaron
0754b965b1 Update config documentation.
- Fix #47: Remove ModuleAttrMeta from Storers. Rename to ModuleAttributes.
- Add some additional deafult values to config.
2015-03-15 08:31:48 -07:00
Aaron
f93fb38181 Change documentation a little bit, and fix one bug. 2015-03-15 08:06:08 -07:00
Aaron
fb97394c7f Fix CurrentUser to pull the current user.
- Make slightly nicer tests for camelcasing.
- Fix an issue with oauth url generation.
2015-03-13 22:09:01 -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
082caf88b3 Clean up OAuth and finish tests.
- Fix #25
2015-03-13 02:15:58 -07:00
Aaron
538adcf188 Add initial oauth2 support.
- Needs more providers and more tests.
2015-03-12 19:20:36 -07:00
Aaron
dccabb0754 Rename HostName to RootURL 2015-03-12 19:20:28 -07:00
Kris Runzer
2b6954709d Add simple context to default emails 2015-03-08 17:40:59 -07:00
Kris Runzer
bb1bae6778 Test recoverComplete handlerFunc 2015-03-07 20:46:37 -08:00
Kris Runzer
e784e79fb5 Fixed recover email urls 2015-03-07 19:45:48 -08: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
40154b2749 Update binding/unbinding to support Null* values with SQL drivers
- Changed to int64 across the board
2015-03-03 23:18:24 -08:00
Kris Runzer
7ff35efe54 Split emails to have seperate HTML and Text layouts. 2015-03-03 11:23:49 -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
8901ad4ed7 WIP fixing expiry 2015-03-02 08:04:31 -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
Kris Runzer
c8e2058440 Fix flash message clearing
- Fix token emailing bug with confirm (l2base64)
2015-02-26 22:01:53 -08:00
Kris Runzer
bfa4c38da5 Fix template name and bin data 2015-02-26 20:47:33 -08:00
Kris Runzer
57797a703b Proper naming of all templates. Rebuild bindata. 2015-02-26 12:52:45 -08:00
Kris Runzer
60620361c8 Testing WIP 2015-02-26 12:34:05 -08:00
Aaron
b93e0e6eb1 Add callback from confirm to BeforeAuth
- Allow missing struct attributes to go unnoticed in Bind()
2015-02-26 12:15:33 -08:00
Aaron
e6d3558704 Fix confirm email templates. 2015-02-25 23:39:55 -08:00
Aaron
fa3cd5ef4f Fix confirm fields. 2015-02-25 23:20:02 -08:00
Aaron
889dcaa974 Make log output cooler. 2015-02-25 23:11:58 -08:00
Aaron
bf0a8b098c Add mountedpath so forms work on mounted paths.
- Refactor naming for config "redirect" variables.
- Removed flash messages from config, Fix #19
2015-02-25 23:05:14 -08:00
Kris Runzer
1ad9351b8c Recover now builds. Start adding tests. 2015-02-25 10:23:18 -08:00
Aaron
8b1007f7dd Fix broken redirect tests. 2015-02-24 23:45:55 -08:00
Kris Runzer
0928720a3f Add new auth testing and tempaltes 2015-02-24 15:02:11 -08:00
Aaron
f716720759 Fix broken render test. 2015-02-24 14:52:22 -08:00
Aaron
1075149bb8 Add router tests.
- Rename Endpoint to Location in ErrAndRedirect
2015-02-24 14:45:37 -08:00
Aaron
e369d626a8 Increase test coverage in authboss. 2015-02-24 13:03:06 -08:00
Aaron
faa35b66be Add additional rule options. 2015-02-24 11:13:46 -08:00
Aaron
c723f46a3e Refactor storers into modules. 2015-02-24 11:04:27 -08:00
Kris Runzer
468113a398 Working auth and recover 2015-02-24 10:12:23 -08:00
Kris Runzer
199d0ec0b3 Rework recover 2015-02-23 16:01:56 -08:00
Aaron
ec5da7694e Finish register module. 2015-02-23 02:03:39 -08:00
Aaron
6f074543f4 Start the register module. 2015-02-23 02:03:29 -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
Aaron
35e0c6738b Delete useless module. 2015-02-22 12:47:42 -08:00
Aaron
7366629ab4 Fix auth interruption handling. 2015-02-22 12:47:02 -08:00
Aaron
bab0da8575 Fix lock module. 2015-02-22 12:43:28 -08:00