
언어 🇰🇷 한국어
문서
시작하기
사용법
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는 사용하기 쉽지만 Secure SSO보다 보안이 낮습니다:
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SimpleSSOUserData;
// 사용자 데이터 생성
$userData = SimpleSSOUserData::create(
'username123',
'user@example.com',
'https://example.com/avatar.png'
);
// URL 기반 로그인/로그아웃 사용
$sso = FastCommentsSSO::createWithUrls(
null,
$userData,
'https://example.com/login',
'https://example.com/logout'
);
// 또는 콜백 사용
$sso = FastCommentsSSO::createWithCallbacks(
$userData,
function($url) { /* 로그인 처리 */ },
function($url) { /* 로그아웃 처리 */ }
);
// FastComments에 전달할 토큰 가져오기
$token = $sso->prepareToSend();
보안 SSO
Secure 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 저장소를 방문해 주세요.