PHPackages                             worteks/yii2auth-oidc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. worteks/yii2auth-oidc

ActiveLibrary

worteks/yii2auth-oidc
=====================

OIDC connector for yii2-authclient

0.2(6y ago)416.8k↓41.3%[2 issues](https://github.com/Worteks/yii2auth-oidc/issues)1MITPHP

Since Sep 20Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Worteks/yii2auth-oidc)[ Packagist](https://packagist.org/packages/worteks/yii2auth-oidc)[ Docs](http://github.com/Worteks/yii2auth-oidc)[ RSS](/packages/worteks-yii2auth-oidc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

worteks/yii2auth-oidc
=====================

[](#worteksyii2auth-oidc)

This extension adds [OIDC](https://openid.net/specs/openid-connect-core-1_0.html) support for [yii2-authclient](https://github.com/yiisoft/yii2-authclient).

[![Latest Stable Version](https://camo.githubusercontent.com/b143186271b6c003872fcbe91a9126b823217eb60f223c6bef1cae88a7bd1894/68747470733a2f2f706f7365722e707567782e6f72672f776f7274656b732f79696932617574682d6f6964632f762f737461626c65)](https://packagist.org/packages/worteks/yii2auth-oidc)[![Total Downloads](https://camo.githubusercontent.com/4dde01526a0c2bd2e9e04258fc85ead8b262405c0c2786991f1b18412ffc0136/68747470733a2f2f706f7365722e707567782e6f72672f776f7274656b732f79696932617574682d6f6964632f646f776e6c6f616473)](https://packagist.org/packages/worteks/yii2auth-oidc)[![Monthly Downloads](https://camo.githubusercontent.com/5b8073c07723a55dfbc1ab19c599f9970a68a3461f2a7622c21063136eca6d7c/68747470733a2f2f706f7365722e707567782e6f72672f776f7274656b732f79696932617574682d6f6964632f642f6d6f6e74686c79)](https://packagist.org/packages/worteks/yii2auth-oidc)[![License](https://camo.githubusercontent.com/ea1764f4bc30b8380415be1e282e41be3f1bd7f86b2434ce8cce4edf6beb9eaf/68747470733a2f2f706f7365722e707567782e6f72672f776f7274656b732f79696932617574682d6f6964632f6c6963656e7365)](https://packagist.org/packages/worteks/yii2auth-oidc)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require worteks/yii2auth-oidc

```

or add

```
"worteks/yii2auth-oidc": "~0.2"
```

to the `require` section of your composer.json.

Usage
-----

[](#usage)

You must read the yii2-authclient [docs](https://github.com/yiisoft/yii2/blob/master/docs/guide/security-auth-clients.md)

Set up an OpenID Provider (OP) and configure your Yii2 app as a Relying Party (RP) on your Authentication Server.

Example application configuration:

```
'components' => [
   'authClientCollection' => [
     'clients' => [
        // ...
        'oidc' => [
          'class' => 'worteks\yii\authclient\OIDC',
          'domain' => 'https://auth.example.com',
          'clientId' => 'myClientId',
          'clientSecret' => 'myClientSecret',
        ],
     ],
    // ...
]
```

ConfigurationMandatoryDefault toDescriptiondomainyesURL of your authentication serverclientIdyesYour client idclientSecretyesYour client secretauthUrlno'/oauth2/authorize'Authorization EndpointtokenUrlno'/oauth2/token'Token EndpointapiBaseUrlno'/oauth2'Base for Userinfo EndpointuserInfoUrlno'userinfo'Userinfo Endpointscopeyes'openid profile email'What access privileges are being requesteddefaultNamenoYii auth client idAuth service name to use in DB record, CSSdefaultTitlenoYii auth client idAuth service title to display in views

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~111 days

Total

2

Last Release

2321d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7e8eb41e596cd707abe577a759f160b58a0f49ee0eb32d932a23ac17436ab3e?d=identicon)[soisik](/maintainers/soisik)

---

Top Contributors

[![soisik](https://avatars.githubusercontent.com/u/25224512?v=4)](https://github.com/soisik "soisik (4 commits)")

---

Tags

oauth2oidcoidc-clientopenid-connectopenidconnectyii2yii2-extensionoauth2yii2OpenID Connectauthclientopenidconnect

### Embed Badge

![Health badge](/badges/worteks-yii2auth-oidc/health.svg)

```
[![Health](https://phpackages.com/badges/worteks-yii2auth-oidc/health.svg)](https://phpackages.com/packages/worteks-yii2auth-oidc)
```

###  Alternatives

[kotchuprik/yii2-instagram-authclient

Instagram extenion for using via yii2-authclient

2048.5k](/packages/kotchuprik-yii2-instagram-authclient)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
