{"id":19270823,"url":"https://github.com/activecampaign/example-sso_embed","last_synced_at":"2025-04-21T20:33:56.193Z","repository":{"id":6694376,"uuid":"7939572","full_name":"ActiveCampaign/example-sso_embed","owner":"ActiveCampaign","description":"Use SSO to link users to ActiveCampaign (bypassing the login), or embed as an iFrame.","archived":false,"fork":false,"pushed_at":"2014-11-27T16:32:37.000Z","size":868,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-01T16:08:01.376Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ActiveCampaign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-31T15:41:50.000Z","updated_at":"2023-11-23T04:55:28.000Z","dependencies_parsed_at":"2022-08-20T07:11:06.585Z","dependency_job_id":null,"html_url":"https://github.com/ActiveCampaign/example-sso_embed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveCampaign%2Fexample-sso_embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveCampaign%2Fexample-sso_embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveCampaign%2Fexample-sso_embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveCampaign%2Fexample-sso_embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ActiveCampaign","download_url":"https://codeload.github.com/ActiveCampaign/example-sso_embed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250128523,"owners_count":21379530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-09T20:27:33.871Z","updated_at":"2025-04-21T20:33:55.787Z","avatar_url":"https://github.com/ActiveCampaign.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ActiveCampaign Custom API Script: Use SSO to link users to ActiveCampaign (bypassing the login), or embed as an iFrame.\r\n\r\n## Requirements\r\n\r\n1. [Our PHP API library](https://github.com/ActiveCampaign/activecampaign-api-php)\r\n2. A web server where you can run PHP code\r\n\r\n## Installation and Usage\r\n\r\nYou can install **example-sso_embed** by downloading (or cloning) the source.\r\n\r\nInput your ActiveCampaign URL and API Key at the top. Example below:\r\n\r\n\u003cpre\u003e\r\n$api_url = \"https://ACCOUNT.api-us1.com\";\r\n$api_key = \"4f3c6d12f0.....00ca273778dc893\";\r\n\u003c/pre\u003e\r\n\r\nAlso add values for the SSO variables at the top. Example below:\r\n\r\n\u003cpre\u003e\r\n$sso_ip_address = \"127.0.0.1\";\r\n$sso_username = \"user1\"; // can also use email address here\r\n$sso_duration = \"30\";\r\n\u003c/pre\u003e\r\n\r\nMake sure the path to the PHP library is correct:\r\n\r\n\u003cpre\u003e\r\nrequire_once(\"../../activecampaign-api-php/includes/ActiveCampaign.class.php\");\r\n\u003c/pre\u003e\r\n\r\nRefresh the page and you should see a link to ActiveCampaign, and an iFrame showing ActiveCampaign:\r\n\r\n![Screenshot of script result](http://d226aj4ao1t61q.cloudfront.net/faeczxtlv_screenshot1.jpg)\r\n\r\n## Documentation and Links\r\n\r\n* [ActiveCampaign Single Sign-On](http://www.activecampaign.com/blog/activecampaign-single-sign-on/)\r\n* [SSO API documentation](http://www.activecampaign.com/api/example.php?call=singlesignon)\r\n\r\n## Reporting Issues\r\n\r\nWe'd love to help if you have questions or problems. Report issues using the [Github Issue Tracker](issues) or email help@activecampaign.com.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivecampaign%2Fexample-sso_embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factivecampaign%2Fexample-sso_embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivecampaign%2Fexample-sso_embed/lists"}