私は、同じSSO認証を実装するWebサーバーにサーバー側のHTTP要求を行う機会に興味があります。SSO OAuth2Authenticationセッションとサーバー側HTTP要求
だから私は持っていると仮定します。hello.orgとhey.com同じSSOサーバをポイントします。私は私が得hello.orgにログインした後 は:
OAuth2Authentication authenticationObject = (OAuth2Authentication) principal;
今、私はにhello.orgサーバーからのHTTPリクエストを発射したいhey.com
Request.Get("hey.com/get_data").execute().returnContent().asString();
しかし、私ヒット認証エラーコード401
OAuthオブジェクトからすべての必要なトークンを取得し、私の要求をau Thenticated?