OAuthAuthenticator
interface OAuthAuthenticator implements Authenticator
Methods
Get the access token.
Get the refresh token.
Get the expiry.
Get the reported scopes, or null when the provider did not report them.
Determine if the authenticator has expired.
Determine if the authenticator has not expired.
Determine if the authenticator is refreshable.
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
DateTimeImmutable|null
getExpiresAt()
Get the expiry.
at line 31
array|null
getScopes()
Get the reported scopes, or null when the provider did not report them.
at line 36
bool
hasExpired()
Determine if the authenticator has expired.
at line 41
bool
hasNotExpired()
Determine if the authenticator has not expired.
at line 46
bool
isRefreshable()
Determine if the authenticator is refreshable.
at line 51
bool
isNotRefreshable()
Determine if the authenticator is not refreshable.