Open pgrabowski1 opened 2 years ago
The logout can also be replicated when performing these steps:
GET http://localhost:7419/gateway/user/user-1/v3/api-docs
.user
is a name of an example microservice
user-1
is an instance of the mentioned microservice
After reloading the API tab with F5 key I'm transferred to the http://localhost:7419/forbidden
page.
If I go to other tabs, then HTTP 401 is returned by GET http://localhost:7419/management/gateway/routes
and pressing F5 key also redirects me to logout page.
It looks that on the page Instances there is some action which causes logout
Issue is related to reactive application which invalidates cookie SESSION - we have seperate gateway which is reactive. To fix issue we disabled request cache in spring security - https://github.com/spring-projects/spring-security/issues/6552
Maybe it's worth to have such fix for reactive applications generated by JHipster.
Overview of the issue
I'm using JHipster Control Center. I can log in successfully and switch between tabs, i. e. Metrics, Caches. When I try to refresh the page (F5 key), I get logged out and I'm redirected to
http://localhost:7419/forbidden
.In the browser developer tools there is an HTTP GET request for
http://localhost:7419/api/account
which returns HTTP 401.Motivation for or Use Case
Reproduce the error
JHipster Version(s)
JHipster Registry: 7.1.0, JHipster Control Center 0.5.0, gateway - JHipster dependencies 7.3.0
gateway configuration
`.yo-rc.json` file for gateway
JHipster Registry configuration
.yo-rc.json file for JHipster Registry
JHipster Control Center configuration
.yo-rc.json file for JHipster Control Center
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directorynone
Environment and Tools
openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment 18.9 (build 11.0.11+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9, mixed mode)
git version 2.25.1
node: v14.17.6
npm: 6.14.15
Docker version 20.10.17, build 100c701
docker-compose version 1.29.2, build 5becea4c
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryI'm not using additional entities from JDL files.
Browsers and Operating System
OS: Ubuntu 20.04.3 LTS
browser: Firefox