
Idioma 🇪🇸 Español
🇺🇸
English
🇧🇬
Български
🇨🇳
简体中文
🇹🇼
繁體中文
🇭🇷
Hrvatski
🇩🇰
Dansk
🇳🇱
Nederlands
🇺🇸
English (US)
🇨🇦
Français (Canada)
🇫🇷
Français (France)
🇩🇪
Deutsch
🇨🇾
Ελληνικά (Κύπρος)
🇬🇷
Ελληνικά
🇮🇱
עברית
🇮🇹
Italiano
🇯🇵
日本語
🇰🇷
한국어
🇵🇱
Polski
🇧🇷
Português (Brasil)
🇷🇺
Русский
🇺🇦
Русский (Украина)
🇧🇦
Српски (БиХ)
🇷🇸
Srpski (Latinica)
🇲🇪
Српски (Црна Гора)
🇷🇸
Српски
🇸🇮
Slovenščina
🇪🇸
Español
🇺🇦
Українська
🇹🇷
Türkçe
Primeros pasos
Uso
Documentación
FastComments PHP SSO SDK
Este es el SDK oficial de SSO en PHP para FastComments.
SDK de PHP para la integración SSO de FastComments
Repositorio
Uso 
SSO simple
SSO simple es fácil de usar, pero proporciona menos seguridad que SSO seguro:
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SimpleSSOUserData;
// Crear datos de usuario
$userData = SimpleSSOUserData::create(
'username123',
'user@example.com',
'https://example.com/avatar.png'
);
// Con inicio/cierre de sesión basado en URL
$sso = FastCommentsSSO::createWithUrls(
null,
$userData,
'https://example.com/login',
'https://example.com/logout'
);
// O con callbacks
$sso = FastCommentsSSO::createWithCallbacks(
$userData,
function($url) { /* Gestionar inicio de sesión */ },
function($url) { /* Gestionar cierre de sesión */ }
);
// Obtener el token para pasar a FastComments
$token = $sso->prepareToSend();
SSO seguro
SSO seguro proporciona mayor seguridad con verificación HMAC:
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SecureSSOUserData;
// Crear datos de usuario
$userData = SecureSSOUserData::create(
'user-123',
'user@example.com',
'username123',
'https://example.com/avatar.png'
);
// Agregar datos opcionales si es necesario
$userData->isAdmin = true;
$userData->groupIds = ['group-1', 'group-2'];
// Crear el objeto SSO con tu clave API
$sso = FastCommentsSSO::createSecure('your-api-key', $userData);
// Obtener el token para pasar a FastComments
$token = $sso->prepareToSend();
Documentación 
Para la documentación completa sobre SSO de FastComments, consulte la documentación de FastComments.
¿Necesitas ayuda?
Si encuentras algún problema o tienes preguntas sobre el SDK PHP SSO, por favor:
Contribuir
¡Las contribuciones son bienvenidas! Por favor visita el repositorio de GitHub para las directrices de contribución.