1 /**
2 * @oas [post] /auth/session
3 * operationId: PostSession
4 * summary: Set Authentication Session
5 * description: Set the cookie session ID of an admin user. The admin must be previously authenticated with the `/auth/user/{provider}` API route first,
6 * as the JWT token is required in the header of the request.
7 * x-authenticated: true
8 * x-codeSamples:
9 * - lang: Shell
10 * label: cURL
11 * source: |-
12 * curl -X POST '{backend_url}/auth/session' \
13 * -H 'Authorization: Bearer {jwt_token}'
14 * tags:
15 * - Auth
16 * responses:
17 * "200":
18 * description: OK
19 * content:
20 * application/json:
21 * schema:
22 * $ref: "#/components/schemas/AuthAdminSessionResponse"
23 * "400":
24 * $ref: "#/components/responses/400_error"
25 * "401":
26 * $ref: "#/components/responses/unauthorized"
27 * "404":
28 * $ref: "#/components/responses/not_found_error"
29 * "409":
30 * $ref: "#/components/responses/invalid_state_error"
31 * "422":
32 * $ref: "#/components/responses/invalid_request_error"
33 * "500":
34 * $ref: "#/components/responses/500_error"
35 *
36 */
37