Revoke a token
static boolean
AuthSubRevokeToken
(string $token, [ $client = null])
Upgrades a single use token to a session token
static void
getAuthSubSessionToken
(string $token, [ $client = null])
get token information
static void
getAuthSubTokenInfo
(string $token, [ $client = null])
Creates a URI to request a single-use AuthSub token.
static void
getAuthSubTokenUri
(string $next, string $scope, [int $secure = 0], [int $session = 0])
-
string
$next: (required) URL identifying the service to be accessed. The resulting token will enable access to the specified service only. Some services may limit scope further, such as read-only access.
-
string
$scope: (required) URL identifying the service to be accessed. The resulting token will enable access to the specified service only. Some services may limit scope further, such as read-only access.
-
int
$secure: (optional) Boolean flag indicating whether the authentication transaction should issue a secure token (1) or a non-secure token (0). Secure tokens are available to registered applications only.
-
int
$session: (optional) Boolean flag indicating whether the one-time-use token may be exchanged for a session token (1) or not (0).
static void
getHttpClient
( $token, [ $client = null])