-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv-auth.json
95 lines (95 loc) · 2.17 KB
/
env-auth.json
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
85
86
87
88
89
90
91
92
93
94
95
{
"openapi": "3.0.0",
"info": {
"title": "Authenticate with env credentials",
"description": "",
"version": ""
},
"servers": [
{
"url": "https://api.frontegg.com/auth/vendor",
"description": "EU Region"
},
{
"url": "https://api.us.frontegg.com/auth/vendor",
"description": "US Region"
},
{
"url": "https://api.ca.frontegg.com/auth/vendor",
"description": "CA Region"
},
{
"url": "https://api.au.frontegg.com/auth/vendor",
"description": "AU Region",
"variables": {
"domain": {
"default": "app-xxxx"
}
}
}
],
"components": {
"schemas": {
"VendorAuthenticationRequest": {
"type": "object",
"required": [
"clientId",
"secret"
],
"properties": {
"clientId": {
"type": "string"
},
"secret": {
"type": "string"
}
}
},
"VendorAuthenticationResponse": {
"type": "object",
"properties": {
"token": {
"type": "string"
},
"expiresIn": {
"type": "number"
}
}
}
}
},
"paths": {
"/": {
"post": {
"operationId": "authenticate_vendor",
"summary": "Authenticate with env credentials",
"description": "Authenticate your environment to get a management token for your environment using the `clientId` and `API key`.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VendorAuthenticationRequest"
}
}
}
},
"responses": {
"200": {
"description": "Authentication succeeded",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VendorAuthenticationResponse"
}
}
}
},
"401": {
"description": "Invalid authentication"
}
}
}
}
}
}