xiaohongshu
xiaohongshu
ciba
CIBA(Client Initiated Backchannel Authentication)機能の開発・修正を行う際に使用。Poll/Push/Pingモード、Login Hint解決、FCM通知実装時に役立つ。
Full skill instructions
documentation/docs/content_06_developer-guide/03-application-plane/06-ciba-flow.md - CIBA実装ガイドdocumentation/docs/content_03_concepts/03-authentication-authorization/concept-04-authorization.md - 認可概念(CIBA含む)documentation/docs/content_10_ai_developer/ai-31-extension-ciba.md - AI開発者向けCIBAガイドCIBAは、クライアントがバックチャネル経由でユーザー認証を要求するフロー。
libs/
├── idp-server-core-extension-ciba/ # CIBA拡張モジュール
│ └── .../core/extension/ciba/
│ ├── handler/
│ │ └── CibaRequestHandler.java # CIBA認証リクエスト処理
│ ├── CibaRequestContext.java # CIBAリクエストコンテキスト
│ ├── grant/
│ │ ├── CibaGrant.java
│ │ ├── CibaGrantFactory.java
│ │ └── CibaGrantService.java # CIBAグラント管理
│ ├── request/
│ │ └── BackchannelAuthenticationRequest.java
│ ├── response/
│ │ └── BackchannelAuthenticationResponse.java
│ └── repository/
│ └── CibaGrantRepository.java
│
├── idp-server-notification-fcm-adapter/ # FCM通知アダプター
│ └── .../notification/fcm/
│ └── FcmNotificationSender.java
│
└── idp-server-control-plane/ # 管理API
└── .../management/ciba/
└── CibaConfigManagementApi.java
idp-server-core-extension-ciba/.../core/extension/ciba/handler/CibaRequestHandler.java 内:
CibaRequestHandlerは、BackchannelAuthenticationRequestを処理し、 BackchannelAuthenticationResponseを生成します。
処理フロー(概念的):
idp-server-core-extension-ciba/grant/ 内:
// CibaGrantは認証状態を管理
public class CibaGrant {
AuthReqId authReqId;
UserId userId;
ClientId clientId;
Scope scope;
GrantStatus status; // PENDING, AUTHENTICATED, EXPIRED
public boolean isAuthenticated() {
return status == GrantStatus.AUTHENTICATED;
}
}
CibaGrantServiceとCibaGrantVerifierが、グラントのライフサイクルを管理します。
idp-server-notification-fcm-adapter/ モジュール内:
FCM (Firebase Cloud Messaging)を使用して、認証デバイスに通知を送信します。
e2e/src/tests/
├── spec/
│ ├── ciba_authentication_request.test.js # CIBA認証リクエスト
│ ├── ciba_token_request.test.js # CIBAトークンリクエスト
│ ├── ciba_push.test.js # Pushモード
│ ├── ciba_ping.test.js # Pingモード
│ └── ciba_discovery.test.js # CIBA Discovery
│
├── scenario/application/
│ └── scenario-04-ciba-mfa.test.js # CIBA MFAシナリオ
│
├── usecase/ciba/
│ ├── ciba-01-require-rar.test.js # RAR必須
│ ├── ciba-02-multi-device-priority.test.js # マルチデバイス優先度
│ └── ciba-04-security-event-device-ids.test.js
│
└── monkey/
└── ciba-monkey.test.js # CIBAファジングテスト
# ビルド
./gradlew :libs:idp-server-core-extension-ciba:compileJava
./gradlew :libs:idp-server-notification-fcm-adapter:compileJava
# テスト
cd e2e && npm test -- spec/ciba_authentication_request.test.js
cd e2e && npm test -- spec/ciba_push.test.js
cd e2e && npm test -- usecase/ciba/
interval秒待ってから再ポーリングidp-server-notification-fcm-adapter モジュールが有効か確認xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience