Download the PHP package rob006/yii2-simple-auth-yii-authenticator without Composer
On this page you can find all versions of the php package rob006/yii2-simple-auth-yii-authenticator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rob006/yii2-simple-auth-yii-authenticator
More information about rob006/yii2-simple-auth-yii-authenticator
Files in rob006/yii2-simple-auth-yii-authenticator
Package yii2-simple-auth-yii-authenticator
Short Description Yii 2 extension that provides helper for authenticate Request from yii2-httpclient package.
License MIT
Informations about the package yii2-simple-auth-yii-authenticator
Helper for authenticate Request from yii2-httpclient package
Yii 2 extension that provides helper for authenticate Request
from
yii2-httpclient package.
This is a simple helper for yii2-simple-auth which
simplify authenticating Request
object from official Yii 2 httpclient extension.
Read yii2-simple-auth README
to get more details about authentication process and configuration.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
You can simply authenticate Request
object from official Yii 2 httpclient
by using YiiAuthenticator
helper:
By default Authenticator
sends authentication token in the header of the request. Alternatively
you can send it in GET or POST param of request. Be careful when you using POST method because
this will set request method as POST and all data set by \yii\httpclient\Request::setData()
will
be sent as POST data and will not be included in the URL.
Authentication by GET param with custom secret key:
Authentication by POST param:
All versions of yii2-simple-auth-yii-authenticator with dependencies
yiisoft/yii2-httpclient Version ~2.0.1
rob006/yii2-simple-auth Version ^1.0