> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# イベントオブジェクト

> トリガーの実行に関するコンテキスト情報を提供する、pre-user-registration Action トリガーのイベントオブジェクトについて説明します。

pre-user-registration Actions トリガーの `event` オブジェクトは、トリガーの実行に関するコンテキスト情報を提供します。

```json Event Object theme={null}
{
  "connection": {
    "id": "string",
    "name": "string",
    "strategy": "string"
  },
  "request": {
    "body": {},
    "geoip": {},
    "ip": "string",
    "method": "string"
  },
  "tenant": {
    "id": "string"
  },
  "user": {},
  "secrets": {}
}
```

## `event.anonymous_session`

**event.anonymous\_session** `object`

\[非公開の早期アクセス] この登録に先行する匿名セッションの詳細 (存在する場合) 。登録の前に匿名セッションがあった場合にのみ含まれ、それ以外の場合は undefined です。

**event.anonymous\_session のプロパティ**

**created\_at** `string`

\[非公開の早期アクセス] 匿名セッションが作成された日時 (ISO 8601形式) 。

**expires\_at** `string`

\[非公開の早期アクセス] 匿名セッションの有効期限が切れる日時 (ISO 8601形式) 。

**metadata** `dictionary`

\[非公開の早期アクセス] 匿名セッションに関する追加情報を保持するキーと値のペア。常に定義されており、メタデータが指定されていない場合は空のオブジェクトになります。

**session\_id** `string`

\[非公開の早期アクセス] 匿名セッションの識別子。

**user\_id** `string`

\[非公開の早期アクセス] 匿名セッションに関連付けられた匿名ユーザーの識別子。

## `event.authentication`

**event.authentication** `object`

ユーザー登録前フローで取得された認証に関する詳細。

**event.authentication のプロパティ**

**riskAssessment** `object`

各フローのリスク評価に関する詳細。

**riskAssessment のプロパティ**

**supplemental** `object`

リスク評価を支援するためにサードパーティプロバイダーから送信されるSupplemental Signals。

**supplemental のプロパティ**

**akamai** `object`

\[早期アクセス] 補足的なリスク評価。Akamai Account Protector が有効で、Akamai がトランザクションのヘッダーを転送する場合にのみ利用できます。

**akamai のプロパティ**

**akamaiBot** `object`

Akamai Bot Manager から転送されたボット検出結果。

**akamaiBot のプロパティ**

**type** `string`

Akamai Bot Manager の結果の種類。

**action** `string`

Akamai Bot Manager の結果におけるアクション。

**botCategory** `array of string`

Akamai Bot Manager の結果におけるボットカテゴリ。

**botScore** `number`

Akamai Bot Manager の結果におけるボットスコア。

**botScoreResponseSegment** `string`

Akamai Bot Manager の結果におけるボットスコア応答セグメント。

**botnetId** `string`

Akamai Bot Manager の結果におけるボットネット ID。

**akamaiUserRisk** `object`

Akamai Account Protector から転送されたユーザーリスク検出結果。

**akamaiUserRisk のプロパティ**

**action** `string`

Akamai ユーザーリスク評価のアクション。

**allow** `number`

Akamai ユーザーリスク評価の許可ステータス。

**emailDomain** `string`

ユーザーのメールドメイン。

**general** `dictionary`

Akamai ユーザーリスク評価の一般リスク。

**ouid** `string`

ユーザーの OUID。

**requestid** `string`

ユーザーのリクエスト ID。

**risk** `dictionary`

Akamai ユーザーリスク評価のリスク。

**score** `number`

Akamai ユーザーリスク評価のスコア。

**status** `number`

Akamai ユーザーリスク評価のステータス。

**trust** `dictionary`

Akamai ユーザーリスク評価の信頼度。

**username** `string`

ユーザーのユーザー名。

**uuid** `string`

Akamai ユーザーリスク評価の UUID。

## `event.client`

**event.client** `object`

このトランザクションを開始したクライアントに関する情報です。

**event.clientのプロパティ**

**client\_id** `string`

ユーザーがログインするアプリケーションのクライアントIDです。

**metadata** `dictionary`

その他のアプリケーションプロパティを保持するためのオブジェクトです。

**name** `string`

アプリケーションの名前 (Auth0 Dashboardで定義) 。

## `event.connection`

**event.connection** `object`

ユーザー登録に使用された接続の詳細。

**event.connection のプロパティ**

**id** `string`

接続の一意の識別子。

**metadata** `dictionary`

接続に関連付けられたメタデータ。

**name** `string`

ユーザーの認証に使用された接続の名前 (`twitter` や `some-g-suite-domain` など) 。

**strategy** `string`

接続の種類。ソーシャル接続の場合、`event.connection.strategy === event.connection.name` となります。エンタープライズ接続の場合、strategy には `waad` (Windows Azure AD) 、`ad` (Active Directory/LDAP) 、`auth0` (データベース接続) などがあります。

## `event.custom_domain`

**event.custom\_domain** `object`

現在のトランザクションに関連付けられているカスタムドメインの詳細。

**event.custom\_domainのプロパティ**

**domain** `string`

カスタムドメイン名。

**domain\_metadata** `dictionary`

キーと値のペアで構成されるカスタムドメインのメタデータ。

## `event.request`

**event.request** `object`

トランザクションを開始したリクエストの詳細。

**リクエストプロパティ**

**body** `dictionary`

POSTリクエストの本文。このデータは、リフレッシュトークン、Client Credential Exchangeフロー、およびPreUserRegistration Actionでのみ使用できます。

**geoip** `dictionary`

**geoipプロパティ**

**cityName** `string`

**continentCode** `string`

**countryCode** `string`

**countryCode3** `string`

**countryName** `string`

**latitude** `number`

**longitude** `number`

**subdivisionCode** `string`

**subdivisionName** `string`

**timeZone** `string`

**hostname** `string`

認証フローで使用されるホスト名。

**ip** `string`

リクエストの送信元IPアドレス。

**language** `string`

ブラウザから要求された言語。

**method** `string`

リクエストで使用されるHTTPメソッド。

**user\_agent** `string`

トランザクション開始時に受信した`User-Agent`ヘッダーの値。

## `event.secrets`

**event.secrets** `secrets`

このActionに安全に関連付けられたシークレット値。

## `event.security_context`

**event.security\_context** `object`

フィンガープリントシグネチャを含むオブジェクト。クライアントがCloudflareを使用している場合にのみ利用できます。JA3/JA4フィンガープリントは、場合によってはnullまたは空になることがあります。最も一般的なのはHTTPリクエストの場合です。これは、JA3とJA4がTLSで計算されるためです。また、Workerが同じゾーン内、またはプロキシされていないゾーン (あるいはサードパーティ) にリクエストを送信する場合も、空になることがあります。

**event.security\_contextのプロパティ**

**ja3** `string`

JA3フィンガープリントシグネチャ。クライアントがTLS接続を使用している場合にのみ利用できます。

**ja4** `string`

JA4フィンガープリントシグネチャ。クライアントがTLS接続を使用している場合にのみ利用できます。

## `event.tenant`

**event.tenant** `object`

現在のトランザクションに関連付けられているテナントの詳細。

**event.tenant のプロパティ**

**id** `string`

テナントの名前。

## `event.transaction`

**event.transaction** `dictionary`

現在のトランザクションの詳細。

**event.transaction のプロパティ**

**acr\_values** `array of string`

元の認証リクエストで指定された acr\_values。

**locale** `string`

ブラウザーで要求された言語とテナントの言語設定を比較して決定される、このトランザクションで使用するロケール。

**login\_hint** `string`

エンドユーザーがログインに使用する可能性がある識別子について認可サーバーに伝えるヒント (必要な場合) 。

**prompt** `array of string`

ユーザーに再認証や同意を求めるかどうかを示す指示のリスト。

**protocol** `string`

許可される値: `oidc-basic-profile`, `oidc-ciba`, `oidc-ciba-web-link`, `oidc-implicit-profile`, `oauth2-device-code`, `oauth2-resource-owner`, `oauth2-resource-owner-jwt-bearer`, `oauth2-password`, `oauth2-webauthn`, `oauth2-access-token`, `oauth2-refresh-token`, `oauth2-token-exchange`, `oidc-hybrid-profile`, `samlp`, `wsfed`, `wstrust-usernamemixed`

**redirect\_uri** `string`

トランザクションの完了後に Auth0 がブラウザーをリダイレクトする URL。

**requested\_scopes** `array of string`

この認証フローの開始時に要求されたスコープ (ある場合) 。

**response\_mode** `string`

認可エンドポイントからパラメータを返す際に使用する方式を認可サーバーに通知します。

許可される値: `query`, `fragment`, `form_post`, `web_message`

**response\_type** `array of string`

Auth0 が返す認証情報の種類を示します。

**state** `string`

アプリが初期リクエストに追加する、任意の英数字からなる不透明な文字列。Auth0 はアプリケーションへのリダイレクト時にこの文字列を含めます。

**ui\_locales** `array of string`

元の認証リクエストで指定された ui\_locales。

**correlation\_id** `string`

Correlation ID は、アプリケーションが Universal Login にリダイレクトする際の初期認証リクエストで指定できます。この値を使用して、Action コードからのログやリクエストをユーザーフローに関連付けることができます。

## `event.user`

**event.user** `object`

登録を試みているユーザーを表すオブジェクト。

**event.user のプロパティ**

**app\_metadata** `dictionary`

サポートプラン、セキュリティロール、アクセス制御グループなど、ユーザーのアクセス権に影響する情報を保存するカスタムフィールド。

**email** `string`

(一意の) ユーザーのメールアドレス。

**family\_name** `string`

ユーザーの姓。

**given\_name** `string`

ユーザーの名。

**name** `string`

ユーザーのフルネーム。

**nickname** `string`

ユーザーのニックネーム。

**phone\_number** `string`

ユーザーの電話番号。

**picture** `string`

[ユーザーのプロフィール画像](https://auth0.com/docs/users/change-user-picture)を指すURL。

**user\_metadata** `dictionary`

勤務先住所、自宅住所、ユーザー設定など、アクセス権に影響しないユーザー情報を保存するカスタムフィールド。

**username** `string`

(一意の) ユーザー名。
