Results 1 to 3 of 3

Thread: Does Spring-Oauth2 support multiply servers?

  1. #1
    Join Date
    Oct 2012
    Posts
    5

    Default 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.

    Regards.

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    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. #3
    Join Date
    Oct 2012
    Posts
    5

    Default

    Thnx.

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •