This version adds support for SMTP clients (MSA) like sendmail, nullmailer and others. Added support for a custom mail template to override the default subject and body. Also added a header signature for downstream verification of the "Multipass-Handle" header; containing the handle of the identified user.
[0.4.0] - 2016-10-20
Added
- Add support for custom mail template
- Add functional options
- Add CSRF protection to basepath requests
- Add support for SMTP clients (MSA)
- Add func sendmail and runMSA to support SMTP clients
- Add func PrivateKeyFromEnvironment to replace pemDecodePrivateKey
- Add missing license headers
- Add header signature
- Add go vet command to Travic CI
- Add Travis CI configuration
- Support Caddy's CaddyFile server type association
- Add support for wildcard user handles
- Add example to use multipass.AuthHandler and email.UserService
- Extend UserService.Authorized method to accept Request.Method
Changed
- Refactor TestSendmail cleanup ineffectual assignments
- Rename instances of next URL to "next" for consistency
- Move default UserService setup to parseOptions
- Update key size with const DefaultKeySize
- Delete files which got accidentally comitted in dd41fec
- Update test rename email.UserService.Register to AddHandle
- Update docs rename email.UserService.Register to AddHandle
- Update caddy package to reflect changes in email.UserService
- Rename function multipass.NewMultipass to multipass.New
- Rename fields in email.Option to improve readability
- Remove error result type from loadTemplates() as it always returns nil
Fixed
- Fix TestSendmail allow for unsorted headers
- Fix inaccessable public resources with invalid token
- Fix unset default for the resources parameter
- Fix ResourceHandler returns StatusForibidden without embedded token