Authentication

Authorization Unlike Web applications, RESTful APIs are usually stateless, which means sessions or cookies should not be used. Therefore, each request should come with some sort of authentication credentials because the user authentication status may not be maintained by sessions or cookies. A common practice is to send a secret access token with each request to authenticate the user. Since an access token can be used to uniquely identify and authenticate a user, API requests should always be s

authclient\widgets\GooglePlusButton $callback

$callback public property Callback JavaScript function name or URL config. public string getCallback ( )public void setCallback ( $callback )

authclient\widgets\GooglePlusButton generateCallback()

generateCallback() protected method Generates JavaScript callback function, which will be used to handle auth response. protected string generateCallback ( $url = [] )$url array Auth callback URL. return string JavaScript function name.

authclient\widgets\GooglePlusButton getCallback()

getCallback() public method public string getCallback ( )return string Callback JavaScript function name.

authclient\widgets\GooglePlusButton init()

init() public method Initializes the widget. public void init ( )

authclient\widgets\AuthChoiceStyleAsset $css

$css public property public $css = ['authchoice.css']

authclient\widgets\GooglePlusButton $buttonHtmlOptions

$buttonHtmlOptions public property Button tag HTML options, which will be merged with the default ones. public array $buttonHtmlOptions = []

authclient\widgets\AuthChoiceItem $client

$client public property Auth client instance. public yii\authclient\ClientInterface $client = null

authclient\widgets\AuthChoiceStyleAsset $sourcePath

$sourcePath public property public $sourcePath = '@yii/authclient/assets'

authclient\widgets\AuthChoiceAsset $js

$js public property public $js = ['authchoice.js']