Overview

Namespaces

  • Authoritarian
    • Exception
      • Flow
    • Flow
  • PHP

Classes

  • AbstractFlow
  • AuthorizationCodeFlow
  • ClientCredentialsFlow
  • ResourceOwnerPasswordFlow
  • Overview
  • Namespace
  • Class
  • Tree

Class ResourceOwnerPasswordFlow

Implementation of Resource Owner Password Flow

Authoritarian\Flow\AbstractFlow
Extended by Authoritarian\Flow\ResourceOwnerPasswordFlow
Namespace: Authoritarian\Flow
Located at Authoritarian/Flow/ResourceOwnerPasswordFlow.php
Methods summary
public
# __construct( string $username, string $password )

Parameters

$username
string
$username
$password
string
$password
public Guzzle\Http\Message\RequestInterface
# getRequest( )

Get the request to the Access Token

Get the request to the Access Token

Returns

Guzzle\Http\Message\RequestInterface

Throws

Authoritarian\Exception\Flow\MissingTokenUrlException
When the OAuth token URL wasn't set
MissingClientCredentialException
When the app's client credentials wasn't set

Overrides

Authoritarian\Flow\AbstractFlow::getRequest()
Methods inherited from Authoritarian\Flow\AbstractFlow
removeNullItems(), setClientCredential(), setHttpClient(), setScope(), setTokenUrl()
Constants summary
string GRANT_TYPE 'password'
#
Properties summary
protected mixed $username
#
protected mixed $password
#
Properties inherited from Authoritarian\Flow\AbstractFlow
$client, $clientId, $clientSecret, $scope, $tokenUrl
API documentation generated by ApiGen 2.8.0