0

クライアントへのアクセスを提供するために二足の oauth プロトコルを使用する API (jetty インスタンスで実行) があります。API に接続するための単純な Java クライアント (oauth-signpost を使用) を作成しましたが、接続は成功しています。

API を apache http サーバーの背後に配置したいと考えています。apache http サーバーは、リクエストを api に転送するように構成されています。

以下の作品:

(oauth なし) クライアント ---> Apache HTTP サーバー --> Jetty

(oauth あり) クライアント ---> Jetty

以下は機能しません。

(oauth あり) クライアント ---> Apache HTTP サーバー ---> Jetty

次のエラー メッセージが表示されます

「署名方式 HMAC-SHA1 の署名が無効です」

この問題に直面した人はいますか?ホスト名とポートなしでリクエストに署名することは可能ですか?

ありがとうございました。

4

1 に答える 1

0

I had a similar problem. The problem I found was that the OAuth signature and the OAuth header block need to have the Jetty URL, not the Apache URL.

I had to modify my code to pass along two URLs. The URL I was sending the request to (Apache) and the URL of the resource on the final system (Jetty URL).

于 2011-08-16T16:51:08.937 に答える