
言語 🇯🇵 日本語
ドキュメント
はじめに
使用方法
FastComments PHP SSO SDK
これは FastComments の公式 PHP SSO SDK です。
FastComments SSO 統合用の PHP SDK
リポジトリ
AI コーディングエージェント 
FastComments のコンテキスト(ウィジェット、設定、Secure SSO、REST API、SDK)をコーディングエージェントに提供します:
npx skills add fastcomments/skills
Claude Code、Codex、Cursor、Copilot、Gemini、そして他のすべてのエージェントで、skills CLI がサポートしています。
使用方法 
シンプルSSO
シンプルSSOは使い方が簡単ですが、セキュアSSOよりもセキュリティが低くなります:
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SimpleSSOUserData;
// ユーザーデータを作成
$userData = SimpleSSOUserData::create(
'username123',
'user@example.com',
'https://example.com/avatar.png'
);
// SSOオブジェクトを作成
$sso = new FastCommentsSSO(null, $userData);
// FastCommentsに渡すトークンを取得
$token = $sso->prepareToSend();
セキュアSSO
セキュアSSOはHMAC検証による強化されたセキュリティを提供します:
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SecureSSOUserData;
// ユーザーデータを作成
$userData = SecureSSOUserData::create(
'user-123',
'user@example.com',
'username123',
'https://example.com/avatar.png'
);
// 必要に応じてオプションのデータを追加
$userData->isAdmin = true;
$userData->groupIds = ['group-1', 'group-2'];
// APIキーを使ってSSOオブジェクトを作成
$sso = FastCommentsSSO::createSecure('your-api-key', $userData);
// FastCommentsに渡すトークンを取得
$token = $sso->prepareToSend();
ドキュメント 
FastComments SSO の詳細については、FastComments のドキュメント をご覧ください。
ヘルプが必要ですか?
PHP SSO SDK に関して問題が発生した場合や質問がある場合は、次のいずれかを行ってください:
貢献
ご貢献を歓迎します! 貢献ガイドラインについては GitHubリポジトリ をご覧ください。