AccessToken extension to the User interface
package |
Default |
---|
__construct()
accessToken() : array
array
JSON
clearCache() : $this
$this
the User to enable fluent use
expired() : boolean
boolean
fetch( $arg0, $arg1, $arg2 = null, $arg3 = null, $arg4 = null) : $this
param $resource [string] - the resource to fetch. param $callback [callable] - The callback function returning the results. fetch($resource, $callback)
Fetches a JSON resource using this Access Token.
param $method [string] - the HTTP method to user. param $resource [string] - the resource to fetch. param $headers [array] - extra headers to pass to the request. param $payload [Buffer] - payload to send to the server. param $callback [callable] - The callback function returning the results. fetch($method, $resource, $headers, $payload, $callback)
string
callable | string
array
Buffer
callable
$this
idToken() : array
array
JSON
introspect( $arg0, $arg1 = null) : $this
param $callback [callable] - The callback function returning the results. introspect($callback)
Introspect access token. This is an OAuth2 extension that allow to verify if an access token is still valid.
param $tokenType [string] - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token". param $callback [callable] - The callback function returning the results. introspect($tokenType, $callback)
callable | string
callable
$this
isAuthorised( $arg0, $arg1) : $this
deprecated |
---|
string
callable
$this
isAuthorized( $arg0, $arg1) : $this
string
callable
$this
the User to enable fluent use
logout( $arg0) : $this
callable
$this
opaqueAccessToken() : string
string
String
opaqueIdToken() : string
string
String
opaqueRefreshToken() : string
string
String
principal() : array
For a simple user/password based auth, it's likely to contain a JSON object with the following structure:
{ "username", "tim" }
array
JSON representation of the Principal
refresh( $arg0) : $this
callable
$this
refreshToken() : array
array
JSON
revoke( $arg0, $arg1) : $this
string
callable
$this
setAuthProvider( $arg0) : void
after it has been deserialized.
AuthProvider
setTrustJWT( $arg0) : $this
boolean
$this
tokenType() : string
string
userInfo( $arg0) : $this
callable
$this