| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- {
- "operationId": "requestToken",
- "summary": "Request a new access token from credentials",
- "tags": ["tokens"],
- "requestBody": {
- "description": "Credentials Payload",
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "additionalProperties": false,
- "properties": {
- "identity": {
- "minLength": 1,
- "type": "string",
- "example": "[email protected]"
- },
- "scope": {
- "minLength": 1,
- "type": "string",
- "enum": ["user"],
- "example": "user"
- },
- "secret": {
- "minLength": 1,
- "type": "string",
- "example": "bigredhorsebanana"
- }
- },
- "required": ["identity", "secret"],
- "type": "object"
- },
- "example": {
- "identity": "[email protected]",
- "secret": "bigredhorsebanana"
- }
- }
- }
- },
- "responses": {
- "200": {
- "content": {
- "application/json": {
- "examples": {
- "default": {
- "value": {
- "expires": "2025-02-04T20:40:46.340Z",
- "token": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.ey...xaHKYr3Kk6MvkUjcC4"
- }
- }
- },
- "schema": {
- "oneOf": [
- {
- "$ref": "../../components/token-object.json"
- },
- {
- "$ref": "../../components/token-challenge.json"
- }
- ]
- }
- }
- },
- "description": "200 response"
- }
- }
- }
|