yiiauth / gitlab
GitLab OAuth2 for yii2-authclient
Installs: 3 556
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 3
Open Issues: 2
Requires
- php: ~7.3 || 8.0
- yiisoft/yii2-authclient: ~2.1
This package is auto-updated.
Last update: 2024-12-16 15:26:54 UTC
README
This extension adds GitLab OAuth2 supporting for yii2-authclient.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require yiiauth/gitlab
or add
"yiiauth/gitlab": "~0.1"
to the require
section of your composer.json.
Usage
You must read the yii2-authclient docs
Register your application in GitLab
and add the GitLab client to your auth clients.
'components' => [ 'authClientCollection' => [ 'class' => yii\authclient\Collection::class, 'clients' => [ 'gitlab' => [ 'class' => \yiiauth\gitlab\GitLabClient::class, 'domain' => 'https://gitlab.com', 'clientId' => 'gitlab_client_id', 'clientSecret' => 'gitlab_client_secret', ], // other clients ], ], // ... ]