{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/auth/v1/websocktunnel-token-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Token for connecting a worker to websocktunnel proxy\n",
  "properties": {
    "expires": {
      "description": "The time at which the JWT will expire.\n",
      "format": "date-time",
      "title": "Expires",
      "type": "string"
    },
    "token": {
      "description": "The JWT to be used as `Bearer <token>` when connecting to the service.\n",
      "title": "Token",
      "type": "string"
    },
    "wstAudience": {
      "description": "Audience identifying the websocktunnel servers that will honor this token; this will be the\nsame as the requested `wstAudience`.\n",
      "pattern": "^[a-zA-Z0-9_-]{1,38}$",
      "title": "Websocktunnel Audience",
      "type": "string"
    },
    "wstClient": {
      "description": "Id for the websocktunnel client connection; this will be the same as the requested `wstClient`.\n",
      "pattern": "^[a-zA-Z0-9_~.%-]+$",
      "title": "Websocktunnel Client",
      "type": "string"
    }
  },
  "required": [
    "wstClient",
    "wstAudience",
    "token",
    "expires"
  ],
  "title": "Websocktunnel Token Response",
  "type": "object"
}