In part-1 , we implemented mpJwt and secured a resource with help of the claim scope present in the JWT token received in the request. In this post, we will make use of other specifications, like mpHealth, mpOpenAPI, and mpMetrics, you can either checkout the source code from branch post-1 and code along or can refer to the final code in branch post-2. mpHealth The specification of the used version can be found here , this feature provides a way to check the overall health of an application. The first check is the Liveness check which conforms if the application is running or not and the second check Readiness confirms if the application is ready to serve all requests. The difference here is the second check should provide the confirmation only if all dependencies are available and the application in a state to perform the expected functions. It is also possible to combine both checks into one. AS per the documentation, the Eclipse MicroProfile Health Check specification defines a sing...
Intended audience: Developers Read time : 30 min Requirement : A reusable component required to record and retrieve consents for minors In nutshell, we required an independently deployable service to record and query consent for a minor to or from a DB which would later be consumed in registration and other app access requests. Service also requires to implement authentication and RBAC security (as per configured scope) with JWT authentication as all other integrations are secured and implemented SSO using OpenID connect protocol. In Dec 2020, we got this requirement, fortunately, we had the option to choose from available frameworks. Following parameters were set to pick the most suited one The size and scope of the application The nature of complexity in the application Objective achievement with shippable dependencies vs provided by the runtime Testability Development effort Then the requirement at hand was evaluated based on these parameters, and we came up with below...