1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-24 05:17:10 +02:00

35 Commits

Author SHA1 Message Date
Aaron L
634892e29c Fix breakages from last commit 2018-03-07 16:41:58 -08:00
Aaron L
ce2d3dac09 Make "remember" value passing unobtrusive
- Remove RM context key for Values.
- Add values types and code to be able to pull the remember me bool
  checkbox from the user.
2018-03-07 15:17:22 -08:00
Aaron L
ef172b3b37 Extract logout to it's own module
- This may seems silly but the functionality is shared
  between oauth2 and auth with no changes so it makes it nicer
  not to have an oauth2/logout route like before
2018-03-07 11:41:14 -08:00
Aaron L
1068509540 Make auth tests more solid 2018-02-21 12:10:18 -08:00
Aaron L
d4f8d2f292 Finish auth module 2018-02-20 08:58:59 -08:00
Aaron L
ad5230a303 Bring back events
- Rename callbacks -> events
- Regenerate stringers.go with later version of stringer
2018-02-01 16:31:08 -08:00
Aaron L
de1c2ed081 Get tests working after latest refactors
- Change changelog format to use keepachangelog standard
- Refactor the config to be made of substructs to help organize all the
  pieces
- Add the new interfaces to the configuration
- Clean up module loading (no unnecessary reflection to create new value)
- Change User interface to have a Get/SetPID not E-mail/Username, this
  way we don't ever have to refer to one or the other, we just always
  assume pid. In the case of Confirm/Recover we'll have to make a GetEmail
  or there won't be a way for us to get the e-mail to send to.
- Delete the xsrf nonsense in the core
2018-02-01 15:42:48 -08:00
Aaron L
2b5c85ee16 Import path fixes 2017-07-30 19:42:05 -07:00
Aaron L
f65d9f6bb6 Fix errors package
- Fix many compilation errors
2017-02-21 15:04:30 -08:00
Aaron L
0c3d6d26ca Remove gopkg.in 2016-12-19 22:47:12 -08:00
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 L
c074b79798 auth: Context-Request separation ripple 2015-08-02 11:52:23 -07:00
Aaron L
7cbe4216a0 Fix internal server error when wrong usr/pwd
- Correct tests to stop actually checking for internal server errors on
  wrong username/password. Sometimes tests aren't everything.
- Fix #64
2015-07-01 18:07:26 -07:00
Aaron L
704697472f Add redirection on pages when logged in.
- Stop logged in users from accessing pages like auth/recover etc.
- Ensure that half-authed users are allowed access to auth-like pages.
- Make sure that if users have a remember token, it's processed before
  we decide if a user is logged in or not, preventing or granting access
  to these pages.
- Fix #58
2015-04-10 22:41:59 -07:00
Kris Runzer
d60dd6ddba Remove cloaking of errors on auth credentail validation. Errors properly log to LogWriter. 2015-04-03 11:50:07 -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
bd0d3c5f68 Add a default logger.
- Having the default logger set to nil was troublesome because some errors
  are hard to detect without a logger. This falls under "sane default"
  changes and so should be made.
2015-03-30 09:55:37 -07:00
Aaron L
3d905f001f Go vet fixes. 2015-03-16 14:51:44 -07:00
Kris Runzer
045b9331c7 Fix expire token shenanigans
- Add session and cookie cleanup on logout
2015-03-02 22:09:32 -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
Kris Runzer
0928720a3f Add new auth testing and tempaltes 2015-02-24 15:02:11 -08:00
Kris Runzer
1198466d76 Reworking auth 2015-02-21 11:22:55 -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
c52f90b0a9 WIP commit 2015-02-05 10:31:32 -08:00
Kris Runzer
7841223f39 Made config global in authboss 2015-01-16 22:03:40 -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
Kris Runzer
cb39056695 Cleaned up auth module and tests 2015-01-12 21:08:52 -08:00
Kris Runzer
41670f72ff Fixed auth to work with root changes 2015-01-09 22:51:02 -08:00
Kris Runzer
3aecf510ad Added auth module view overriding 2015-01-04 14:50:34 -08:00
Kris Runzer
0f691e7607 started work on auth module. redefined how configuration is going to work and where core is going to reside 2015-01-04 10:33:53 -08:00