-
Notifications
You must be signed in to change notification settings - Fork 0
/
rest-client.http
49 lines (42 loc) · 975 Bytes
/
rest-client.http
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
@protocol = http
@address = localhost
# @port = 8443
@content-type = application/json
@accept = application/json
# @name jwksKey
GET {{protocol}}://{{address}}/.well-known/jwks.json
Content-Type: {{content-type}}
Accept: {{accept}}
###
# @name simpleEcho
GET {{protocol}}://{{address}}/echo
Content-Type: {{content-type}}
Accept: {{accept}}
###
# @name signJwt
POST {{protocol}}://{{address}}/jwt/sign
Content-Type: {{content-type}}
Accept: {{accept}}
{
"iss": "http://example.org/",
"sub": "[email protected]",
"iat": 1712240289,
"exp": 1743776289,
"aud": "http://example.org",
"flavour": "chocolate",
"parent_token": "abc",
"some_url_value": "http://example.org/about",
"http://example.org/parent_token": "xyz"
}
//exp: 2025-04-04T15:18:09
###
# @name echoWithToken
POST {{protocol}}://{{address}}/echo
Content-Type: {{content-type}}
Accept: {{accept}}
Authorization: Bearer {{signJwt.response.body.jwt}}
Cookie: vanilla
{
"ping": "pong"
}
###