
Langue 🇫🇷 Français (France)
Documentation
Premiers pas
Utilisation
FastComments SDK SSO PHP
Ceci est le SDK SSO PHP officiel pour FastComments.
SDK PHP pour l'intégration SSO de FastComments
Dépôt
Agents de codage IA 
Donnez à votre agent de codage le contexte FastComments dont il a besoin - widgets, configuration, SSO sécurisé, l'API REST et les SDK :
npx skills add fastcomments/skills
Fonctionne avec Claude Code, Codex, Cursor, Copilot, Gemini et tout autre agent pris en charge par le skills CLI.
Utilisation 
SSO Simple
Le SSO Simple est facile à utiliser, mais offre moins de sécurité que le SSO Sécurisé :
use FastComments\SSO\FastCommentsSSO;
use FastComments\SSO\SimpleSSOUserData;
// Create user data
$userData = SimpleSSOUserData::create(
'username123',
'user@example.com',
'https://example.com/avatar.png'
);
// Create the SSO object
$sso = new FastCommentsSSO(null, $userData);
// Get the token to pass to FastComments
$token = $sso->prepareToSend();
SSO Sécurisé
Le SSO Sécurisé offre une sécurité renforcée avec la vérification 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();
Documentation 
Pour la documentation complète sur FastComments SSO, veuillez consulter la documentation de FastComments.
Besoin d'aide ?
Si vous rencontrez des problèmes ou avez des questions concernant le SDK SSO PHP, veuillez :
Contribuer
Les contributions sont les bienvenues ! Veuillez visiter le dépôt GitHub pour consulter les directives de contribution.