AuthleteEnvConfiguration implements AuthleteConfiguration Uses AuthleteConfigurationTrait
An implementation of the \Authlete\Conf\AuthleteConfiguration interface that utilizes environment variables.
This class refers to the following environment variables.
-
AUTHLETE_BASE_URL
- The base URL of an Authlete server. -
AUTHLETE_SERVICEOWNER_APIKEY
- The API key of a service owner. -
AUTHLETE_SERVICEOWNER_APISECRET
- The API secret of a service owner. -
AUTHLETE_SERVICE_APIKEY
- The API key of a service. -
AUTHLETE_SERVICE_APISECRET
- The API secret of a service.
Interfaces, Classes and Traits
- AuthleteConfiguration
- Configuration to access Authlete APIs.
Table of Contents
- __construct() : mixed
- Constructor which refers to the environment variables and sets up the corresponding properties.
- getBaseUrl() : string
- The base URL of an Authlete server.
- getServiceApiKey() : string
- Get the API key of a service.
- getServiceApiSecret() : string
- Get the API secret of a service.
- getServiceOwnerApiKey() : string
- Get the API key of a service owner.
- getServiceOwnerApiSecret() : string
- Get the API secret of a service owner.
Methods
__construct()
Constructor which refers to the environment variables and sets up the corresponding properties.
public
__construct() : mixed
Return values
mixed —getBaseUrl()
The base URL of an Authlete server.
public
getBaseUrl() : string
Return values
string —The base URL of an Authlete server.
getServiceApiKey()
Get the API key of a service.
public
getServiceApiKey() : string
Return values
string —The API key of a service.
getServiceApiSecret()
Get the API secret of a service.
public
getServiceApiSecret() : string
Return values
string —The API secret of a service.
getServiceOwnerApiKey()
Get the API key of a service owner.
public
getServiceOwnerApiKey() : string
Return values
string —The API key of a service owner.
getServiceOwnerApiSecret()
Get the API secret of a service owner.
public
getServiceOwnerApiSecret() : string
Return values
string —The API secret of a service owner.