v2.0.0
✳️ Added
-
Property Validation
Additional properties defined in the
User
JSON can be validated onPOST
andPUT
. Simply define theproperties
in the configuration, and they will be automatically validated. To disable validation, do not includeproperties
in the configuration.Example:
properties: - name: myFirstProperty type: string - name: mySecondProperty type: list
Supported property types are:
string
,integer
,double
,boolean
,list
, andmap
. -
Optionally Disable Email Verification
You can now disable email verification if you don't want the endpoints to be active. Simply set the
enabled
option tofalse
:email: enabled: false
-
More Email Configuration Options
Use your own HTML pages or email message bodies, or use a custom subject line! Default ones are provided, but you can specify your own:
email: messageOptions: subject: Welcome to My App bodyHtmlFilePath: /path/to/verification.html bodyTextFilePath: /path/to/verification.txt urlPlaceholderString: PLACEHOLDER successHtmlFilePath: /path/to/success.html
On each
POST
/verify
request, a verification URL will be generated for the specific user and a String replacement will replace theurlPlaceholderString
with the correct URL before sending the message. The default placeholder string isCODEGEN-URL
. -
Documentation on How to Get Started with HTTPS
✴️ Changed
-
⚠️ PilotUser
has been renamed toUser
-
⚠️ The user object now has an expandable map of properties, so the user JSON is no longer confined to what is defined in the code.Example of new User object:
{ "email" : { "address" : "test@test.com", "verified" : "true", "verificationToken" : "hashToken" }, "password" : "12345", "properties" : { "stringProperty" : "myUserObject", "integerProperty": 1000, "listsWorkToo": ["hello", "world"] } }
This applies to ALL
/user
methods:GET
,POST
,PUT
,DELETE
and ALL/verify
methods:GET
,POST
-
⚠️ All configuration options that used hyphens now are camel-case. For example,table-name
has becometableName
-
⚠️ Theses
configuration object has been renamed toemail
-
⚠️ Thedynamo
configuration object has been renamed todatabase
-
⚠️ The package name for theapi
,application
, andclient
have changed fromcom.sanction.thunder
tocom.sanctionco.thunder
⚛ Fixed
POST
/verify
now correctly checks for a matching user password in the request header before sending the email.
☕ Client
⚠️ PilotUser
renamed toUser
and object definition changed. See theChanged
section above for more information.
➡️ DevOps
- New logo!
- Enforce Javadoc on class definitions
- Switch to Codecov for coverage reports
- A new integration test format, more thorough tests, and integration tests against the Docker image
- Maven release build adds Javadoc, sources, and GPG signatures
Dependency Upgrades
aws-java-sdk
1.11.311 -> 1.11.385checkstyle
8.9 -> 8.12dagger
2.15 -> 2.17dropwizard
1.3.1 -> 1.3.5jackson-api
2.9.5 -> 2.9.6junit
4.12 -> 5.2.0maven-compiler-plugin
3.7.0 -> 3.8.0maven-shade-plugin
2.3 -> 3.1.1maven-surefire-plugin
2.21.0 -> 2.22.0mockito
2.18.0 -> 2.21.0thunder-client
0.1.0 -> 0.2.0- Node.js (DevOps) Dependencies:
async
2.6.0 -> 2.6.1aws-sdk
2.238.1 -> 2.291.0eslint
4.19.1 -> 5.3.0