{ "swagger": "2.0", "info": { "version": "1.0.0", "title": "OpenTox OpenSSO Authentication", "description": "Minimal service to generate and destroy authentication-token.", "contact": { "name": "Micha Rautenberg, in silico toxicology", "url": "http://www.in-silico.ch", "email": "support@in-silico.ch" } }, "host": "enm.in-silico.ch", "schemes": [ "https" ], "paths": { "/miniaa/authenticate": { "post": { "tags": [ "authentication" ], "description": "Authentication against OpenSSO. Returns token. Requires Username and Password.", "operationId": "login", "consumes": [ "text/plain" ], "produces": [ "text/plain" ], "parameters": [ { "in": "formData", "name": "username", "description": "username", "required": true, "type": "string" }, { "in": "formData", "name": "password", "description": "password", "required": true, "type": "string", "format": "password" } ], "responses": { "200": { "$ref": "#/responses/200" }, "400": { "$ref": "#/responses/400" }, "401": { "$ref": "#/responses/401" } } } }, "/miniaa/logout": { "post": { "description": "Devalidates a token. Requires Subjectid.", "operationId": "login", "tags": [ "authentication" ], "consumes": [ "text/plain" ], "produces": [ "text/plain" ], "parameters": [ { "in": "formData", "name": "subjectid", "description": "subjectid", "required": true, "type": "string" } ], "responses": { "200": { "$ref": "#/responses/200" }, "400": { "$ref": "#/responses/400" }, "401": { "$ref": "#/responses/401" } } } } }, "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" } }, "tags": [ { "name": "authentication", "description": "minimal Authentication service" } ] }