\Generation2\OAuth2\Client\Provider
OpenIDProvider¶
-
class
D3strukt0r\OAuth2\Client\Provider\OpenIDProvider¶ Internal use for translations.
-
constant
ACCESS_TOKEN_RESOURCE_OWNER_ID¶
-
protected property
$host¶ string — Default host.
-
public
getHost() → string¶ Gets host.
Returns: string — xxx
-
public
setHost($host) → $this¶ Sets host. Can be used for example when you testing the service-account in localhost.
Parameters: - $host (string) – (Required) The domain for accessing the user data
Returns: $this — xxx
-
public
getBaseAuthorizationUrl() → string¶ Returns the base URL for authorizing a client.
Eg. https://oauth.service.com/authorize
Returns: string — xxx
-
public
getBaseAccessTokenUrl($params) → string¶ Returns the base URL for requesting an access token.
Eg. https://oauth.service.com/token
Parameters: - $params (array) – (Required) Special parameters
Returns: string — xxx
-
public
getResourceOwnerDetailsUrl($token) → string¶ Returns the URL for requesting the resource owner’s details.
Parameters: - $token (League\OAuth2\Client\Token\AccessToken) – (Required) The received access token from the server
Returns: string — xxx
-
protected
getDefaultScopes() → array¶ Returns the default scopes used by this provider.
This should only be the scopes that are required to request the details of the resource owner, rather than all the available scopes.
Returns: array — xxx
-
protected
getScopeSeparator() → string¶ Get the string used to separate scopes.
Returns: string — xxx
-
protected
checkResponse($response, $data) → void¶ Checks a provider response for errors.
Parameters: - $response (Psr\Http\Message\ResponseInterface) – (Required) The response from the server
- $data (array|string) – (Required) Parsed response data
Throws: League\OAuth2\Client\Provider\Exception\IdentityProviderExceptionReturns: void — xxx
-
protected
createResourceOwner($response, $token) → integer|null¶ Generates a resource owner object from a successful resource owner details request.
Parameters: - $response (array) – (Required) Response data from server
- $token (League\OAuth2\Client\Token\AccessToken) – (Required) The used access token
Returns: League\OAuth2\Client\Provider\ResourceOwnerInterface— xxx
-
constant