SystemAuth extends BaseEndpoint implements Endpoint Uses EndpointTrait
Interfaces, Classes and Traits
Table of Contents
- $body : mixed
- $headerParameters : mixed
- $queryParameters : mixed
- __construct() : mixed
- Validate credentials for a registry and, if available, get an identity.
- getAuthenticationScopes() : array<string|int, mixed>
- Get security scopes of an endpoint.
- getBody() : array<string|int, mixed>
- Get body for an endpoint.
- getExtraHeaders() : array<string|int, mixed>
- getHeaders() : array<string|int, mixed>
- Get the headers of an endpoint.
- getMethod() : string
- Get the HTTP method of an endpoint (like GET, POST, ...).
- getQueryString() : string
- Get the query string of an endpoint without the starting ? (like foo=foo&bar=bar).
- getUri() : string
- Get the URI of an endpoint (like /foo-uri).
- parseResponse() : mixed
- getFormBody() : array<string|int, mixed>
- getFormOptionsResolver() : OptionsResolver
- getHeadersOptionsResolver() : OptionsResolver
- getMultipartBody() : array<string|int, mixed>
- getQueryOptionsResolver() : OptionsResolver
- getSerializedBody() : array<string|int, mixed>
- transformResponseBody() : AuthPostResponse200|null
Properties
$body
protected
mixed
$body
$headerParameters
protected
mixed
$headerParameters
= []
$queryParameters
protected
mixed
$queryParameters
= []
Methods
__construct()
Validate credentials for a registry and, if available, get an identity.
public
__construct(AuthConfig $authConfig) : mixed
Parameters
- $authConfig : AuthConfig
-
Authentication to check
Return values
mixed —getAuthenticationScopes()
Get security scopes of an endpoint.
public
getAuthenticationScopes() : array<string|int, mixed>
Return values
array<string|int, mixed> —getBody()
Get body for an endpoint.
public
getBody(SerializerInterface $serializer[, mixed $streamFactory = null ]) : array<string|int, mixed>
Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) And the second value consist of the body object.
Parameters
- $serializer : SerializerInterface
- $streamFactory : mixed = null
Return values
array<string|int, mixed> —getExtraHeaders()
public
getExtraHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed> —getHeaders()
Get the headers of an endpoint.
public
getHeaders([array<string|int, mixed> $baseHeaders = [] ]) : array<string|int, mixed>
Parameters
- $baseHeaders : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getMethod()
Get the HTTP method of an endpoint (like GET, POST, ...).
public
getMethod() : string
Return values
string —getQueryString()
Get the query string of an endpoint without the starting ? (like foo=foo&bar=bar).
public
getQueryString() : string
Return values
string —getUri()
Get the URI of an endpoint (like /foo-uri).
public
getUri() : string
Return values
string —parseResponse()
public
parseResponse(ResponseInterface $response, SerializerInterface $serializer[, string $fetchMode = Client::FETCH_OBJECT ]) : mixed
Parameters
- $response : ResponseInterface
- $serializer : SerializerInterface
- $fetchMode : string = Client::FETCH_OBJECT
Return values
mixed —getFormBody()
protected
getFormBody() : array<string|int, mixed>
Return values
array<string|int, mixed> —getFormOptionsResolver()
protected
getFormOptionsResolver() : OptionsResolver
Return values
OptionsResolver —getHeadersOptionsResolver()
protected
getHeadersOptionsResolver() : OptionsResolver
Return values
OptionsResolver —getMultipartBody()
protected
getMultipartBody([mixed $streamFactory = null ]) : array<string|int, mixed>
Parameters
- $streamFactory : mixed = null
Return values
array<string|int, mixed> —getQueryOptionsResolver()
protected
getQueryOptionsResolver() : OptionsResolver
Return values
OptionsResolver —getSerializedBody()
protected
getSerializedBody(SerializerInterface $serializer) : array<string|int, mixed>
Parameters
- $serializer : SerializerInterface
Return values
array<string|int, mixed> —transformResponseBody()
protected
transformResponseBody(string $body, int $status, SerializerInterface $serializer, string|null $contentType) : AuthPostResponse200|null
Parameters
- $body : string
- $status : int
- $serializer : SerializerInterface
- $contentType : string|null