Why is using jhipster oauth2 stateful, and how to

2019-08-20 09:42发布

问题:

Using Jhipster (monolith, oauth2, with registry) forces our users to log-in every once in a while.

After searching a bit, we assume that it's because we have multiple instances of our monolith and sometimes the users get routed to different instances.

So I have 2 questions:

  1. Why does Jhipster implement oauth2 in a stateful way?
  2. How should we handle this, assuming we're staying with the current configuration?