Dave Gray
8996a36b05
require SessionStoreMaker
and CookieStoreMaker
at startup instead of panic
ing 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
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
Aaron L
b8a8d772f7
recover: Context+Request separation ripple
...
- Modify the request mock to create query strings in the event that
we're not using a POST request.
2015-08-02 12:54:53 -07:00
Aaron L
fb5c7ca377
internal/response: Context-Request separation
2015-08-02 12:00:53 -07:00
Aaron L
905e9bfcb4
confirm: Context-Request separation ripple
2015-08-02 11:55:39 -07:00
Aaron L
c074b79798
auth: Context-Request separation ripple
2015-08-02 11:52:23 -07:00
Aaron L
8a87d0de63
Separate the request from context.
2015-08-02 11:51:35 -07:00
Aaron
2eff32e3c8
Update documentation.
2015-08-02 10:05:31 -07:00
Aaron
4d1236b849
Ensure we call EventAuthFail.
...
- Remove validation of fields that we never
store in the database anyways.
2015-08-02 09:52:30 -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 L
7cbe4216a0
Fix internal server error when wrong usr/pwd
...
- Correct tests to stop actually checking for internal server errors on
wrong username/password. Sometimes tests aren't everything.
- Fix #64
2015-07-01 18:07:26 -07:00
Kris Runzer
a297274469
I need to learn how to git add... add missing tests.
2015-06-04 13:46:42 -07:00
Kris Runzer
7cb729827b
Fix default validators to be inline with default primary ID
2015-06-04 13:34:29 -07:00
Kris Runzer
61a344b75a
Added missing line. Sublime text save ftw.
2015-04-21 08:14:53 -07:00
Kris Runzer
f928282dec
Remove password repopulation on recover complete.
2015-04-21 08:12:41 -07:00
Aaron L
704697472f
Add redirection on pages when logged in.
...
- Stop logged in users from accessing pages like auth/recover etc.
- Ensure that half-authed users are allowed access to auth-like pages.
- Make sure that if users have a remember token, it's processed before
we decide if a user is logged in or not, preventing or granting access
to these pages.
- Fix #58
2015-04-10 22:41:59 -07:00
Kris Runzer
e7eda3c62e
Further expand register unique primaryID checking.
2015-04-10 19:57:03 -07:00
Aaron L
52c4ce69fa
Use stringer program with go generate.
...
- Fix #60
2015-04-10 19:28:48 -07:00
Kris Runzer
afdff2e51b
Add missing field preservation.
2015-04-10 14:07:15 -07:00
Kris Runzer
9ee7c61bda
Fix registration to bubble duplucate primaryID errors. Fix custom fields from disappearing on error renders.
2015-04-10 14:06:22 -07:00
Kris Runzer
ab0d56f2e2
Fix registration to allow custom field validation
2015-04-10 13:38:51 -07:00
Kris Runzer
24b9501709
Add 'showRegister' flag to auth module.
2015-04-10 12:04:26 -07:00
Kris Runzer
52c2f83e17
Add missing newline on auth log message.
2015-04-03 11:55:03 -07:00
Kris Runzer
d60dd6ddba
Remove cloaking of errors on auth credentail validation. Errors properly log to LogWriter.
2015-04-03 11:50:07 -07:00
Aaron L
c1d6843a27
Update README.md
2015-04-03 08:38:33 -07:00
Aaron L
43289ebcaf
Create CHANGELOG.md
2015-04-01 13:35:54 -07:00
Aaron L
077f0bf1a5
Update README.md
2015-04-01 13:31:44 -07:00
Aaron
c98ef93e06
Fix modules after refactor.
2015-04-01 13:08:08 -07:00