You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In a microservices architecture it is possible that some services are written in Java (JHipster) while others in NodeJs (NHipster), it would be advisable to have a compatible JWT Token.
At the moment this does not happen, the token expected by NHipster is with HS256 encoding, even by changing this encoding to the token is not compatible as it differs in the authorities attribute name.
To Reproduce
Steps to reproduce the behavior:
Create Gateway with Jhipster Blueprint
Create Microservice Application using NHipster blue print
Authenticate with Gateway
Use Generated JWT calling (Microservice Application using NHipster) protected api
You can change the payload interface, changing username in sub, and authorities array in an auth string.
Please attention because you have to change also the AuthService . So do some trials in your microservice, maybe replacing the authorities array in string could affect the authorization pattern.
You can do these changes on your microservice and after adding to the templates.
Describe the bug
In a microservices architecture it is possible that some services are written in Java (JHipster) while others in NodeJs (NHipster), it would be advisable to have a compatible JWT Token.
At the moment this does not happen, the token expected by NHipster is with HS256 encoding, even by changing this encoding to the token is not compatible as it differs in the authorities attribute name.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Authentication/Authorizazion success
Screenshots
Desktop (please complete the following information):
NHipster configuration
The text was updated successfully, but these errors were encountered: