Token

An Object

Note

Drop in one of our language drivers to accelerate your development.
Here are links to some of our popular Cookbooks to help you get started!

Parent

This Token is contained within a Cluster.

Properties

The following properties are available:

Property Type Default Read-Only Description
_doc string No The primary ID
_system object No Metadata maintained by the system
client_authorities array No
client_id string No
client_redirect_uri string No
client_resource_ids array No
expiration object No
platform_id string No
registrar_id string No
tenant_id string No
user_directory_id string No
user_domain_id string No
user_identity_id string No
user_principal_id string No
user_principal_name string No

Methods

Expire Access

POST /tokens/access/{accessTokenId}/expire

Parameters (2)

Parameters

Name Required Type Description
accessTokenId Yes string
refresh No string

Expire Refresh

POST /tokens/refresh/{refreshTokenId}/expire

Parameters (2)

Parameters

Name Required Type Description
refreshTokenId Yes string
access No string

Lists Token (…/refresh)

Retrieves a list of Token instances

GET /tokens/refresh

Parameters (3), response

Parameters

Name Required Type Description
sort No object Defines how to sort fields in the result set
skip No number Skips the result set cursor ahead the specified number of records
limit No number Specifies the number of records to be handed back in the result set
This method supports pagination.

Response

{
  "type": "object",
  "description": "Result Map",
  "properties": {
    "total_rows": {
      "type": "number"
    },
    "offset": {
      "type": "number"
    },
    "size": {
      "type": "number"
    },
    "rows": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/resultmap_token"
      }
    }
  }
}

Lists Token (…/access)

Retrieves a list of Token instances

GET /tokens/access

Parameters (3), response

Parameters

Name Required Type Description
sort No object Defines how to sort fields in the result set
skip No number Skips the result set cursor ahead the specified number of records
limit No number Specifies the number of records to be handed back in the result set
This method supports pagination.

Response

{
  "type": "object",
  "description": "Result Map",
  "properties": {
    "total_rows": {
      "type": "number"
    },
    "offset": {
      "type": "number"
    },
    "size": {
      "type": "number"
    },
    "rows": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/resultmap_token"
      }
    }
  }
}

Read Token (…/access/{accessTokenId})

Reads an instance of a Token

GET /tokens/access/{accessTokenId}

Parameters (1), response

Parameters

Name Required Type Description
accessTokenId Yes string

Response

{
  "type": "object",
  "extends": "document",
  "container": "cluster",
  "description": "Token",
  "properties": {
    "expiration": {
      "type": "object"
    },
    "client_id": {
      "type": "string"
    },
    "client_redirect_uri": {
      "type": "string"
    },
    "client_resource_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "client_authorities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "user_directory_id": {
      "type": "string"
    },
    "user_identity_id": {
      "type": "string"
    },
    "user_domain_id": {
      "type": "string"
    },
    "user_principal_id": {
      "type": "string"
    },
    "user_principal_name": {
      "type": "string"
    },
    "platform_id": {
      "type": "string"
    },
    "registrar_id": {
      "type": "string"
    },
    "tenant_id": {
      "type": "string"
    },
    "_doc": null,
    "_system": null
  }
}

Read Token (…/refresh/{refreshTokenId})

Reads an instance of a Token

GET /tokens/refresh/{refreshTokenId}

Parameters (1), response

Parameters

Name Required Type Description
refreshTokenId Yes string

Response

{
  "type": "object",
  "extends": "document",
  "container": "cluster",
  "description": "Token",
  "properties": {
    "expiration": {
      "type": "object"
    },
    "client_id": {
      "type": "string"
    },
    "client_redirect_uri": {
      "type": "string"
    },
    "client_resource_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "client_authorities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "user_directory_id": {
      "type": "string"
    },
    "user_identity_id": {
      "type": "string"
    },
    "user_domain_id": {
      "type": "string"
    },
    "user_principal_id": {
      "type": "string"
    },
    "user_principal_name": {
      "type": "string"
    },
    "platform_id": {
      "type": "string"
    },
    "registrar_id": {
      "type": "string"
    },
    "tenant_id": {
      "type": "string"
    },
    "_doc": null,
    "_system": null
  }
}

Schema


{
  "type": "object",
  "extends": "document",
  "container": "cluster",
  "description": "Token",
  "properties": {
    "expiration": {
      "type": "object"
    },
    "client_id": {
      "type": "string"
    },
    "client_redirect_uri": {
      "type": "string"
    },
    "client_resource_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "client_authorities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "user_directory_id": {
      "type": "string"
    },
    "user_identity_id": {
      "type": "string"
    },
    "user_domain_id": {
      "type": "string"
    },
    "user_principal_id": {
      "type": "string"
    },
    "user_principal_name": {
      "type": "string"
    },
    "platform_id": {
      "type": "string"
    },
    "registrar_id": {
      "type": "string"
    },
    "tenant_id": {
      "type": "string"
    },
    "_doc": null,
    "_system": null
  },
  "id": "token"
}