Skip to content

JWT Token Should bo Compatible with Jhipster (Java Version) #260

@pietromarrone

Description

@pietromarrone

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:

  1. Create Gateway with Jhipster Blueprint
  2. Create Microservice Application using NHipster blue print
  3. Authenticate with Gateway
  4. Use Generated JWT calling (Microservice Application using NHipster) protected api

Expected behavior
Authentication/Authorizazion success

Screenshots

  • JWT by NHipster
    JWT_NHipster
  • JWT Token by JHipster
    JWT_JHipster

Desktop (please complete the following information):

  • OS: Indepentent
  • Browser Indepentent
  • Version NHipster 2.0.0

NHipster configuration

  • Version NHipster 2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions