OAuth2 Request Interface

Describes OAuth2 Request interface.


getGrantType

Retrieve provided grant type.

$grant_type = $request->getGrantType();

withGrantType

Return an instance with provided grant type.

$request = $request->withGrantType($grant_type);

getClientId

Retrieve provided client id.

$client_id = $request->getClientId();

withClientId

Return an instance with provided client id.

$request = $request->withClientId($client_id);

getClientSecret

Retrieve provided client secret.

$client_secret = $request->getClientSecret();

withClientSecret

Return an instance with provided client secret.

$request = $request->withClientSecret($client_secret);

getUsername

Retrieve provided username.

$username = $request->getUsername();

withUsername

Return an instance with provided username.

$request = $request->withUsername($username);

getPassword

Retrieve provided password.

$password = $request->getPassword();

withPassword

Return an instance with provided password.

$request = $request->withPassword($password);

getScope

Retrieve provided scope.

$scope = $request->getScope();

withScope

Return an instance with provided scope.

$request = $request->withScope($scope);