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

454 Commits

Author SHA1 Message Date
Aaron L
7119b3a90e Delete now-unused code
- This may come back in a separated default Renderer of some kind.
2018-02-02 15:41:43 -08:00
Aaron L
cf05c8d36b Work on logging and error handling some more 2018-02-02 15:41:24 -08:00
Aaron L
27010d9fe4 Abstract logger and error handling
- Replace the old logging mechanisms with a leveled one. This is
  important as authboss needs to start saying a lot more about what's
  happening in the Info log, which will end up like Debug but that's
  okay.
- Replace the error handling mechanisms with something different. This
  allows people to define their own error handlers.
2018-02-02 12:11:47 -08:00
Aaron L
22e99a9921 Work on the auth module
- Move more *User interfaces into storage.go, no need for them to be in
  each individual module.
2018-02-01 17:23:31 -08:00
Aaron L
8f546fdd7c Revert a change to removing some code
- This code is useful and this commit adds a comment to say why
2018-02-01 17:10:26 -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
cbfc1d8388 Fix authboss core tests
- Delete callbacks tests
- Remove some useless code (SendMail), as well as some extra arguments
  in certain functions that didn't require them.
- Remove tests for more code that has been moved to default
  implementations
2018-02-01 11:51:43 -08:00
Aaron L
2db3a3f782 Fix the tests in defaults package
- Make the default responder aggregate data, this allows aggregation of
  data from various middlewares like csrf or extra data for the layout
  without having to have an extra callback function like LayoutDataMaker
  or CRSFMaker
2018-02-01 10:25:54 -08:00
Aaron L
b33e47a97c Re(move) swaths of code
- Document more things
- Remove module code
- Remove callbacks code
- Remove data makers, flash messages, and context providers in exchange
  for middlewares that use context (unwritten)
- Move more implementations (responses, redirector, router) to defaults
  package
- Rename key interfaces (again), Storer -> User, StoreLoader ->
  ServerStorer (opposite of ClientStateStorer) if this is the last time
  I rename these I'll be shocked
2018-01-31 17:07:11 -08:00
Aaron L
59b2874bcd Move validation implementations to defaults
- Add more interfaces for validation
2018-01-29 16:24:42 -08:00
Aaron L
0e9761ddf5 Start moving default implementations 2018-01-29 13:14:55 -08:00
Aaron L
c8457d818d Add ability to wrap responsewriters indefinitely 2018-01-29 11:35:47 -08:00
Aaron L
b55beb15fa Merge branch 'maxhowald/master' 2017-11-13 08:33:40 -08:00
Max Howald
e1778e8fee Allow user to configure FromName in ab emails 2017-10-16 15:10:09 -04:00
Aaron L
58c1136c31 Clean up URLs 2017-07-30 19:50:48 -07:00
Aaron L
2b5c85ee16 Import path fixes 2017-07-30 19:42:05 -07:00
Aaron L
064b53490b Amend readme with progress 2017-07-30 19:29:19 -07:00
Aaron L
5adee6da83 Shuffle around 2017-07-30 19:11:13 -07:00
Aaron
be948e61d1 Merge remote-tracking branch 'kaio/feature/customize_signin_after_recover' 2017-04-03 07:26:55 -07:00
Aaron
2d66b332c9 Merge remote-tracking branch 'kaio/feature/customize_signin_after_confirm' 2017-04-03 07:25:38 -07:00
Kaio Magalhães
1c5018b19a improve readme for the confirm email topic 2017-04-03 10:48:57 -03:00
Kaio
def30d71dd improve readme for the recover password topic 2017-04-03 10:46:52 -03:00
Kaio Magalhães
760c14b32c allow to customize if the user is going to be signed in after recover 2017-03-31 23:09:03 -03:00
Kaio Magalhães
f6a9ff84f1 allow to customize if the user is going to be signed in after confirming his account 2017-03-31 22:38:12 -03:00
Kaio Cristian Costa Porto de Magalhães
182aab547e Merge pull request #1 from go-authboss/master
Fix template does not exists panic
2017-03-31 21:50:55 -03:00
Alireza Ahmadi
ea6cb83297 Fix template does not exists panic 2017-03-13 09:01:18 +03:30
Aaron L
a92fb4d069 Re-enable tests, add more tests 2017-03-05 10:03:22 -08:00
Aaron L
24fc6196c7 Introduce new type of client storage
- This addresses the problem of having to update multiple times during
  one request. It's hard to have a nice interface especially with JWT
  because you always end up having to decode the request, encode new
  response, write header, then a second write to it comes, and where do
  you grab the value from? Often you don't have access to the response
  as a "read" structure. So we store it as events instead, and play
  those events against the original data right before the response is
  written to set the headers.
2017-02-24 16:45:47 -08:00
Aaron L
3170cb8068 Ensure we don't re-lookup, cache in context 2017-02-23 16:29:58 -08:00
Aaron L
fa6ba517db More gigantic edits.
- Change response to be more central to Authboss. Make sure it has
  useful methods and works with the new rendering idioms.
- Change the load user methods to all work with context keys, and even
  be able to set context keys on the current request to avoid setting
  contexts everywhere in the code base.
2017-02-23 16:13:25 -08:00
Aaron L
f65d9f6bb6 Fix errors package
- Fix many compilation errors
2017-02-21 15:04:30 -08:00
Aaron L
b9e2a62802 More changes 2017-02-20 16:08:19 -08:00
Aaron L
02e91bc0ad More changes 2017-02-20 15:56:26 -08:00
Aaron L
f7db80e4e2 Prototyping 2017-02-20 14:28:38 -08:00
Aaron L
f5cbe61cc9 Merge branch 'mkumr/patch-2'
- Fix some documentation, can't fast forward as was not based on current
  master
2017-02-07 19:04:45 -08:00
Aaron L
b9e96ae3f3 Make sql null types test slightly better. 2017-01-09 08:54:41 -08:00
Aaron L
a401257db8 Merge 'sunwukonga/master'
- Fixes the previously created test
2017-01-09 08:52:45 -08:00
Aaron L
d2452e0a3b Add test to expose a bug with sql types and nil 2017-01-09 08:52:35 -08:00
Paul Desmond Parker
91403280ec Fix func Bind not handling sql.Nullstring from nil. Closes #110.
Also fixes behavior for sql.NullInt64, sql.NullFloat64, sql.NullBool.
2017-01-09 15:34:00 +08:00
Mehulkumar
f25e2bf557 fix godoc links
fix godoc links
2016-12-28 17:04:12 +00:00
Aaron L
bc55489bc6 Remove unnecessary circle due to gopkg.in 2016-12-19 22:52:57 -08:00
Aaron L
0c3d6d26ca Remove gopkg.in 2016-12-19 22:47:12 -08:00
Aaron L
f3eba05359 Fix imports 2016-12-19 22:45:52 -08:00
Aaron L
7ccb973d79 Update readme with project information 2016-12-19 22:25:33 -08:00
Aaron L
97be009b78 Update readme with project information 2016-12-19 22:25:33 -08:00
Aaron L
2009133d45 Merge branch 'cortesi/modattrs' 2016-12-19 21:59:22 -08:00
Aaron L
d07283bc87 Merge branch 'cortesi/modattrs' 2016-12-19 21:59:22 -08:00
Aldo Cortesi
efa77f5445 Authboss.moduleAttributes -> Authboss.ModuleAttributes 2016-12-20 08:34:19 +13:00
Aldo Cortesi
23c0463916 Authboss.moduleAttributes -> Authboss.ModuleAttributes 2016-12-20 08:34:19 +13:00