フェデレーション発行者を作成
POST/v1/organizations/federation_issuers
org:admin スコープを持つ OAuth アクセストークンが必要です。これは ant auth login --scope org:admin またはワークロード ID フェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin API で WIF を管理するを参照してください。
組織内のワークロード ID フェデレーションのために Anthropic が信頼する OIDC 発行者を登録します。
jwks フィールドは発行者の署名鍵の取得方法を制御し、type で選択される 3 つの形式のいずれかを取ります。discovery(OIDC ディスカバリーを通じて鍵を解決)、explicit_url(固定の JWKS URL から鍵を取得)、または inline(静的な鍵セットを提供)です。jwks.type が discovery で discovery_base が設定されていない場合、Anthropic がディスカバリードキュメントを取得できるよう、発行者 URL は HTTPS 経由でパブリックに到達可能である必要があります。explicit_url および inline モードでは、発行者 URL は JWT の iss クレームとして照合されるだけで、取得はされません。
Parameters
Returns
フェデレーション発行者を作成
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client(apiKey: 'my-anthropic-api-key');
$betaFederationIssuer = $client
->beta
->organization
->federation
->issuers
->create(
issuerURL: 'x',
name: 'x',
checkJTI: true,
jwks: [
'type' => 'discovery',
'caCertPEM' => 'ca_cert_pem',
'discoveryBase' => 'discovery_base',
],
maxJWTLifetimeSeconds: 1,
betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
);
var_dump($betaFederationIssuer);Response 200
{
"id": "fdis_01SDCCSbTxrXDpWc1phhtcfK",
"archived_at": "2019-12-27T18:11:19.117Z",
"archived_by_actor_id": "archived_by_actor_id",
"check_jti": true,
"created_at": "2024-10-30T23:58:27.427722Z",
"created_by_actor_id": "created_by_actor_id",
"issuer_url": "https://token.actions.githubusercontent.com",
"jwks": {
"type": "discovery",
"ca_cert_pem": "ca_cert_pem",
"discovery_base": "discovery_base"
},
"jwks_polling_disabled_at": "2019-12-27T18:11:19.117Z",
"max_jwt_lifetime_seconds": 0,
"name": "github-actions",
"poll_status": {
"consecutive_failures": 0,
"last_fetched_at": "2019-12-27T18:11:19.117Z",
"next_poll_at": "2019-12-27T18:11:19.117Z"
},
"type": "federation_issuer",
"updated_at": "2024-10-30T23:58:27.427722Z",
"updated_by_actor_id": "updated_by_actor_id"
}Returns Examples
Response 200
{
"id": "fdis_01SDCCSbTxrXDpWc1phhtcfK",
"archived_at": "2019-12-27T18:11:19.117Z",
"archived_by_actor_id": "archived_by_actor_id",
"check_jti": true,
"created_at": "2024-10-30T23:58:27.427722Z",
"created_by_actor_id": "created_by_actor_id",
"issuer_url": "https://token.actions.githubusercontent.com",
"jwks": {
"type": "discovery",
"ca_cert_pem": "ca_cert_pem",
"discovery_base": "discovery_base"
},
"jwks_polling_disabled_at": "2019-12-27T18:11:19.117Z",
"max_jwt_lifetime_seconds": 0,
"name": "github-actions",
"poll_status": {
"consecutive_failures": 0,
"last_fetched_at": "2019-12-27T18:11:19.117Z",
"next_poll_at": "2019-12-27T18:11:19.117Z"
},
"type": "federation_issuer",
"updated_at": "2024-10-30T23:58:27.427722Z",
"updated_by_actor_id": "updated_by_actor_id"
}