Skip to content

Releases: networknt/light-4j

0.1.8

11 Oct 02:16
Compare
Choose a tag to compare

0.1.8 - 2016-10-10

Added

  • Add new Status code into status.json for OAuth2 server
  • Add docs folder for project documentation

Changed

  • Fix a bug in client to prevent calling oauth2 server multiple times if in renew window.
  • Add socket timeout for client
  • update client.json in test resource to simulate different errors.

0.1.7

05 Oct 23:14
Compare
Choose a tag to compare

0.1.7 - 2016-10-05

Added

  • Introduce MiddlewareHandler interface so that user can plug in more middleware or switch middleware

Changed

  • Fixed info test case to clear the injected config
  • All middleware handlers implement MiddlewareHandler interface so that they are loaded from SPI
  • Middleware handlers will be enabled by checking isEnable()
  • Update validator test case to remove oauth2 dependency
  • Fix the NPE issue if swagger specification does not have security defined
  • SwaggerHandler will only be enabled if swagger.json exists in config
  • Fix the token helper to get token from OAuth2 server

0.1.6

02 Oct 19:04
Compare
Choose a tag to compare

0.1.6 - 2016-10-02

Added

  • Add header parameter validation against swagger specification

Changed

  • Refactor validator to fail fast while error occurs
  • All validator returns Status object instead

0.1.5

02 Oct 00:02
Compare
Choose a tag to compare

0.1.5 - 2016-10-01

Added

  • A body parser handler to parse body into String and attached to the exchange
  • A swagger handler to identify operation based on request uri and method and attach to the exchange

Changed

  • Move swagger related classes from utility to swagger module
  • Update security module to leverage swagger handler attachment
  • Update validator module to leverage swagger handler and body handler attachments
  • Server Info handler is not injected in server but is included into swagger specification

0.1.4

30 Sep 00:23
Compare
Choose a tag to compare

0.1.4 - 2016-09-29

Added

  • A generic exception handler for runtime exception, ApiException and uncaught exception

Changed

  • Move checked exceptions to exception module from status

0.1.3

28 Sep 22:38
Compare
Choose a tag to compare

0.1.3 - 2016-09-28

Added

Changed

  • Fix a NPE in request validator if query parameter is missing
  • Do not validate query parameter if there is none.
  • Handle the case that security defintion is empty.

0.1.2

28 Sep 00:58
Compare
Choose a tag to compare

Added

  • Jwt token scope verification based on swagger spec in security
  • Status module to standardize error response
  • Config can be loaded from classpath directly so that test case can inject different combination of configs.

Changed

  • Update the jwt.json and secuirty.json to support multiple certificates and kid to pick up the right certificate
    for jwt verification. Also, expired token will throw ExpiredJwtException now.
  • Move request uri matching and swagger.json to utility
  • Move exceptions to status from utility
  • Instead of using Jackson ObjectMapper to serialize Status object, using toString now. 10 times faster

0.1.1

19 Sep 00:29
Compare
Choose a tag to compare

In this release, the following modules are added:

  • client - wrapper of apache HttpClient and HttpAsyncClient. support automatically cache and renew client credentials jwt token
  • validator - validate request based on the swagger.json for uri parameters, query parameters and body which is based on json-schema-validator
  • audit - dump most important info about request and response into audit.log in JSON format. Also, there is a full audit handler to dump everything regarding to request and response.
  • info - a handler that injects an endpoint /server/info that can out all plugged in component on the server and configuration of each component.
  • mask - used to mask sensitive info before logging to audit.log or server.log
  • swagger-codegen - a generator that generates the routing handlers and running API application with swagger spec.

Modules released in previous release:

  • server - a framework on top of undertow http core that support plugins to performance different middleware handling.
  • security - oauth2 jwt token verification and mock token generation. Also, there is an testing OAuth2 server released here
  • utility - utility classes that are shared between modules.