Files
Andrew MartinezandGitHub 2a12985526 Fix.openziti.ziti.3356.www.authenticate.headers (#169)
* for openziti/ziti#3356 add www-authenticate headers

- adds www-authenticate headers to all responses
- moves to swagger 0.33.1
- updates readme
- updates version checking in powershell and bash
2026-02-12 13:41:23 -05:00

117 lines
3.3 KiB
YAML

---
paths:
identity-types:
get:
summary: List available identity types
description: |
Retrieves a list of identity types; supports filtering, sorting, and pagination. Requires admin access.
security:
- ztSession: [ ]
- oauth2: [ openid ]
tags:
- Identity
operationId: listIdentityTypes
parameters:
- $ref: '../shared/parameters.yml#/limit'
- $ref: '../shared/parameters.yml#/offset'
- $ref: '../shared/parameters.yml#/filter'
responses:
'200':
$ref: '#/responses/listIdentityTypes'
'401':
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
'400':
$ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
'429':
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
'503':
$ref: '../shared/standard-responses.yml#/responses/serverUnavailableResponse'
identity-types-id:
parameters:
- $ref: '../shared/parameters.yml#/id'
get:
summary: Retrieves a identity type
description: Retrieves a single identity type by id. Requires admin access.
security:
- ztSession: [ ]
- oauth2: [ openid ]
tags:
- Identity
operationId: detailIdentityType
responses:
'200':
$ref: '#/responses/detailIdentityType'
'404':
$ref: '../shared/standard-responses.yml#/responses/notFoundResponse'
'401':
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
'429':
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
'503':
$ref: '../shared/standard-responses.yml#/responses/serverUnavailableResponse'
responses:
listIdentityTypes:
description: A list of identity types
headers:
WWW-Authenticate:
description: "Denotes different type of security token related information"
type: array
items:
type: string
schema:
$ref: '#/definitions/listIdentityTypesEnvelope'
detailIdentityType:
description: A single identity type
headers:
WWW-Authenticate:
description: "Denotes different type of security token related information"
type: array
items:
type: string
schema:
$ref: '#/definitions/detailIdentityTypeEnvelope'
definitions:
identityType:
type: string
enum:
- User
- Device
- Service
- Router
- Default
listIdentityTypesEnvelope:
type: object
required:
- meta
- data
properties:
meta:
$ref: '../shared/standard-responses.yml#/definitions/meta'
data:
$ref: '#/definitions/identityTypeList'
detailIdentityTypeEnvelope:
type: object
required:
- meta
- data
properties:
meta:
$ref: '../shared/standard-responses.yml#/definitions/meta'
data:
$ref: '#/definitions/identityTypeDetail'
identityTypeList:
type: array
items:
$ref: '#/definitions/identityTypeDetail'
identityTypeDetail:
type: object
allOf:
- $ref: '../shared/base-entity.yml#/definitions/baseEntity'
- type: object
properties:
name:
type: string