Alireza Ahmadi
ea6cb83297
Fix template does not exists panic
2017-03-13 09:01:18 +03:30
Aaron L
f3eba05359
Fix imports
2016-12-19 22:45:52 -08:00
Aaron L
4ee00c6dc6
Fix go vet errors
2016-05-08 12:37:02 -07:00
Ryan Lester
8655934e60
run gofmt
2016-02-23 21:28:43 -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
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
8a87d0de63
Separate the request from context.
2015-08-02 11:51:35 -07:00
Kris Runzer
f928282dec
Remove password repopulation on recover complete.
2015-04-21 08:12:41 -07:00
Kris Runzer
24b9501709
Add 'showRegister' flag to auth module.
2015-04-10 12:04:26 -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
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
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 L
99d0af8b72
Destroy a list of go lint errors.
2015-03-16 14:42:45 -07:00
Aaron
d7e63bc876
Remove silly key return from RememberStorer
2015-03-15 15:00:37 -07:00
Aaron
0754b965b1
Update config documentation.
...
- Fix #47 : Remove ModuleAttrMeta from Storers. Rename to ModuleAttributes.
- Add some additional deafult values to config.
2015-03-15 08:31:48 -07:00
Aaron L
06edd2e615
Make OAuth2 implementation less shoddy.
...
- Add a new storer specifically for OAuth2 to enable clients to choose
regular database storing OR Oauth2 but not have to have both.
- Stop storing OAuth2 credentials in a combined form inside username.
- Add new events to capture OAuth events just like auth.
- Have pass-through parameters for OAuth init urls, this allows us to
pass additional behavior options (redirects and remember me) as well
as other things that should be present on the page that is redirected
to.
- Context.LoadUser is now OAuth aware.
- Remember's callbacks now include an OAuth check to see if a horribly
packed state variable contains a flag to say that we want to be
remembered.
- Change the OAuth2 Callback to use Attributes instead of that custom
struct to allow people to append whatever attributes they want into
the user that will be saved.
2015-03-13 16:29:58 -07:00
Aaron
082caf88b3
Clean up OAuth and finish tests.
...
- Fix #25
2015-03-13 02:15:58 -07:00
Kris Runzer
2b6954709d
Add simple context to default emails
2015-03-08 17:40:59 -07:00
Kris Runzer
7ff35efe54
Split emails to have seperate HTML and Text layouts.
2015-03-03 11:23:49 -08:00
Kris Runzer
c8e2058440
Fix flash message clearing
...
- Fix token emailing bug with confirm (l2base64)
2015-02-26 22:01:53 -08:00
Kris Runzer
bfa4c38da5
Fix template name and bin data
2015-02-26 20:47:33 -08:00
Kris Runzer
57797a703b
Proper naming of all templates. Rebuild bindata.
2015-02-26 12:52:45 -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
e6d3558704
Fix confirm email templates.
2015-02-25 23:39:55 -08:00
Aaron
bf0a8b098c
Add mountedpath so forms work on mounted paths.
...
- Refactor naming for config "redirect" variables.
- Removed flash messages from config, Fix #19
2015-02-25 23:05:14 -08:00
Aaron
8b1007f7dd
Fix broken redirect tests.
2015-02-24 23:45:55 -08:00
Kris Runzer
0928720a3f
Add new auth testing and tempaltes
2015-02-24 15:02:11 -08:00
Aaron
f716720759
Fix broken render test.
2015-02-24 14:52:22 -08:00
Kris Runzer
199d0ec0b3
Rework recover
2015-02-23 16:01:56 -08:00
Aaron
ec5da7694e
Finish register module.
2015-02-23 02:03:39 -08:00
Aaron
6f074543f4
Start the register module.
2015-02-23 02:03:29 -08:00
Aaron
bab0da8575
Fix lock module.
2015-02-22 12:43:28 -08:00
Kris Runzer
80e40e7817
Add RenderEmail to internal/render
2015-02-21 11:22:56 -08:00
Kris Runzer
1198466d76
Reworking auth
2015-02-21 11:22:55 -08:00
Aaron
5f96e8dec8
Make an GetErr version of the ClientStorer.
2015-02-20 22:02:55 -08:00
Kris Runzer
06c5e686a1
Merge internal/views into internal/render
...
- Remove internal/view
- Remove internal/flashutil
2015-02-20 14:21:24 -08:00
Aaron
8b87d9c826
Add many tests.
...
- Finish up render package, rename some things.
- Add authboss view data/error tests.
2015-02-20 05:08:11 -08:00
Aaron
585f842a5c
Get authboss tests passing.
2015-02-20 04:03:22 -08:00
Aaron
6a4feaa2ea
Add authboss error types.
...
- Add error handling at the routing level so that all errors can bubble
up and be handled and logged there in one place.
- Add Err variants for ClientStorer and Attributes to facilitate
generating errors for missing type-failing arguments.
- Add better control flow and error handling for callbacks.
2015-02-19 14:46:38 -08:00
Aaron
dee6a42a68
Finish tests for confirm.
...
- Rename UserXXX to StoreXXX in confirm/authboss.
2015-02-16 13:27:29 -08:00
Kris Runzer
f7e1ff2c8c
Add XSRF to all forms.
2015-02-15 21:39:18 -08:00
Kris Runzer
d0dd19689b
Fix confirm module to use global config
2015-02-15 20:35:32 -08:00
Aaron
127ef8ea17
Fix confirm's initial test.
...
- Add e-mail templates for confirm.
2015-02-15 20:21:39 -08:00
Aaron
a91a7ef162
Finish confirm module (except tests).
2015-02-15 20:21:38 -08:00
Kris Runzer
1aa0da808c
Move duplicate testing mocks to internal/mocks
...
- Add force err ability to internal/mocks
2015-02-11 16:38:09 -08:00
Kris Runzer
dbf726b1e1
Finish recover module reworking
2015-02-10 23:03:02 -08:00
Kris Runzer
57c9282cbd
First part of recover module reworking
2015-02-08 23:12:29 -08:00