Results 1 to 6 of 6

Thread: Oauth signature calculation when used with LB SSL offloading

  1. #1
    Join Date
    Jun 2011
    Posts
    2

    Default Oauth signature calculation when used with LB SSL offloading

    My application sits behind a load balancer which does SSL offloading.

    Therefore, the client application hits https://my-server.com/application which goes to the load balancer, terminates the SSL and proxies the request to the actual server http://my-server.com/application. This ends up failing the signature check because the schema has changed.

    Is there a way in oauth to handle this scenario? Doing some googling I have come across a non-standard HTTP header X-Forwarded-Proto which can be set to the forwarded protocol. Is it valid to use this as the schema when calculating the signature as opposed to what is returned from getRequestURL (in the Java world)?

    Thanks

  2. #2
    Join Date
    Oct 2009
    Location
    Milano
    Posts
    49

    Default

    Hi, I'm facing the same issue.

    Did you manage to fix this?
    2+2=5

  3. #3
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    I think you may need to inject an OAuthProviderSupport into your <provider support-ref=".."/>. There you can customize the URL calculation, either by providing a fixed baseUrl, or by implementing your own logic based on a custom header. Is that it?

  4. #4
    Join Date
    Oct 2009
    Location
    Milano
    Posts
    49

    Default

    i'm trying to do it this way: http://bit.ly/MtPbif

    but after having added my ChannelDecisionManagerPostProcessor it starts complaining that my securityContextRepository is null

    ps: i'm working on sparklr2 example.
    2+2=5

  5. #5
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    That's a different problem (OP was about OAuth 1.0 signature calculations, yours is about OAuth2). Why not start a new thread?

  6. #6
    Join Date
    Oct 2009
    Location
    Milano
    Posts
    49

    Default

    sorry about that
    2+2=5

Posting Permissions

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