
Idioma 🇧🇷 Português (Brasil)
🇺🇸
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
Primeiros passos
Uso
Documentação
FastComments PHP SSO SDK
Este é o SDK oficial de SSO em PHP para o FastComments.
SDK em PHP para integração de SSO do FastComments
Repositório
Uso 
SSO Simples
O SSO Simples é fácil de usar, mas oferece menos segurança do que o SSO Seguro:
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SimpleSSOUserData;
// Create user data
$userData = SimpleSSOUserData::create(
'username123',
'user@example.com',
'https://example.com/avatar.png'
);
// With URL-based login/logout
$sso = FastCommentsSSO::createWithUrls(
null,
$userData,
'https://example.com/login',
'https://example.com/logout'
);
// Or with callbacks
$sso = FastCommentsSSO::createWithCallbacks(
$userData,
function($url) { /* Lidar com login */ },
function($url) { /* Lidar com logout */ }
);
// Get the token to pass to FastComments
$token = $sso->prepareToSend();
SSO Seguro
O SSO Seguro fornece segurança reforçada com verificação HMAC:
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SecureSSOUserData;
// Create user data
$userData = SecureSSOUserData::create(
'user-123',
'user@example.com',
'username123',
'https://example.com/avatar.png'
);
// Add optional data if needed
$userData->isAdmin = true;
$userData->groupIds = ['group-1', 'group-2'];
// Create the SSO object with your API key
$sso = FastCommentsSSO::createSecure('your-api-key', $userData);
// Get the token to pass to FastComments
$token = $sso->prepareToSend();
Documentação 
Para a documentação completa sobre o SSO do FastComments, consulte a documentação do FastComments.
Precisa de ajuda?
Se você encontrar algum problema ou tiver dúvidas sobre o SDK PHP SSO, por favor:
Contribuindo
Contribuições são bem-vindas! Por favor, visite o repositório do GitHub para as diretrizes de contribuição.