Final: OpenID Attribute Exchange 1.0 – Final : 5.2. Fetch Response Format : 俺約/メモ

 

5.2.  Fetch Response Format ("Fetch"応答フォーマット)

The fetch response message supplies the information requested in the fetch request. Each attribute is supplied with the assigned alias prefixed by "openid.ax.value." as the lvalue and the attribute value as the rvalue. Attribute types are also returned in the "openid.ax.type.<alias>" parameters. The supported length for attribute aliases MUST be at least 32 characters.

 ("Fetch"応答メッセージ。各属性は"openid.ax.value"で開始されるアサイン済みエイリアスを左辺値(lvalue)として,属性値を右辺値(rvalue)として与えられる。)

 (エイリアス長は32文字)

With the exception of "openid.ax.mode", all of the following request fields are OPTIONAL, though any attribute value present in a "openid.ax.value.<alias>" parameter MUST have an associated "openid.ax.type.<alias>" parameter.

 (openid.ax.modeは必須。それ以外はオプション。openid.ax.value.<alias> があれば、対応するopenid.ax.value.<alias>が存在しなければいけない)

If a value was not supplied or available from the user, the associated "openid.ax.value.<alias>" field SHOULD NOT be included by the OP in the fetch response. An "openid.ax.count.<alias>" with a value of "0" together with its corresponding "openid.ax.type.<alias>" field MAY be included to explicitly state that no values are provided for an attribute.

 (ユーザーが指定された値を持っていない場合、openid.ax.value.<alias>フィールドを応答に入れないこと。)

 ("openid.ax.count.<alias>"の値が"0"の場合は、"openid.ax.type.<alias>"を含んでもいい。)

Validation of the received data should be performed out of band of attribute exchange by the RP.

openid.ax.mode

REQUIRED. Value: "fetch_response".

openid.ax.type.<alias>

The value of this parameter specifies the type identifier URI for an attribute in the fetch response. The <alias> will further be used to identify the attribute being exchanged.

Attribute aliases MUST NOT contain newline and colon characters, as specified in the Data Formats / Protocol Messages section of [OpenID.authentication‑2.0] (specs@openid.net, “OpenID Authentication 2.0 – Final,” August 2007.); they also MUST NOT contain commas (",") and periods (".").

openid.ax.count.<alias>

The number of values returned for the attribute referred to as <alias>.

openid.ax.value.<alias>

Assigns a value to the attribute referred to as <alias>. This parameter format MUST be used if "openid.ax.count.<alias>" is not sent.

openid.ax.value.<alias>.<number>

Assigns a value to the attribute referred to as <alias>. This parameter format MUST be used if "openid.ax.count.<alias>" is sent and at least one value is provided for the associated attribute.

The <number> uniquely identifies the index of the value, ranging from one to the value specified by "openid.ax.count.<alias>". The number of parameters MUST be equal to the value specified by "openid.ax.count.<alias>". The OP is not required to preserve the order of attribute values among fetch responses.

 (属性がコレクションの場合、<number>をつけて返す。全体の<alias>.<number>の数はcount.<alias>に一致すること。)

 (1から始まってcount.<alias>まで。順列の再現を保障しなくてよい

openid.ax.update_url

Returns the "update_url" parameter specified in the request. If the OpenID Provider receives an "update_url" parameter and it intends to support the attribute update feature, it MUST present the "update_url" parameter and value as part of the fetch response message.

 (リクエストのupdate_urlに了承したことを通知。

A fetch response message may also be sent to the "update_url" specified in Section 5.1 (Fetch Request Format) in response to attribute value updates on the OpenID Provider.

The response to the previous request example, in which the required full name information, and the optional favourite dog information are supplied. Even though three movie names were requested, the OP supplied only two values.

openid.ns.ax=http://openid.net/srv/ax/1.0
openid.ax.mode=fetch_response
openid.ax.type.fname=http://example.com/schema/fullname
openid.ax.type.gender=http://example.com/schema/gender
openid.ax.type.fav_dog=http://example.com/schema/favourite_dog
openid.ax.type.fav_movie=http://example.com/schema/favourite_movie
openid.ax.value.fname=John Smith
openid.ax.count.gender=0
openid.ax.value.fav_dog=Spot
openid.ax.count.fav_movie=2
openid.ax.value.fav_movie.1=Movie1
openid.ax.value.fav_movie.2=Movie2
openid.ax.update_url=http://idconsumer.com/update?transaction_id=a6b5c41

Final: OpenID Attribute Exchange 1.0 – Final

カテゴリー: 未分類 パーマリンク

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中