generator-jhipster: "401 Unauthorized" error in every call between gateway and microservice generated with JHipster5 and Okta integration enabled

Overview of the issue

After updating JHipster, it seems that you can no longer correctly call the connected microservice APIs.

Reproduce the error

With JHipster 5 create a Gateway with Okta integration and Angular 6 After that create a microservice. Connect both of them to a standard JHipster registry.

Tring to make a get to the microservice from swagger interface in the gateway return:

{ “type”: “http://www.jhipster.tech/problem/problem-with-message”, “title”: “Unauthorized”, “status”: 401, “detail”: “Full authentication is required to access this resource”, “path”: “/api/reservations/analytics”, “message”: “error.http.401” }

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 36 (26 by maintainers)

Most upvoted comments

And as we have no entities here, how am I supposed to test anything??? I’ll just test with Swagger, but people please stop complaining and send correct bug reports instead. And please remember we do this on our free time - this is currently my lunch hour, I’d much rather have a coffee with my colleagues then spend time trying to understand what you might have done.

I also meet this issue due to the base64-secret

change the config file in gateway and microservice, make sure security.authentication.jwt.base64-secret is equal.

Could you put a more descriptive title?