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

37 Commits

Author SHA1 Message Date
Aaron L
ee6a9ab99a Update changelog 2018-12-31 09:54:10 -08:00
Aaron L
ca066a55b5 Add DelAllSession method
In order to prevent leaking of session values (and to avoid the mess of
deleting the entire session cookie which could still have values we want
in it) this nuclear method is now called by expire/logout with a
whitelist of keys to keep (passed in from
Config.Storage.SessionWhitelistKeys).
2018-12-17 23:03:55 -08:00
Aaron L
db25c5e30b Merge branch 'dev' 2018-12-16 22:54:11 -08:00
Aaron L
e38d4652d5 Bump version 2018-12-16 22:52:27 -08:00
Aaron L
f70bdd5eeb Add EventAuthHijack to work around ordering issue
Lock/Confirm and possibly other authentication preemption mechanisms
hook into 'Before(EventAuth)', but the ordering of these rejection
mechanisms mixed with the 2fa acceptance response could result in a
dual response.
2018-12-16 22:50:26 -08:00
Aaron L
0e85072885 Fix bug where After Auth hooks could fail
- User was not being set in the Context for 2fa success paths meaning
  things like lock and remember event handlers would fail.
2018-12-13 23:04:28 -08:00
Aaron L
6f3e7ca54a Add more flexibility to authboss.Middleware
- Add requirements and responses for the authboss middleware. This lets
  us later add new types that don't break the API instead of a list of
  bools.
2018-12-10 23:00:27 -08:00
Aaron L
71f88be037 Fix session persistence security hole in totp/sms
- Reorder the lookups to ensure CurrentUser is always looked up before
  any temporary pending PIDs.
- See changelog for more details
2018-12-10 22:26:47 -08:00
Aaron L
adaf5a9192 Fix session persistence security hole in totp/sms
- Reorder the lookups to ensure CurrentUser is always looked up before
  any temporary pending PIDs.
- See changelog for more details
2018-12-10 22:23:37 -08:00
Aaron L
1c254ce6ce Update changelog 2018-11-14 18:31:17 -08:00
Aaron L
b5103a916f Update changelog 2018-11-04 23:00:14 -08:00
Aaron L
6c663762e4 Fix couple bugs with remember and 2fa
- Fix bug where setup paths were not mountpathed so twofactor_verify
  would redirect to a 404.
- Fix bug in remember where a user would be remembered even if logged in
  depending on the middleware order (if something had previously called
  LoadCurrentUser/LoadCurrentUserID it was fine, if not, the user was
  half-authed even if he was cleared of half-auth previously).
2018-11-04 22:49:43 -08:00
Aaron L
931ccfba1f Add twofactor setup e-mail validation options 2018-11-01 22:49:25 -07:00
Aaron L
97b72a4816 Bump version 2018-10-28 23:29:25 -07:00
Aaron L
25eda89076 Ensure important events are firing for 2fa modules 2018-10-28 23:17:10 -07:00
Aaron L
3944d57c9d Make the default json renderer write a status 2018-10-28 22:58:00 -07:00
Aaron L
d84ea6fac5 Fix default responder's content-type check
- Fix #189
2018-09-27 22:06:56 -07:00
Aaron L
dc5a3def97 Fix bug in LoadCurrentUser error handling 2018-09-17 20:42:03 -07:00
Aaron L
2eeaf342f9 Add control over confirm http method 2018-09-12 19:58:56 -07:00
Aaron L
79d1893bdc Add ability to override mail root
- Add config option for MailRoot
- Make confirm and recover use MailRoot if present, otherwise assemble
  URL like normal.
2018-09-12 19:49:48 -07:00
Aaron L
13e6714c87 Change redirector to do more API-like things
- Add an option to coerce HTTP 307/308 -> 200 for API redirects
- Change the status message to always show up during a redirect.
2018-09-12 17:11:23 -07:00
Aaron L
97a8f0fe04 Update changelog 2018-09-03 14:11:11 -07:00
Aaron L
8249d714d0 Fix redirects using Middleware 2018-08-31 14:57:22 -07:00
Aaron L
ff72602e76 Merge branch 'otp-twofactor' into v2 2018-08-31 11:44:00 -07:00
Aaron L
0c5db70af2 Update changelog 2018-08-31 11:41:32 -07:00
Aaron L
0085c8354b Fix error handling in client state middleware
- Fix #181
2018-08-16 09:35:33 -07:00
Aaron L
6164dd8da4 Finish otp module 2018-07-17 15:25:25 -07:00
Aaron L
807a692e26 Improve documentation for RegisterPreserveFields 2018-07-06 08:13:30 -07:00
Aaron L
89dc3b4d38 Update changelog 2018-07-04 07:29:39 -07:00
Aaron L
db3a3a10e3 Add context.Context to RememberingServerStorer 2018-06-27 10:58:53 -07:00
Aaron L
ea27d16052 Update changelog 2018-05-25 11:50:11 -07:00
Aaron L
852508259c Add split tokens for confirm and recover 2018-05-16 11:51:55 -07:00
Aaron L
27190e3fbe Update changelog.
- Add tov2.md upgrade guide
2018-05-14 15:03:06 -07: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
2eff32e3c8 Update documentation. 2015-08-02 10:05:31 -07:00
Aaron L
43289ebcaf Create CHANGELOG.md 2015-04-01 13:35:54 -07:00