1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-08 04:03:53 +02:00
Commit Graph

198 Commits

Author SHA1 Message Date
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
Aaron
9ff0b65629 Rewrite module loading to be per-instance 2015-03-31 15:08:43 -07:00
Aaron
d6c0eb8684 Remove state from config, add to authboss type. 2015-03-31 12:36:40 -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
bd0d3c5f68 Add a default logger.
- Having the default logger set to nil was troublesome because some errors
  are hard to detect without a logger. This falls under "sane default"
  changes and so should be made.
2015-03-30 09:55:37 -07:00
Aaron L
d8051d9aa5 Update README.md 2015-03-30 09:24:12 -07:00
Aaron L
a8628495c3 Update README.md 2015-03-28 09:32:39 -07:00
Aaron L
7b51faf7ed Update README.md 2015-03-28 09:27:16 -07:00
Aaron L
d26aa23a3a Update README.md 2015-03-28 09:26:28 -07:00
Kris Runzer
5bdcddd9da Rename internal/render to internal/response 2015-03-28 09:08:05 -07:00
Kris Runzer
db1eb3a9a8 Add redir override. All redirects now occur through render.Redirect 2015-03-28 08:53:32 -07:00
Aaron
c956141007 Clarify some documentation. 2015-03-27 09:44:20 -07:00
Aaron
1f6bb00137 Update Readme. 2015-03-27 09:38:23 -07:00