{"swagger": "2.0", "info": {"description": "Service for issuing and testing JWTs.", "version": "0.1.0", "title": "JWT issuance"}, "host": "jwt.auth.cm-ops.tech", "schemes": ["https"], "consumes": ["application/json", "application/x-www-form-urlencoded"], "produces": ["application/json"], "security": [{"iam": []}, {"jwt": []}], "paths": {"/health": {"get": {"summary": "Get health of service", "description": "Get health of service.", "operationId": "getHealth", "parameters": [], "responses": {"200": {"description": "Service health.", "schema": {"$ref": "#/definitions/OK"}}}}}, "/iam/token": {"post": {"summary": "Get JWT using", "description": "Get known EIA reports.", "operationId": "postIamToken", "parameters": [{"name": "aud", "in": "formData", "required": false, "type": "string"}, {"name": "scopes", "in": "formData", "required": false, "type": "array", "items": {"type": "string"}, "collectionFormat": "ssv"}], "responses": {"200": {"description": "JWT", "schema": {"$ref": "#/definitions/JWT"}}, "401": {"description": "API Error.", "schema": {"$ref": "#/definitions/Error"}}, "403": {"description": "API Error.", "schema": {"$ref": "#/definitions/Error"}}}, "security": [{"iam": []}]}}, "/jwt/test": {"get": {"summary": "Test JWT", "description": "Test JWT", "operationId": "getJwtTest", "parameters": [], "responses": {"200": {"description": "Service health.", "schema": {"$ref": "#/definitions/OK"}}, "401": {"description": "API Error.", "schema": {"$ref": "#/definitions/Error"}}, "403": {"description": "API Error.", "schema": {"$ref": "#/definitions/Error"}}}}}}, "securityDefinitions": {"iam": {"type": "apiKey", "name": "Authorization", "in": "header"}, "jwt": {"type": "apiKey", "name": "Authorization", "in": "header"}}, "definitions": {"Error": {"type": "object", "properties": {"message": {"type": "string"}}, "example": {"message": "Unauthorized"}}, "OK": {"type": "object", "properties": {"ok": {"type": "boolean"}}, "example": {"ok": true}}, "JWT": {"type": "object", "properties": {"token_type": {"type": "string", "enum": ["Bearer"]}, "access_token": {"type": "string"}, "expires_in": {"type": "number"}}, "example": {"token_type": "Bearer", "access_token": "<token>", "expires_in": 1600000000}}}, "parameters": {"aud": {"name": "aud", "in": "formData", "required": false, "type": "string"}, "scopes": {"name": "scopes", "in": "formData", "required": false, "type": "array", "items": {"type": "string"}, "collectionFormat": "ssv"}}, "responses": {"Error": {"description": "API Error.", "schema": {"$ref": "#/definitions/Error"}}, "JWT": {"description": "JWT", "schema": {"$ref": "#/definitions/JWT"}}, "OK": {"description": "Service health.", "schema": {"$ref": "#/definitions/OK"}}}, "x-bravado": {"aliases": [{"resource": "health", "operation": "getHealth", "alias": "check"}, {"resource": "iam", "operation": "postIamToken", "alias": "authorize"}, {"resource": "jwt", "operation": "getJwtTest", "alias": "test"}]}}