OAuthAuthenticator
interface OAuthAuthenticator implements Authenticator
Methods
void
from
Authenticator
string
getAccessToken()
Get the access token.
string|null
getRefreshToken()
Get the refresh token.
CarbonInterface|null
getExpiresAt()
Get the expiry.
bool
hasExpired()
Determine if the authenticator has expired.
bool
hasNotExpired()
Determine if the authenticator has not expired.
bool
isRefreshable()
Determine if the authenticator is refreshable.
bool
isNotRefreshable()
Determine if the authenticator is not refreshable.
Details
in
Authenticator at line 14
void
set(PendingRequest $pendingRequest)
Apply the authentication to the request.
at line 14
string
getAccessToken()
Get the access token.
at line 19
string|null
getRefreshToken()
Get the refresh token.
at line 24
CarbonInterface|null
getExpiresAt()
Get the expiry.
at line 29
bool
hasExpired()
Determine if the authenticator has expired.
at line 34
bool
hasNotExpired()
Determine if the authenticator has not expired.
at line 39
bool
isRefreshable()
Determine if the authenticator is refreshable.
at line 44
bool
isNotRefreshable()
Determine if the authenticator is not refreshable.