{"id":26860423,"url":"https://github.com/fastcomments/fastcomments-php-sso","last_synced_at":"2026-02-14T07:02:07.322Z","repository":{"id":284650079,"uuid":"955547317","full_name":"FastComments/fastcomments-php-sso","owner":"FastComments","description":"PHP SSO Library for FastComments","archived":false,"fork":false,"pushed_at":"2025-11-05T18:11:56.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-05T20:28:36.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FastComments.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-26T20:11:15.000Z","updated_at":"2025-11-05T18:12:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"0282d9c8-0714-48ac-b2c6-ce379c35d096","html_url":"https://github.com/FastComments/fastcomments-php-sso","commit_stats":null,"previous_names":["fastcomments/fastcomments-php-sso"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/FastComments/fastcomments-php-sso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FastComments%2Ffastcomments-php-sso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FastComments%2Ffastcomments-php-sso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FastComments%2Ffastcomments-php-sso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FastComments%2Ffastcomments-php-sso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FastComments","download_url":"https://codeload.github.com/FastComments/fastcomments-php-sso/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FastComments%2Ffastcomments-php-sso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29438979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T05:24:35.651Z","status":"ssl_error","status_checked_at":"2026-02-14T05:24:34.830Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-31T01:34:05.733Z","updated_at":"2026-02-14T07:02:07.318Z","avatar_url":"https://github.com/FastComments.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastComments PHP SSO\n\nThis library provides Single Sign-On (SSO) functionality for FastComments in PHP applications.\n\n## Installation\n\n```bash\ncomposer require fastcomments/sso\n```\n\n## Usage\n\n### Simple SSO\n\nSimple SSO is straightforward to use, but provides less security than Secure SSO:\n\n```php\nuse FastComments\\SSO\\FastCommentsSSO;\nuse FastComments\\SSO\\SimpleSSOUserData;\n\n// Create user data\n$userData = SimpleSSOUserData::create(\n    'username123',\n    'user@example.com',\n    'https://example.com/avatar.png'\n);\n\n// With URL-based login/logout\n$sso = FastCommentsSSO::createWithUrls(\n    null,\n    $userData,\n    'https://example.com/login',\n    'https://example.com/logout'\n);\n\n// Or with callbacks\n$sso = FastCommentsSSO::createWithCallbacks(\n    $userData,\n    function($url) { /* Handle login */ },\n    function($url) { /* Handle logout */ }\n);\n\n// Get the token to pass to FastComments\n$token = $sso-\u003eprepareToSend();\n```\n\n### Secure SSO\n\nSecure SSO provides enhanced security with HMAC verification:\n\n```php\nuse FastComments\\SSO\\FastCommentsSSO;\nuse FastComments\\SSO\\SecureSSOUserData;\n\n// Create user data\n$userData = SecureSSOUserData::create(\n    'user-123',\n    'user@example.com',\n    'username123',\n    'https://example.com/avatar.png'\n);\n\n// Add optional data if needed\n$userData-\u003eisAdmin = true;\n$userData-\u003egroupIds = ['group-1', 'group-2'];\n\n// Create the SSO object with your API key\n$sso = FastCommentsSSO::createSecure('your-api-key', $userData);\n\n// Get the token to pass to FastComments\n$token = $sso-\u003eprepareToSend();\n```\n\n## Documentation\n\nFor full documentation on FastComments SSO, please see the [FastComments documentation](https://docs.fastcomments.com/guide-customizations-and-configuration.html#sso).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastcomments%2Ffastcomments-php-sso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastcomments%2Ffastcomments-php-sso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastcomments%2Ffastcomments-php-sso/lists"}