{"id":22819650,"url":"https://github.com/miniorangedev/php-oauth2-client","last_synced_at":"2025-03-30T23:14:18.129Z","repository":{"id":95448660,"uuid":"199410117","full_name":"miniOrangeDev/php-oauth2-client","owner":"miniOrangeDev","description":null,"archived":false,"fork":false,"pushed_at":"2019-07-29T09:47:10.000Z","size":9111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T04:41:28.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miniOrangeDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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}},"created_at":"2019-07-29T08:21:49.000Z","updated_at":"2019-07-29T09:47:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"89a3c0bb-ed20-452e-a286-c7c4066573d4","html_url":"https://github.com/miniOrangeDev/php-oauth2-client","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/miniOrangeDev%2Fphp-oauth2-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2Fphp-oauth2-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2Fphp-oauth2-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2Fphp-oauth2-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miniOrangeDev","download_url":"https://codeload.github.com/miniOrangeDev/php-oauth2-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390872,"owners_count":20769478,"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-12-12T15:13:42.910Z","updated_at":"2025-03-30T23:14:18.123Z","avatar_url":"https://github.com/miniOrangeDev.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP OAuth 2 Connector\n\nThis package makes it simple to integrate your application with [OAuth 2.0](http://oauth.net/2/) service providers.\n\n---\n\nPHP OAuth 2 Connector allows any PHP app to do Single Sign-On with any OAuth 2.0 and OpenID Connect 1.0 compliant providers or servers like Azure AD, AWS Cognito, Invision Community, slack, facebook, google, Instagram, Discord or any custom OAuth 2.0 and OpenID Connect (OIDC) servers.\n\nIn PHP OAuth 2 Connector you just have to configure app with your desired OAuth 2.0 or OpenID Connect server. When you done the configuration by following the instructions you can set up your Single Sign-On (SSO) environment.\n\nMost of the websites or webapps are now streaming on PHP and many owners wants to login their user from their social media accounts and other already existing accounts rather then create a new one. PHP OAuth 2 Connector has a solution for that problem.\n\n\n* Any PHP App can connect with PHP OAuth 2 Connector and perform their SSO.\n* Configuration with OAuth / OpenID Provider is very simple and elegant way.\n* The documentation is suitable for both novice PHP users and experienced programmers.\n\n\n## MAIN FEATURES \n\n*\tPHP OAuth 2 Connector supports single sign-on / SSO with any 3rd party OAuth /OpenID Connect server or custom OAuth /OpenID Connect server.\n*   OAuth/OpenID provider support : Single OAuth/OpenID provider's application can be configured.\n*\tAttribute Mapping : PHP OAuth 2 Connector supports basic Attribute Mapping feature to map user profile attributes like email.\n*\tGrant Type : Authorization code Grant\n*\tLogin link/shortcode : Use link to easily integrate the SSO login with your Application site. \n*\tRedirect URL after Login : PHP OAuth 2 Connector Automatically Redirects user after successful login. \n\n\n## Requirements\n\nThe following versions of PHP are supported.\n\n* PHP 5.4 and above\n\n## List of grant types we support \n*   Authorization code grant\n*   Implicit grant\n*   Resource owner credentials grant (Password Grant)\n*   Client credentials grant\n*   Refresh token grant\n\n\n\n## Installation\n\n1. Download the PHP OAuth 2 Connector \n2. Unzip the file and extract it\n3. Copy this folder to your local server root directory\n4. Now open your web browser and enter the url.  \n   ``` html\n   Example - http://localhost/\u003cyour-folder-name\u003e/\n   ```\n\n## Set up your First App\n1. Login with miniOrange Credentials or Register with miniOrange.\n2. Go to Configure OAuth.\n3. Select the Application from the given list. (Custom OAuth/OpenID for the OAuth provider which are not available in given list).\n4. Enter the details in the form and submit.\n5. Go to Attribute Mapping.\n6. Click on the test configuration and it will give you user's atttribute data.\n7. Attribute name from the test configuration screen put into the Attribute Mapping form and submit.\n8. Now from your application use given link to do SSO.\n\n   link -\n   ``` php \n   https://\u003cyour-domain\u003e/sso?app=\u003cappname\u003e\u0026redirect_to=\u003cafter-login-redirect-url\u003e\n   ```\n\n   here :\n   ``` html\n   - \u003cyour-domain\u003e: your domain at where you hosted your application. \n   - \u003cappname\u003e: name of your application which you have configured.\n   - \u003cafter-login-redirect-url\u003e: at where after login you want to redirect.\n   ```\n\n   Example -\n   ``` php\n    \u003ca href=\"https://example.com/sso?app=myfirstapp\u0026redirect_to=https://redirect-domain.com\"\u003eLogin SSO\u003c/a\u003e\n    ```\n      \n9. Use the following code in your application to access the user attributes.\n\n``` php\n    if (!isset($_SESSION)){                          \n        session_start();\n    }\n    $email = $_SESSION['sso_email'];\n    // These variables contain the mapped attribute values.\n    // After retrieving these values using the above code, you can use the $email variable in your code.\n\n    $_SESSION['sso_email'] //contains the Email.\n```\n\n\n\n## List of popular OAuth Providers we support \n*\tAzure AD\n*\tAWS Cognito\n*   WHMCS\n*   Ping Federate\n*\tSlack\n*\tDiscord\n*\tHR Answerlink / Support center\n*\tWSO2\n*\tWechat\n*\tWeibo\n*   LinkedIn\n*\tGitlab\n*\tShibboleth\n*\tBlizzard (Formerly Battle.net)\n*\tservicem8\n*\tMeetup\n*\tEve Online\n*\tGluu Server\n\n## List of popular OpenID Connect (OIDC) Providers we support \n*\tAmazon\n*\tSalesforce\n*\tPayPal\n*\tGoogle\n*\tAWS Cognito\n*\tOkta\n*\tOneLogin\n*\tYahoo\n*\tADFS\n*\tGigya\n\n\n\n## Other OAuth Providers we support \n*\tOther oauth 2.0 providers oauth single sign-on plugin support includes Autodesk, Zendesk, Foursquare, Harvest, Mailchimp, Bitrix24, Spotify, Vkontakte, Huddle, Reddit, Strava, Ustream, Yammer, RunKeeper, Instagram, SoundCloud, Pocket, PayPal, Pinterest, Vimeo, Nest, Heroku, DropBox, Buffer, Box, Hubic, Deezer, DeviantArt, Delicious, Dailymotion, Bitly, Mondo, Netatmo, Amazon, FitBit, Clever, Sqaure Connect, Windows, Dash 10, Github, Invision Community, Blizzar, authlete, Keycloak etc.\n\n\n\n## For any other query/problem/request \nPlease email us at info@xecurify.com or \u003ca href=\"http://miniorange.com/contact\" target=\"_blank\"\u003eContact us\u003c/a\u003e.\n\n\n## Changelog \n\n### 1.0 \n* First version with supported applications as EVE Online and Google.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiorangedev%2Fphp-oauth2-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminiorangedev%2Fphp-oauth2-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiorangedev%2Fphp-oauth2-client/lists"}