Trait MacAuthorizationTrait
Enables MAC
header authorization for providers.
Namespace: League\OAuth2\Client\Tool
Link: Message Authentication Code (MAC) Tokens
Located at src/Tool/MacAuthorizationTrait.php
Link: Message Authentication Code (MAC) Tokens
Located at src/Tool/MacAuthorizationTrait.php
abstract protected
string
|
#
getTokenId(
Returns the id of this token for MAC generation. |
abstract protected
string
|
#
getMacSignature( string $id, integer $ts, string $nonce )
Returns the MAC signature for the current request. |
abstract protected
string
|
#
getRandomState( integer $length )
Returns a new random string to use as the state parameter in an authorization flow. |
protected
array
|
#
getAuthorizationHeaders(
Returns the authorization headers for the 'mac' grant. |