{"id":14966718,"url":"https://github.com/rhertogh/yii2-oauth2-server","last_synced_at":"2026-03-01T13:03:28.121Z","repository":{"id":45269653,"uuid":"425980286","full_name":"rhertogh/yii2-oauth2-server","owner":"rhertogh","description":"The Yii2-Oauth2-Server is an extension for Yii framework 2.0 applications and provides an Oauth2 server based on the League OAuth2 server. The server also supports OpenID Connect.","archived":false,"fork":false,"pushed_at":"2025-04-24T07:49:22.000Z","size":1391,"stargazers_count":19,"open_issues_count":4,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-02-24T05:49:09.848Z","etag":null,"topics":["oauth2","oauth2-server","oidc","oidc-server","php","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhertogh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-08T20:15:13.000Z","updated_at":"2025-07-08T19:52:00.000Z","dependencies_parsed_at":"2023-12-26T09:06:50.864Z","dependency_job_id":"b0d63a3a-b646-4e93-9d95-f640a9cc945f","html_url":"https://github.com/rhertogh/yii2-oauth2-server","commit_stats":{"total_commits":353,"total_committers":9,"mean_commits":39.22222222222222,"dds":0.03399433427762044,"last_synced_commit":"29126eb8661aa4324d0441e32c1260a1e335b3ee"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/rhertogh/yii2-oauth2-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhertogh%2Fyii2-oauth2-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhertogh%2Fyii2-oauth2-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhertogh%2Fyii2-oauth2-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhertogh%2Fyii2-oauth2-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhertogh","download_url":"https://codeload.github.com/rhertogh/yii2-oauth2-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhertogh%2Fyii2-oauth2-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29969700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T12:56:10.327Z","status":"ssl_error","status_checked_at":"2026-03-01T12:55:24.744Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["oauth2","oauth2-server","oidc","oidc-server","php","yii2","yii2-extension"],"created_at":"2024-09-24T13:36:50.869Z","updated_at":"2026-03-01T13:03:28.107Z","avatar_url":"https://github.com/rhertogh.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/993323\" height=\"100px\" alt=\"Yii2\"\u003e\n    \u003c/a\u003e\n    \u0026nbsp;\n    \u003ca href=\"https://oauth.net/2/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://oauth.net/images/oauth-2-sm.png\" height=\"90px\" alt=\"Oauth 2\"\u003e\n    \u003c/a\u003e\n    \u0026nbsp;\u0026nbsp;\u0026nbsp;\n    \u003ca href=\"https://openid.net/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/OpenID_logo_2.svg/640px-OpenID_logo_2.svg.png\" height=\"90px\" alt=\"OpenID Connect\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eOauth2 + OpenID Connect Extension for Yii 2\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/rhertogh/yii2-oauth2-server.svg)](https://packagist.org/packages/rhertogh/yii2-oauth2-server)\n[![build Status](https://github.com/rhertogh/yii2-oauth2-server/actions/workflows/build.yml/badge.svg)](https://github.com/rhertogh/yii2-oauth2-server/actions/workflows/build.yml)\n[![Code Coverage](https://scrutinizer-ci.com/g/rhertogh/yii2-oauth2-server/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/rhertogh/yii2-oauth2-server/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rhertogh/yii2-oauth2-server/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rhertogh/yii2-oauth2-server/?branch=master)\n[![GitHub](https://img.shields.io/github/license/rhertogh/yii2-oauth2-server?color=brightgreen)](https://github.com/rhertogh/yii2-oauth2-server/blob/master/LICENSE.md)\n\nThe Yii2-Oauth2-Server is an extension for [Yii framework 2.0](http://www.yiiframework.com) applications and provides \nan [Oauth2](https://oauth.net/2/) server based on the [League OAuth2 server](https://github.com/thephpleague/oauth2-server).\nThe server also supports [OpenID Connect Core](https://openid.net/specs/openid-connect-core-1_0.html).\n\n\n### 📑 Contents\n\n- [Getting started](#-getting-started)\n- [Test Drive](#%EF%B8%8F-test-drive)\n- [Documentation](#-documentation)\n- [FAQ](#-faq)\n- [Implemented Standards](#-implemented-standards)\n- [Importing/Migrating](#-importingmigrating)\n- [Versioning \u0026 Change Log](#-versioning--change-log)\n- [Reporting Security issues](#-reporting-security-issues)\n- [Directory Structure](#-directory-structure)\n- [Contributing](#-contributing)\n- [Credits](#-credits)\n- [License](#-license)\n\n---\n\n🐣 Getting started\n------------------\nIf you're not yet familiar with Oauth 2 we recommend to check out\n[An Illustrated Guide to OAuth and OpenID Connect](https://developer.okta.com/blog/2019/10/21/illustrated-guide-to-oauth-and-oidc)\n\n#### Requirements:\n* The minimum required PHP version is 7.4 (compatibility tested up till and including PHP 8.1).\n* The minimum required Yii version is 2.0.49 (2.0.50 when using SQLite).\n\n#### Installation:\nThe preferred way to install this extension is through [composer](https://getcomposer.org/download/).\n```bash\ncomposer require rhertogh/yii2-oauth2-server\n```\n\nFull installation and configuration details can be found in the docs under\n[Installing the Yii2-Oauth2-Server](docs/guide/start-installation.md)\n\n\n🏎️ Test Drive\n----------\nYou can run a local preview instance using [Docker](https://docker.com/):\n```bash\ndocker run --rm -p 82:80 --name Yii2Oauth2Server ghcr.io/rhertogh/yii2-oauth2-server:master\n```\nAfter the container is started you can access the Oauth2 server on [localhost:82](http://localhost:82).\n\u003e Hint: The port number on the host machine is specified by the first part of the `-p` argument.\n\u003e This can be changed if desired (e.g. `-p 88:80`).\n\nTo access the CLI of the Docker container you can run:\n```bash\ndocker container exec -it Yii2Oauth2Server bash\n```\n\n\n📖 Documentation\n----------------\nThere are two main sections in the documentation:\n* [Usage Guide](docs/guide/README.md) for using the Yii2-Oauth2-Server in your own project.\n* [Development Guide](docs/internals/README.md) for contributing to the Yii2-Oauth2-Server.\n\n\n🔮 FAQ\n------\nThis is a quick FAQ, the full version can be found [here](docs/guide/faq.md).\n\n#### *Where can I find the Oauth2 endpoints?*  \nTo see an overview of the endpoints and other configuration you can run: `./yii oauth2/debug/config`\n\n#### *How can I see the configured clients?*  \nTo see an overview of the clients you can run: `./yii oauth2/client/list`\n\n#### *The Oauth2 server throws an error, what should I do?*  \nPlease check out the [full FAQ](docs/guide/faq.md#error-messages) first.\nIf that doesn't solve the problem, please [report an issue](docs/internals/report-an-issue.md).\n\n\n📒 Implemented Standards\n-----------------------\n\n| Name                                                       | RFC / Specs                                                                      | Since  |\n|------------------------------------------------------------|----------------------------------------------------------------------------------|--------|\n| OAuth 2.0                                                  | [RFC 6749](https://datatracker.ietf.org/doc/html/rfc6749)                        | 1.0.0¹ |\n| The OAuth 2.0 Authorization Framework: Bearer Token Usage  | [RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750)                        | 1.0.0¹ |\n| Proof Key for Code Exchange by OAuth Public Clients (PKCE) | [RFC 7636](https://datatracker.ietf.org/doc/html/rfc7636)                        | 1.0.0¹ |\n| OAuth 2.0 Token Revocation                                 | [RFC 7009](https://datatracker.ietf.org/doc/html/rfc7009)                        | 1.0.0  |\n| OpenID Connect Core 1.0                                    | [Specifications](https://openid.net/specs/openid-connect-core-1_0.html)          | 1.0.0  |\n| OpenID Connect Discovery 1.0                               | [Specifications](https://openid.net/specs/openid-connect-discovery-1_0.html)     | 1.0.0  |\n| OpenID Connect RP-Initiated Logout                         | [Specifications](https://openid.net/specs/openid-connect-rpinitiated-1_0.html)   | 1.0.0  |\n| Initiating User Registration via OpenID Connect            | [Specifications](https://openid.net/specs/openid-connect-prompt-create-1_0.html) | 1.0.0  |\n\n¹ Provided via [PHP OAuth 2.0 Server](https://oauth2.thephpleague.com/).\n\n\n↘️ Importing/Migrating\n----------------------\nTo ease migrating from another project, the Yii2-Oauth2-Server supports importing data from other projects.\nFor example from the [filsh/yii2-oauth2-server](https://github.com/filsh/yii2-oauth2-server)\n\nPlease see [Importing/Migrating from other servers](docs/guide/importing-migrating.md) for more information.\n\n\n📜 Versioning \u0026 Change Log\n--------------------------\nThe Yii2-Oauth2-Server follows [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html)  \nPlease see the [Change Log](CHANGELOG.md) for more information on version history\nand the [Upgrading Instructions](UPGRADE.md) when upgrading to a newer version.\n\n\n🔎 Reporting Security issues\n----------------------------\nIn case you found a security issue please [contact us directly](\nhttps://forms.gle/8aEGxmN51Hvb7oLJ7)\nDO NOT use the issue tracker or discuss it in public as it will cause more damage than help.\n\nPlease note that as a non-commercial OpenSource project we are not able to pay bounties.\n\n\n📂 Directory Structure\n----------------------\n```\ndocker/     Docker container definition\ndocs/       Documentation (for both usage and development)\nsample/     Sample app for the server\nsrc/        Yii2-Oauth2-Server source\ntests/      Codeception unit and functional tests\n```\n\n\n🚀 Contributing\n---------------\nThe Yii2-Oauth2-Server is [Open Source](LICENSE.md). You can help by:\n\n- [Report an issue](docs/internals/report-an-issue.md)\n- [Contribute with new features or bug fixes](docs/internals/pull-request-qa.md)\n\nThanks in advance for your contribution!\n\n\n🎉 Credits\n----------\n- [Rutger Hertogh](https://github.com/rhertogh)\n- [All Contributors](https://github.com/rhertogh/yii2-oauth2-server/graphs/contributors)\n\n\n✒️ License\n----------\nThe Yii2-Oauth2-Server is free software. It is released under the terms of the Apache License.\nPlease see [`LICENSE.md`](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhertogh%2Fyii2-oauth2-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhertogh%2Fyii2-oauth2-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhertogh%2Fyii2-oauth2-server/lists"}