Z
Z
ZPPTr2020-07-20 19:43:50
Yii
ZPPTr, 2020-07-20 19:43:50

How to properly configure url for authclient in Yii2?

Hello!
The essence of the problem is this... I
installed this extension https://github.com/yiisoft/yii2-authclient
I added my authorization client and configured it according to the instructions.
I got this config

'components' => [
        'authClientCollection' => [
            'class' => \yii\authclient\Collection::class,
            'httpClient' => [
                'responseConfig' => [
                    'format' => 'json',
                ]
            ],
            'clients' => [
                'my-client' => [
                    'class' => \yii\authclient\OpenIdConnect,  
                    .........


Now, in order for my-client to work, I pass authclient=my-client to $_GET and the request goes where it needs to, but it comes back without this parameter and I get 404.

Can anyone come across how to set this thing up to work?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question