-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENG: Add support JWT to authorise user inside the System #12
Comments
JWT reference documentations is jwt.io |
JWT support signing and encryption. No sign. |
JWT spec suppose recommended fields of a payload: Engine enough accept iss and exp to distinguish source of JWT (API or Postman) and expiration date. |
In Spring Boot the JWT could be implement like part of Spring Security starter (https://auth0.com/blog/securing-spring-boot-with-jwts/) but there is no build-in implementation of JWT. Instead, use community developed modules integrated with Spring Security. |
There is no way to exclude signing process of JWT. |
Engine service (ENG) should support authorisation over JWT mechanism (RFC-7519).
A JWT token should include at least clientID to distiguish client's scope while ShoppingCart processing in rules engine processor. Also JWT token will have clientName attribute.
For current state of the project clientID1 and clientID2 stubs are available.
Make API service to send JWT to ENG service.
Use HS512 (HMAC using SHA-512) algorithm for JWT sign.
It should decline non-JWT requests.
It should decline requests having unknown clientID.
Update ENG Postman collections to use JWT auth.
The text was updated successfully, but these errors were encountered: