1

I try to use my OAuth provider developed with Jersey behind a apache reverse-proxy

the client uses POST https://api.com/resource/oauth/request-token
my oauth provider receives POST http://api.com/mywebservice/resource/oauth/request-token

the signature cannot be verified so the request fails

have you any idea about resolving this issue?

Julien
  • 401
  • 1
  • 4
  • 9
  • Possible duplicate of [Oauth provider behind reverse proxy](http://stackoverflow.com/questions/14142278/oauth-provider-behind-reverse-proxy) – Tristan Tao Aug 25 '16 at 01:27

1 Answers1

2

You can try creating a ContainerRequestFilter that gets executed before the OAuthServerFilter. The ContainerRequestFilter can re-set the URI on the request (by calling setUris() method) to what it should be to pass the signature verification (if that info can be made available to you somehow - e.g. in some custom header).

Martin Matula
  • 7,969
  • 1
  • 31
  • 35