1.5.16 (2018-07-05)
Implemented enhancements:
Closed issues:
- move HandlerProvider interface to handler package from server #236
- separate de-reference middleware handler to its own module #233
- add error status for token dereference in light-oauth2 token service #230
- add an error status code for light-oauth2 client registration #229
- log the class, method, file and line number for status #228
- move the basic authentication middleware handler from light-rest-4j #226
- enhance client module to add de-reference token in OauthHelper #225
- Add a middleware handler to de-reference opaque access token to JWT #224
- log error if config file cannot be found in all possible locations #223
Merged pull requests:
- Feat/path middleware handler #227 (NicholasAzar)
Upgrade Guidelines:
Most changes in this release are backward compatible except the HandlerProvider package name change. If you have an existing project, you need to update two different places.
- In service.yml config file
# HandlerProvider implementation
- com.networknt.server.HandlerProvider:
- com.networknt.oauth.client.PathHandlerProvider
change to
# HandlerProvider implementation
- com.networknt.handler.HandlerProvider:
- com.networknt.oauth.client.PathHandlerProvider
- If you have any classes that import HandlerProvider, you need to change the package name after upgrade to 1.5.16 and your IDE will help you to resolve the issue.
If you have too many projects that need to be updated in a batch, please take a look at regex-replace at https://github.com/networknt/light-config-test/tree/master/light-bot/regex-replace/replace-all
Here is the section in the config file.
- glob: "{**/service.yml,**/service.yml.rocker.raw}"
match: com.networknt.server.HandlerProvider
old_value: "server"
new_value: "handler"
- glob: "{**/*.java}"
match: com.networknt.server.HandlerProvider
old_value: "server"
new_value: "handler"