sindll/yii2-cas

There is no license information available for the latest version (v1.0.3) of this package.

The cas extension for the Yii framework

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.3 2021-08-16 09:16 UTC

This package is auto-updated.

Last update: 2024-05-16 15:25:26 UTC


README

Installation

php composer.phar require --prefer-dist sindll/yii2-cas:"^1.0"

or add

"sindll/yii2-cas": "^1.0"

Configuration

main.php

return [
    //....
    'bootstrap' => [
        //...
        'cas',
    ],
    'modules' => [
        //...
        'cas' => [
            'class' => 'sindll\cas\Module',
        ],
    ],
    'components' => [
        //...
        'user' => [
            //...
            'loginUrl' => ['cas/passport/login'],
        ],
    ]
];

params.php

return [
    //...
    'cas' => [
        'host' => '',
        'port' => '',
        'path' => '',
        'log'  => '',
        'handle_logout_request' => [
            'check_client'    => false, // default
            'allowed_clients' => [], // default
        ],
    ]
];