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
Aaron L
f3eba05359
Fix imports
2016-12-19 22:45:52 -08:00
Aaron L
97be009b78
Update readme with project information
2016-12-19 22:25:33 -08:00
Aaron L
d07283bc87
Merge branch 'cortesi/modattrs'
2016-12-19 21:59:22 -08:00
Aldo Cortesi
23c0463916
Authboss.moduleAttributes -> Authboss.ModuleAttributes
2016-12-20 08:34:19 +13:00
Aaron L
ae2c358312
Merge pull request #106 from amygit/master
...
Fix test for ctx.User.AttemptNumber fix
2016-12-02 07:10:17 -08:00
amygit
31796bea42
Merge remote-tracking branch 'upstream/master'
2016-11-30 11:10:55 -08:00
amygit
67cb40ea6f
Fix test for ctx.User.AttemptNumber fix
2016-11-30 10:32:57 -08:00
Aaron L
aff3320962
Merge pull request #104 from golliher/master
...
Added required handler for ListenAndServe
2016-11-29 22:17:57 -08:00
Aaron L
c9a9bcb3cc
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
c76295c0b4
Fix bash syntax error
2016-11-29 22:06:34 -08:00
Aaron L
32ed401d14
Circle no longer does code coverage without token
2016-11-29 21:43:04 -08:00
Darrell Golliher
9a27987700
Added space to comply with gofrm style guildlines
2016-11-28 21:36:29 -05:00
Darrell Golliher
b6b20653d3
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
75a82c4a51
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
4835af15f9
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
7157885af5
fix documented import path for Auth module
2016-10-09 20:42:46 -07:00
Aaron L
958f5f1fe1
Fix circle test running
2016-08-07 23:53:53 -07:00
Aaron L
83c72ea507
Add coverage and junit reporting for authboss
2016-07-30 15:16:45 -07:00
Aaron L
414619c872
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
0eb56c1de5
PWD in Circle file
2016-07-30 08:05:15 -07:00
Aaron L
c808c67e07
Add circle file
2016-07-30 07:08:57 -07:00
Aaron L
3b11e039dc
Merge pull request #88 from yargevad/ISSUE-87
...
require `SessionStoreMaker` and `CookieStoreMaker` at startup
2016-06-25 13:45:04 -07:00
Dave Gray
c2e185a9b8
require SessionStoreMaker
and CookieStoreMaker
at startup instead of panic
ing on the first hit
2016-06-21 23:36:00 -07:00
Aaron L
586415a7db
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
3fc0ed564b
no DisableGoroutines (just check for -Maker); no ModuleNames; test fix
2016-05-09 13:20:10 -04:00
Ryan Lester
ec9c25e64f
Merge remote-tracking branch 'upstream/master'
2016-05-09 12:14:18 -04:00
Aaron L
4ee00c6dc6
Fix go vet errors
2016-05-08 12:37:02 -07:00
Ryan Lester
8ed6deac08
final App-Engine-related fixes
2016-05-07 02:12:20 -04:00
Ryan Lester
2357e0679d
more -Maker properties on Config
2016-05-03 21:14:24 -04:00
Aaron L
45dedd0c2d
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
orian
9cff57b284
add Facebook provider for oauth2
2016-02-23 21:24:20 -08:00
Kris Runzer
b519034670
Add query param to Register to allow for setting of primaryID
...
- Usefull when linking user to register page from email and you don't want
them to change their email
2015-10-28 14:20:22 -07:00
Aaron L
b09e4831b6
Fix an issue where user is db fetched twice
...
- Fix #79
- Rename event EventGet to EventGetUser
- Remove double DB fetch
- Add new event callpoint: After(EventGetUser) for things that need to
check that the user is ABLE to be gotten after it's fetched from the
DB. That is before returning to the web app, ensure that the user is
valid from a confirmation/lock etc point of view.
- Add test to make sure all the events are firing in CurrentUser()
2015-09-21 20:53:51 -07:00
Aaron L
124b1aec46
Remove bad cookies in router
...
- When authboss routes are accessed it goes through a check to see if
they're logged in and if they need to actually visit this route. If
the user was not found (despite having a session cookie) it would 500,
and now it simply removes the bad cookie.
- Fix #75
2015-08-30 07:26:52 -07:00
Aaron L
c4eb529fd9
Merge branch 'context-request-separation'
2015-08-30 06:41:19 -07:00
Aaron
0ae4765ee3
Group constants.
2015-08-03 15:25:39 -07:00
Aaron
16200f8896
Merge remote-tracking branch 'orian/add-facebook-provider'
2015-08-03 15:22:34 -07:00
orian
280129a781
Fix names
2015-08-03 22:51:06 +02:00
orian
b63d1351f4
Merge branch 'master' into add-facebook-provider
...
Conflicts:
oauth2/oauth2_test.go
2015-08-03 22:39:57 +02:00
orian
f19128a804
add Facebook provider for oauth2
2015-08-03 22:35:43 +02:00
Aaron
325d9002f6
Remove redundant struct.
...
- Fix #71
2015-08-03 09:06:38 -07: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
8691f3bca9
register: Context+Request separation ripple
2015-08-02 13:02:31 -07:00
Aaron L
15bbe59c7a
Remove validation from context.
...
- This is unnecessary now that request and context are more split up.
2015-08-02 13:00:16 -07:00