Model·OAuth module
AccessToken
A model in the OAuth module, with 16 members for templates, 12 API properties and 16 members for admin templates.
Templates view
Properties 15
Take no arguments.
-
#
hasRefreshToken()
-
bool
- Does Access Token have a related Refresh Token?
-
#
hasScope()
-
bool
- Does Access Token have scope
-
#
isValid()
-
bool
- Determine if access token is valid for use
-
#
isCurrentToken()
-
bool
- Is this the token used for this request?
-
#
getExpiryDate()
-
?DateTime
-
#
getCreated()
-
?DateTime
- Date the record was created.
-
#
isNewRecord()
Not in API & Jobs
-
bool
- Check if the record is a new record
-
#
isHierarchicalModel()
Not in API & Jobs
-
bool
- Check whether a model is a hierarchical model, i.e. can have children
-
#
isVersionedModel()
Not in API & Jobs
-
bool
- Check whether a model is versioned
Methods 1
Take arguments. The API serialises only getters that need none.
-
#
hasScopeIncluded(string $scope)
-
bool
- Does this record have this scope?
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 12
Read-only values on the record.
-
#
refreshToken
-
bool
- Does Access Token have a related Refresh Token?
-
#
scope
-
bool
- Does Access Token have scope
-
#
valid
-
bool
- Determine if access token is valid for use
-
#
currentToken
-
bool
- Is this the token used for this request?
-
#
created
-
?DateTime
- Date the record was created.
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 15
Take no arguments.
-
#
hasRefreshToken()
-
bool
- Does Access Token have a related Refresh Token?
-
#
hasScope()
-
bool
- Does Access Token have scope
-
#
isValid()
-
bool
- Determine if access token is valid for use
-
#
isCurrentToken()
-
bool
- Is this the token used for this request?
-
#
getExpiryDate()
-
?DateTime
-
#
getCreated()
-
?DateTime
- Date the record was created.
-
#
isNewRecord()
Not in API & Jobs
-
bool
- Check if the record is a new record
-
#
isHierarchicalModel()
Not in API & Jobs
-
bool
- Check whether a model is a hierarchical model, i.e. can have children
-
#
isVersionedModel()
Not in API & Jobs
-
bool
- Check whether a model is versioned
Methods 1
Take arguments. The API serialises only getters that need none.
-
#
hasScopeIncluded(string $scope)
-
bool
- Does this record have this scope?
No members match the filter.