worteks/humhub-auth-oidc

OIDC connector for humhub

0.3 2020-01-10 11:28 UTC

This package is auto-updated.

Last update: 2024-11-10 22:27:03 UTC


README

This extension adds OIDC authentication support for HumHub.

Based on yii2auth-oidc

Latest Stable Version Total Downloads Monthly Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require worteks/humhub-auth-oidc

or add

"worteks/humhub-auth-oidc": "~0.3"

to the require section of your composer.json.

Usage

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\humhub\authclient\OIDC',
        'domain' => 'https://auth.example.com',
        'clientId' => 'myClientId',
        'clientSecret' => 'myClientSecret',
        'defaultTitle' => 'auth.example.com',
        'cssIcon' => 'fa fa-sign-in',
      ],
    ],
    // ...
]

Check yii2auth-oidc for details on available configuration options.