메소드 | 설명 | |
---|---|---|
createRequest ( ) : |
Creates HTTP request instance. | |
getHttpClient ( ) : |
Returns HTTP client. | |
getId ( ) : string | ||
getName ( ) : string | ||
getNormalizeUserAttributeMap ( ) : array | ||
getRequestOptions ( ) : array | ||
getStateStorage ( ) : yii\authclient\StateStorageInterface | ||
getTitle ( ) : string | ||
getUserAttributes ( ) : array | ||
getViewOptions ( ) : array | ||
setHttpClient ( array | |
Sets HTTP client to be used. | |
setId ( string $id ) | ||
setName ( string $name ) | ||
setNormalizeUserAttributeMap ( array $normalizeUserAttributeMap ) | ||
setRequestOptions ( array $options ) | ||
setStateStorage ( yii\authclient\StateStorageInterface | array | string $stateStorage ) | ||
setTitle ( string $title ) | ||
setUserAttributes ( array $userAttributes ) | ||
setViewOptions ( array $viewOptions ) |
메소드 | 설명 | |
---|---|---|
createHttpClient ( string | array $reference ) : |
Creates HTTP client instance from reference or configuration. | |
defaultName ( ) : string | Generates service name. | |
defaultNormalizeUserAttributeMap ( ) : array | Returns the default [[normalizeUserAttributeMap]] value. | |
defaultRequestOptions ( ) : array | Returns default HTTP request options. | |
defaultTitle ( ) : string | Generates service title. | |
defaultViewOptions ( ) : array | Returns the default [[viewOptions]] value. | |
getState ( string $key ) : mixed | Returns persistent state value. | |
getStateKeyPrefix ( ) : string | Returns session key prefix, which is used to store internal states. | |
initUserAttributes ( ) : array | Initializes authenticated user attributes. | |
normalizeUserAttributes ( array $attributes ) : array | Normalize given user attributes according to [[normalizeUserAttributeMap]]. | |
removeState ( string $key ) : boolean | Removes persistent state value. | |
setState ( string $key, mixed $value ) | Sets persistent state. |
protected createHttpClient ( string | array $reference ) : |
||
$reference | string | array | component name or array configuration. |
리턴 | HTTP client instance. |
public createRequest ( ) : |
||
리턴 | HTTP request instance. |
protected defaultName ( ) : string | ||
리턴 | string | service name. |
protected defaultNormalizeUserAttributeMap ( ) : array | ||
리턴 | array | normalize attribute map. |
protected defaultRequestOptions ( ) : array | ||
리턴 | array | HTTP request options. |
protected defaultTitle ( ) : string | ||
리턴 | string | service title. |
protected defaultViewOptions ( ) : array | ||
리턴 | array | list of default [[viewOptions]] |
public getHttpClient ( ) : |
||
리턴 | internal HTTP client. |
public getNormalizeUserAttributeMap ( ) : array | ||
리턴 | array | normalize user attribute map. |
protected getStateKeyPrefix ( ) : string | ||
리턴 | string | session key prefix. |
public getStateStorage ( ) : yii\authclient\StateStorageInterface | ||
리턴 | yii\authclient\StateStorageInterface | stage storage. |
public getViewOptions ( ) : array | ||
리턴 | array | view options in format: optionName => optionValue |
abstract protected initUserAttributes ( ) : array | ||
리턴 | array | auth user attributes. |
protected normalizeUserAttributes ( array $attributes ) : array | ||
$attributes | array | raw attributes. |
리턴 | array | normalized attributes. |
protected removeState ( string $key ) : boolean | ||
$key | string | state key. |
리턴 | boolean | success. |
public setHttpClient ( array | |
||
$httpClient | array | |
internal HTTP client. |
public setNormalizeUserAttributeMap ( array $normalizeUserAttributeMap ) | ||
$normalizeUserAttributeMap | array | normalize user attribute map. |
public setRequestOptions ( array $options ) | ||
$options | array | HTTP request options. |
public setStateStorage ( yii\authclient\StateStorageInterface | array | string $stateStorage ) | ||
$stateStorage | yii\authclient\StateStorageInterface | array | string | stage storage to be used. |
public setUserAttributes ( array $userAttributes ) | ||
$userAttributes | array | list of user attributes |
public setViewOptions ( array $viewOptions ) | ||
$viewOptions | array | view options in format: optionName => optionValue |