Aaron L
8a87d0de63
Separate the request from context.
2015-08-02 11:51:35 -07:00
Aaron
5119d414c1
Make bind/unbind a lot more generic.
...
- This allows for the user struct to contain just about anything. But it
will still produce errors when there is a type mismatch (which I believe
was the entire point of the type-specific code).
- Leave sql.Scanner/driver.Valuer as special cases to allow control over
serialization at some level.
- Fix #69
2015-08-02 09:31:21 -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 L
3d905f001f
Go vet fixes.
2015-03-16 14:51:44 -07:00
Aaron L
99d0af8b72
Destroy a list of go lint errors.
2015-03-16 14:42:45 -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
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
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
e369d626a8
Increase test coverage in authboss.
2015-02-24 13:03:06 -08:00
Kris Runzer
bab1475b72
Change config to be global. Updated most modules and tests.
2015-02-15 20:07:36 -08:00
Aaron
d86fac49ac
Add confirm module beginnings.
...
- Fix some inconsistencies in expire and lock.
- Add bool type to storer.
2015-02-07 04:27:12 -08:00
Aaron
efc834006a
Add proper database/go casing.
2015-01-18 14:35:51 -08:00
Aaron
89875f7b68
Clean up mocks.
...
- Add CurrentUser method.
2015-01-17 02:42:42 -08:00
Aaron
670c6f3b9f
Add more to context.
...
- Add test coverage to various modules.
2015-01-14 19:18:45 -08:00
Aaron
d9bcf5326c
Lowercase all identifiers used with storer.
2015-01-14 17:48:14 -08:00
Aaron
f51bce96c9
Just store the type itself. Go has reflection.
2015-01-14 16:07:15 -08:00
Aaron
11a0cabe5f
Add unbind to pull data from a struct.
2015-01-07 11:39:12 -08:00
Aaron
92b3172a3e
Add a lot of module related stuff.
...
- Leave a failing test to make hate not love.
2015-01-05 00:18:41 -08:00
Aaron L
8ac986b99b
Add some more infrastructure.
...
- Add module system.
- Add storer interface.
2015-01-03 12:03:57 -08:00