worteks / yii2auth-oidc
OIDC connector for yii2-authclient
Installs: 9 730
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 2
Requires
- yiisoft/yii2-authclient: ~2.1
This package is auto-updated.
Last update: 2024-12-10 22:01:03 UTC
README
This extension adds OIDC support for yii2-authclient.
Installation
The preferred way to install this extension is through composer.
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
You must read the yii2-authclient docs
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', ], ], // ... ]