機械翻訳について

OAuth 1.0 1-Legged認証

OAuth 1.0aで保護されたAPIの呼出しをサポートするには、OAUTH_ONE_TOKEN_BASEDで管理されるセキュリティ・ポリシーを使用します。 接続定義に必要なセキュリティ・ポリシーをカスタマイズできます。

概要

OAuth 1.0a (One Legged)を使用すると、クライアントは認証済HTTPリクエストを作成し、資格証明を使用して保護されたリソースにアクセスできます。

このメソッドには、リクエストごとに2つの資格証明セットが含まれます。 1つの資格証明セットがクライアントを識別し、もう1つのセットがリソース所有者を識別します。 クライアントがリソース所有者のかわりに認証済リクエストを行う前に、クライアントはリソース所有者によって認可されたトークンを取得する必要があります。

OAuth 1.0 One-Legged認証ポリシーをドキュメントに追加するには、使用可能な認証スキーム・テンプレートを使用します。 「新規接続定義の実装」を参照してください。

ノート:

デフォルトでは、このセキュリティ・ポリシーにより、すべてのフィールドが統合開発者にOracle Integrationで公開されます。 ただし、固定値を持つフィールドを非表示にすることもできます。

セキュリティ・プロパティ

このセキュリティ・ポリシーを使用する接続定義は、securityPropertiesセクションで次のプロパティを定義します。 「接続プロパティおよびサンプル・コード」を参照してください。

name, displayName, shortDescription列およびdescription列の値は、アダプタ定義ドキュメントにセキュリティ・ポリシーを挿入したときに表示されるデフォルト値を示します。 これらの値は、必要に応じて更新できます。

name displayName shortDescription description データ型 必須

oauth_consumer_key

Consumer Key

Registered consumer key.

Used to identify the client that is making the request.

String

はい

oauth_consumer_secret

Consumer Secret

Registered consumer Secret.

Used to authorize the client that is making the request.

パスワード

はい

oauth_token

Token

Registered token

Used to access protected resource.

String

はい

oauth_token_secret

Token Secret

Token secret provided by server.

Used for generating signature for the request.

パスワード

はい

realm

Realm

Account identifier.

Used for identifying the account.

String

いいえ

サンプル・コード: OAuth 1.0a (1 Legged)

次のサンプル・コードは、OAuth 1.0A One Legged認証セキュリティ・ポリシーのデフォルト構成を示しています:

  {
    "type": "managed",
    "policy": "OAUTH_ONE_TOKEN_BASED",
    "displayName": "OAuth 1.0 One Legged Authentication",
    "scope": "ACTION",
    "securityProperties": [
      {
        "name": "oauth_consumer_key",
        "displayName": "Consumer Key",
        "description": "Used to identify the client that is making the request.",
        "shortDescription": "Registered consumer key.",
        "hidden": false,
        "required": true
      },
      {
        "name": "oauth_consumer_secret",
        "displayName": "Consumer Secret",
        "description": "Used to authorize the client that is making the request.",
        "shortDescription": "Registered consumer Secret.",
        "hidden": false,
        "required": true
      },
      {
        "name": "oauth_token",
        "displayName": "Token",
        "description": "Used to access protected resource.",
        "shortDescription": "Registered token.",
        "hidden": false,
        "required": true
      },
      {
        "name": "oauth_token_secret",
        "displayName": "Token Secret",
        "description": "Used for generating signature for the request.",
        "shortDescription": "Token secret provided by server.",
        "hidden": false,
        "required": true
      },
      {
        "name": "realm",
        "displayName": "Realm",
        "description": "Used for identifying the account.",
        "shortDescription": "Account identifier.",
        "hidden": false,
        "required": false
      }
    ]
  }
]