ヘルプ Top Getting Started MCP セットアップ Purple Red Blue Green Auth ユースケース Tools Errors Pricing トラブルシュート

Help / Auth Codens

Auth Codens

Codens family の統合認証基盤。OAuth2 / OIDC プロバイダ、organization 管理、メンバー招待、SSO、API key 発行、機械可読 pricing.json までを集約しています。

役割

Auth Codens は他のすべての Codens 製品の認証基盤として動作します。1 つのアカウントと credentials で Red / Blue / Green / Purple / Yellow のすべてにログインできます。

サインアップ

  1. https://auth.codens.ai/ja/signup を開く
  2. メールアドレス + パスワード、または Google / GitHub SSO で登録
  3. メール確認 → organization 名を入力
  4. 請求情報は後から billing 画面で登録(Free Trial 中は不要)

新規 organization には Free Trial として 30,000 credits(14 日間)が付与されます。詳細は Pricing を参照。

Organization & Member 管理

Codens family は organization 単位でリソースと課金を管理します。複数 org への所属、ロール(Admin / Member)、招待を Auth Codens 上で行います。

あるサービスで取得した organization_id を別サービスに渡すと UNAUTHORIZED / ORG_NOT_FOUND になります。Errors 参照。

SSO 設定

個人アカウントは Google / GitHub の social login が利用可能です。Business / Enterprise プランでは Okta / Microsoft Entra ID 等の SAML / OIDC SSO に対応します。

  1. Organization → Security → SSO の項目から IdP のメタデータを登録
  2. 必要なら Just-in-Time provisioning を有効化(初回ログイン時にメンバーを自動作成)
  3. Enterprise は SCIM で IdP からのプロビジョニング自動化も可能

API key & Agent capability token

CI ジョブやバックエンド統合用に Personal Access Token / API key を発行できます。agent 用には auth_agent tool で短命の capability token を発行することも可能です。

// 既存ユーザーの API key を経由して agent 用 token を発行 await tools.auth_agent({ action: "signup", agent_name: "ci-bot", scopes: ["purple.workflow.create", "red.bug.read"] });

発行された token を CI の secret に登録し、REST API の Authorization: Bearer ... として利用します。

便利なエンドポイント

用途URL
OIDC Discoveryhttps://api.auth.codens.ai/.well-known/openid-configuration
Pricing JSON (機械可読)https://api.auth.codens.ai/.well-known/pricing.json
Device AuthorizationPOST https://api.auth.codens.ai/oauth/device/authorize
TokenPOST https://api.auth.codens.ai/oauth/token
User info (自分の org 解決)GET https://api.auth.codens.ai/api/v1/auth/me

次のステップ