Overview

Namespaces

  • Docta
    • MercadoLibre
      • Exception
      • OAuth2
        • Client
          • Test
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
      • Test
      • Tests
    • Psr7
    • Test
      • Handler
    • Tests
      • CookieJar
      • Event
      • Exception
      • Handler
      • Promise
      • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Test
          • Grant
          • Provider
            • Exception
            • Fake
          • Token
          • Tool
        • Token
        • Tool
  • None
  • Psr
    • Http
      • Message

Classes

  • RequestFactory

Traits

  • ArrayAccessorTrait
  • BearerAuthorizationTrait
  • MacAuthorizationTrait
  • ProviderRedirectTrait
  • QueryBuilderTrait
  • RequiredParameterTrait
  • Overview
  • Namespace
  • Class
  • Download

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
Methods summary
abstract protected string
# getTokenId( League\OAuth2\Client\Token\AccessToken $token )

Returns the id of this token for MAC generation.

Returns the id of this token for MAC generation.

Parameters

$token

Returns

string
abstract protected string
# getMacSignature( string $id, integer $ts, string $nonce )

Returns the MAC signature for the current request.

Returns the MAC signature for the current request.

Parameters

$id
$ts
$nonce

Returns

string
abstract protected string
# getRandomState( integer $length )

Returns a new random string to use as the state parameter in an authorization flow.

Returns a new random string to use as the state parameter in an authorization flow.

Parameters

$length
Length of the random string to be generated.

Returns

string
protected array
# getAuthorizationHeaders( League\OAuth2\Client\Token\AccessToken $token )

Returns the authorization headers for the 'mac' grant.

Returns the authorization headers for the 'mac' grant.

Parameters

$token

Returns

array

Codecoverageignore

MercadoLibre PHP SDK API documentation generated by ApiGen