Bug 28787: Send a notice with the TOTP token
[srvgit] / api / v1 / swagger / paths / auth.yaml
1 ---
2 /auth/send_otp_token:
3   post:
4     x-mojo-to: TwoFactorAuth#send_otp_token
5     operationId: send_otp_token
6     tags:
7       - 2fa
8     summary: Send OTP token for second step authentication
9     produces:
10       - application/json
11     responses:
12       "200":
13         description: OK
14         schema:
15           type: object
16           properties:
17             access_token:
18               type: string
19             token_type:
20               type: string
21             expires_in:
22               type: integer
23           additionalProperties: false
24       "400":
25         description: Bad Request
26         schema:
27           $ref: "../swagger.yaml#/definitions/error"
28       "403":
29         description: Access forbidden
30         schema:
31           $ref: "../swagger.yaml#/definitions/error"
32       "500":
33         description: |
34           Internal server error. Possible `error_code` attribute values:
35
36           * `internal_server_error`
37         schema:
38           $ref: "../swagger.yaml#/definitions/error"