- Introduction
- Prerequisites
- Dependencies
- Configuration
- Build And Deployment
- Design Details
- Support
- References
- FAQ's
- License
This POC demonstrates authenticating guest users with a JSON Web Token (jwt)
Project Name | Version | Project URL |
---|---|---|
Spring boot starter parent | 2.1.9.RELEASE | Spring Boot Starter Parent |
Software | Version | Comment(s) |
---|---|---|
Database H2 | 1.2.x | H2 In-memory Database |
Message Bus XX | NA | Not Aapplicable |
Environment Variable Name | Type (Env or Secret) | Scope (Build or Runtime) | Responsible Party for value | Purpose | Comment(s) |
---|---|---|---|---|---|
SERVICE_BASE_URL | Env | Build & Runtime | Integration Platform | Scope of this variable changes at run time | |
BUILD_NUMBER | Env | Build & Runtime | Integration Platform | It is pr_pull_number | |
APP_VERSION | Env | Build & Runtime | Application Developer | The app_version comes from the helm chart. | |
GITHUB_TOKEN | Env | Build | Integration Platform | This variable allows downloading npm packages published to the GitHub NPM Registry. | To be renamed to GIT_PACKAGE_MANAGER_TOKEN |
ENABLE_BUILD_DETAILS | Env | Build & Runtime | Application Developer | Control visibility of build and version number in UI application expected value:- true : to show details false : to hide details | Yet to be created. It will come from helm chart. |
Service | Discovery Address |
---|---|
NA | Not Applicable |
Discovery address is the name in the Istio service mesh that is used to access a downstream service
Event | Event Schema | Description |
---|---|---|
NA | Not Applicable | NA |
This section should have critical logging messages that can be used to understand the health of this component or aid in the debugging of the component
Endpoint | Path | Content |
---|---|---|
NA | NA | NA |
Endpoints and the decoder for the current state of the service and any dependent components
cd myapp
mvn clean package
java -jar ./myapp.jar
Not Applicable
Not Applicable
There are multiple unit test cases written to cover the different components of the application. However there is a global application test suite file UnitTests.java that combines all the test cases in a logical manner to create a complete suite. It can be run from command prompt using the following command -
mvn clean test
Currently there are no dependent downstream services
It is a POC, hence there is no Deployment
One of the way to view Health Statistics of your application is by adding Spring Boot Actuator module ,it helps you monitor and manage your Spring Boot application by providing production-ready features like health check-up, auditing, metrics gathering, HTTP tracing etc. Please check references for more information .How to view Health statistics of a Microservice
You can view logs by creating a custom Log File using a FileHandler, so that all the logging information is written to the file.
- Engineering Team3
FAQ's
Name | Link | Comments |
---|---|---|
Spring Security | https://spring.io/projects/spring-security | |
JWT Authentication | https://community.auth0.com/t/jwt-token-for-guest-anonymous-unauthenticated-users/15653 | |
Implementing JWT Authentication on Spring Boot APIs | https://auth0.com/blog/implementing-jwt-authentication-on-spring-boot/ | |
Using Anonymous Sessions for Guest Checkout | https://docs.commercetools.com/tutorial-anonymous-session |