-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml.gt
84 lines (80 loc) · 2.2 KB
/
openapi.yaml.gt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
openapi: 3.0.0
info:
title: Claimy
description: A prototype JWT issuer that permits customization of the tokens via Javascript.
version: 0.0.1
servers:
- url: /
description: "localhost"
tags:
- name: keys
description: Retrieve public keys used to verify JWTs issued by claimy
externalDocs:
description: JOSE specification
url: https://www.iana.org/assignments/jose/jose.xhtml#web-key-types
- name: issue
description: Obtain a JWT token
externalDocs:
description: Parse and view JWT tokens
url: https://jwt.io
paths:
/keys:
get:
summary: Returns the JWK key set of public keys
description: Returns the JWK key set of public keys used to verify the signatures of JWT tokens issued by claimy.
tags:
- keys
responses:
'200':
description: A JWK key set
content:
application/jwk-set+json:
schema:
type: object
properties:
keys:
type: array
description: An array of JWK keys
items:
type: object
/keys/{keyID}:
get:
summary: Returns a public verification key with the given key id
tags:
- keys
parameters:
- in: path
name: keyID
schema:
type: string
required: true
description: the public key identifier
examples:
current:
value: {{.defaultKeyID}}
summary: the current public key in use by this server
responses:
'200':
description: A JWK public key
content:
application/jwk+json:
schema:
type: object
application/x-pem-file:
schema:
type: string
'404':
description: The key with that id was not found
/issue:
get:
summary: Issues a JWT token to the caller
operationId: issueToken
tags:
- issue
responses:
'200':
description: A JWT token
content:
application/jwt:
schema:
type: string