Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions Itential/Platform/OpenAPISpecs/OpenApiWhoamI-BasicAuth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"openapi": "3.1.0",
"info": {
"title": "IAP",
"version": "1.0.0",
"description": "A simple OpenAPI example"
},
"paths": {
"/whoami": {
"get": {
"summary": "Gets the authorization data for the logged in user",
"description": "Gets the authorization data for the logged in user",
"tags": ["authentication"],
"operationId": "WhoAmI",
"responses": {
"200": {
"description": "Authorization data for a user",
"content": {
"application/json": {
"schema": {
"title": "result",
"type": "object",
"properties": {}
}
}
}
},
"500": {
"description": "Error response from API"
}
},
"security": [
{
"QueryAuth": [],
"CookieAuth": [],
"BasicAuth": []
}
]
}
}
},
"components": {
"securitySchemes":{
"CookieAuth": {
"type": "apiKey",
"name": "token",
"in": "cookie"
},
"QueryAuth": {
"type": "apiKey",
"name": "token",
"in": "query"
},
"BasicAuth": {
"type": "http",
"scheme": "basic"
}
}
}
}
53 changes: 53 additions & 0 deletions Itential/Platform/OpenAPISpecs/OpenApiWhoamI-ClientCreds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"openapi": "3.1.0",
"info": {
"title": "IAP",
"version": "1.0.0",
"description": "A simple OpenAPI example"
},
"paths": {
"/whoami": {
"get": {
"summary": "Gets the authorization data for the logged in user",
"description": "Gets the authorization data for the logged in user",
"tags": ["authentication"],
"operationId": "WhoAmI",
"responses": {
"200": {
"description": "Authorization data for a user",
"content": {
"application/json": {
"schema": {
"title": "result",
"type": "object",
"properties": {}
}
}
}
},
"500": {
"description": "Error response from API"
}
},
"security": [
{
"ServiceAccount": []
}
]
}
}
},
"components": {
"securitySchemes": {
"ServiceAccount": {
"type": "oauth2",
"flows": {
"clientCredentials": {
"tokenUrl": "https://platform/oauth/token",
"scopes": {}
}
}
}
}
}
}