xref: /freebsd/crypto/krb5/doc/html/_sources/appdev/refs/macros/KRB5_RESPONDER_QUESTION_OTP.rst.txt (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1.. highlight:: c
2
3.. _KRB5-RESPONDER-QUESTION-OTP-data:
4
5KRB5_RESPONDER_QUESTION_OTP
6===========================
7
8..
9.. data:: KRB5_RESPONDER_QUESTION_OTP
10..
11
12OTP responder question.
13
14The OTP responder question is asked when the KDC indicates that an OTP value is required in order to complete the authentication. The JSON format of the challenge is:
15::
16
17    {
18      "service": <string (optional)>,
19      "tokenInfo": [
20        {
21          "flags":     <number>,
22          "vendor":    <string (optional)>,
23          "challenge": <string (optional)>,
24          "length":    <number (optional)>,
25          "format":    <number (optional)>,
26          "tokenID":   <string (optional)>,
27          "algID":     <string (optional)>,
28        },
29        ...
30      ]
31    }
32
33The answer to the question MUST be JSON formatted:
34::
35
36    {
37      "tokeninfo": <number>,
38      "value":     <string (optional)>,
39      "pin":       <string (optional)>,
40    }
41
42For more detail, please see RFC 6560.
43
44
45================================== ======================
46``KRB5_RESPONDER_QUESTION_OTP``       ``"otp"``
47================================== ======================
48