1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-10 04:17:59 +02:00
Commit Graph

250 Commits

Author SHA1 Message Date
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
2b5c85ee16 Import path fixes 2017-07-30 19:42:05 -07:00
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
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
7ccb973d79 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
Aldo Cortesi
efa77f5445 Authboss.moduleAttributes -> Authboss.ModuleAttributes 2016-12-20 08:34:19 +13:00
Aaron L
35e85950af Merge pull request #106 from amygit/master
Fix test for ctx.User.AttemptNumber fix
2016-12-02 07:10:17 -08:00
amygit
5b3ceceb8c Merge remote-tracking branch 'upstream/master' 2016-11-30 11:10:55 -08:00
amygit
10351c2f11 Fix test for ctx.User.AttemptNumber fix 2016-11-30 10:32:57 -08:00
Aaron L
a6e1ad1070 Merge pull request #104 from golliher/master
Added required handler for ListenAndServe
2016-11-29 22:17:57 -08:00
Aaron L
ad75d0a25a Merge pull request #103 from amygit/master
AttemptNumber should be set to 1 when login fails again after the loc…
2016-11-29 22:11:33 -08:00
Aaron L
34666f0c63 Fix bash syntax error 2016-11-29 22:06:34 -08:00
Aaron L
2ad0b44760 Circle no longer does code coverage without token 2016-11-29 21:43:04 -08:00
Darrell Golliher
795e546534 Added space to comply with gofrm style guildlines 2016-11-28 21:36:29 -05:00
Darrell Golliher
baa27547a7 Added required handler for ListenAndServe
http.ListenAndServe requires two arguments, the second one can be nil,
but must be present.  https://golang.org/pkg/net/http/#ListenAndServe

Omitting it, even in just documention code snippets like ths one,
might confuse people just learning (like myself).
2016-11-27 18:10:19 -05:00
amygit
647aa61090 AttemptNumber should be set to 1 when login fails again after the lock windown is passed 2016-11-18 16:09:22 -08:00
Aaron L
ac25a98c72 Merge pull request #96 from ckeeney/documentation-fix
fix documented import path for Auth module
2016-10-10 22:18:43 -07:00
CJ Keeney
a86808a82b fix documented import path for Auth module 2016-10-09 20:42:46 -07:00
Aaron L
4dcfef3469 Fix circle test running 2016-08-07 23:53:53 -07:00
Aaron L
7a7ca7c5c7 Add coverage and junit reporting for authboss 2016-07-30 15:16:45 -07:00
Aaron L
372a2bf73b Revert "Merge pull request #88 from yargevad/ISSUE-87"
This reverts commit 3b11e039dc, reversing
changes made to 586415a7db.

This merge actually caused the tests to fail. After digging in I decided
that the documentation is good enough as a test on creation of Authboss
is not possible with the current API. And this being only in the
register module was kind of a code smell.
2016-07-30 09:53:45 -07:00
Aaron L
0b68954a4f PWD in Circle file 2016-07-30 08:05:15 -07:00
Aaron L
68fe1406ee Add circle file 2016-07-30 07:08:57 -07:00
Aaron L
2647017499 Merge pull request #88 from yargevad/ISSUE-87
require `SessionStoreMaker` and `CookieStoreMaker` at startup
2016-06-25 13:45:04 -07:00
Dave Gray
8996a36b05 require SessionStoreMaker and CookieStoreMaker at startup instead of panicing on the first hit 2016-06-21 23:36:00 -07:00
Aaron L
3e77b1fd27 Merge pull request #83 from buu700/master
Additional -Maker properties on Config for GAE support
2016-05-09 12:24:05 -07:00
Ryan Lester
96c55ccaaa no DisableGoroutines (just check for -Maker); no ModuleNames; test fix 2016-05-09 13:20:10 -04:00
Ryan Lester
48f0e8a75a Merge remote-tracking branch 'upstream/master' 2016-05-09 12:14:18 -04:00
Aaron L
e76838cc1e Fix go vet errors 2016-05-08 12:37:02 -07:00
Ryan Lester
588c21260c final App-Engine-related fixes 2016-05-07 02:12:20 -04:00
Ryan Lester
8b0f669869 more -Maker properties on Config 2016-05-03 21:14:24 -04:00
Aaron L
38660ece44 Merge pull request #81 from buu700/fix-gae-context
orian: Fix a problem with not getting the correct Context on App Engine
2016-02-23 23:09:38 -08:00
Ryan Lester
8655934e60 run gofmt 2016-02-23 21:28:43 -08:00
orian
231e4b2283 Fix a problem with not getting the correct Context when running on Google App Engine 2016-02-23 21:24:21 -08:00