{"id":15963793,"url":"https://github.com/worteks/yii2auth-oidc","last_synced_at":"2025-03-17T22:30:47.092Z","repository":{"id":57081943,"uuid":"209815132","full_name":"Worteks/yii2auth-oidc","owner":"Worteks","description":"OIDC connector for yii2-authclient","archived":false,"fork":false,"pushed_at":"2020-01-10T11:23:33.000Z","size":6,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-07T17:01:13.556Z","etag":null,"topics":["oauth2","oidc","oidc-client","openid-connect","openidconnect","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/Worteks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-20T14:51:18.000Z","updated_at":"2022-05-04T10:57:59.000Z","dependencies_parsed_at":"2022-08-24T14:58:18.594Z","dependency_job_id":null,"html_url":"https://github.com/Worteks/yii2auth-oidc","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Worteks%2Fyii2auth-oidc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Worteks%2Fyii2auth-oidc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Worteks%2Fyii2auth-oidc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Worteks%2Fyii2auth-oidc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Worteks","download_url":"https://codeload.github.com/Worteks/yii2auth-oidc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221701792,"owners_count":16866239,"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":["oauth2","oidc","oidc-client","openid-connect","openidconnect","yii2","yii2-extension"],"created_at":"2024-10-07T17:00:28.434Z","updated_at":"2024-10-27T15:58:52.805Z","avatar_url":"https://github.com/Worteks.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# worteks/yii2auth-oidc\n\nThis extension adds [OIDC](https://openid.net/specs/openid-connect-core-1_0.html) support for [yii2-authclient](https://github.com/yiisoft/yii2-authclient).\n\n[![Latest Stable Version](https://poser.pugx.org/worteks/yii2auth-oidc/v/stable)](https://packagist.org/packages/worteks/yii2auth-oidc)\n[![Total Downloads](https://poser.pugx.org/worteks/yii2auth-oidc/downloads)](https://packagist.org/packages/worteks/yii2auth-oidc)\n[![Monthly Downloads](https://poser.pugx.org/worteks/yii2auth-oidc/d/monthly)](https://packagist.org/packages/worteks/yii2auth-oidc)\n[![License](https://poser.pugx.org/worteks/yii2auth-oidc/license)](https://packagist.org/packages/worteks/yii2auth-oidc)\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require worteks/yii2auth-oidc\n```\n\nor add\n\n```json\n\"worteks/yii2auth-oidc\": \"~0.2\"\n```\n\nto the `require` section of your composer.json.\n\n## Usage\n\nYou must read the yii2-authclient [docs](https://github.com/yiisoft/yii2/blob/master/docs/guide/security-auth-clients.md)\n\nSet up an OpenID Provider (OP) and configure your Yii2 app as a Relying Party (RP) on your Authentication Server.\n\nExample application configuration:\n\n```php\n'components' =\u003e [\n   'authClientCollection' =\u003e [\n     'clients' =\u003e [\n        // ...\n        'oidc' =\u003e [\n          'class' =\u003e 'worteks\\yii\\authclient\\OIDC',\n          'domain' =\u003e 'https://auth.example.com',\n          'clientId' =\u003e 'myClientId',\n          'clientSecret' =\u003e 'myClientSecret',\n        ],\n     ],\n    // ...\n]\n```\n\n| Configuration   | Mandatory | Default to             | Description                                |\n|-----------------|-----------|------------------------|--------------------------------------------|\n| domain          | yes       |                        | URL of your authentication server          |\n| clientId        | yes       |                        | Your client id                             |\n| clientSecret    | yes       |                        | Your client secret                         |\n| authUrl         | no        | '/oauth2/authorize'    | Authorization Endpoint                     |\n| tokenUrl        | no        | '/oauth2/token'        | Token Endpoint                             |\n| apiBaseUrl      | no        | '/oauth2'              | Base for Userinfo Endpoint                 |\n| userInfoUrl     | no        | 'userinfo'             | Userinfo Endpoint                          |\n| scope           | yes       | 'openid profile email' | What access privileges are being requested |\n| defaultName     | no        | Yii auth client id     | Auth service name to use in DB record, CSS |\n| defaultTitle    | no        | Yii auth client id     | Auth service title to display in views     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworteks%2Fyii2auth-oidc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworteks%2Fyii2auth-oidc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworteks%2Fyii2auth-oidc/lists"}