Class for dealing with Oauth2
| Methods | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
public
|
__construct(string $id, string $secret, string $uri)
Load default settings
Load default settings Parameters
|
# | ||||||||
public
|
request_authorization_url(string $url, string $scope, string $state, string $login_hint = false): string
Build a URL to request an authorization
Build a URL to request an authorization Parameters
|
# | ||||||||
public
|
request_token(string $url, string $authorization_code, array $headers = []): array
Use curl to exchange an authorization code for a token
Use curl to exchange an authorization code for a token Parameters
|
# | ||||||||
public
|
refresh_token(string $url, string $refresh_token): array
Use curl to refresh an access token
Use curl to refresh an access token Parameters
|
# | ||||||||