Announcement Announcement Module
No announcement yet.
Does Spring-Oauth2 support multiply servers? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does Spring-Oauth2 support multiply servers?

    Does Spring-Oauth2 support multiply servers?

    We have more several servers to publish our Oauth2 provider web application, and we have already found some problems on it:

    1, In memory Authorization code store service is broken, We have to switch to JDBC way, I think it can work then.
    2, If we use round-robin load balance to forward HTTP request on our servers, users always get the wrong pages after they login, then don't get "Authorize" page but another index.jsp or else. How can we deal with it?

    Any answer will be appreciated.


  • #2
    There are plemty of answers to these questions on the forum if you search backwards a bit. JdbcTokenStore is the only solution provided out of the box, but it's certainly not the only way to distribute the encoding and decoding of tokens. If you need multiple auth servers you will need an AuthorizationCodeServices implementation with shared storage or similar (again JDBC is provided out of the box), and either sticky sessions or a custom implementation of SessionAttributeStore.


    • #3

      JDBC Code service and token store can be a possible solution, and also I will search for more answers.