Hello,
I want to create indexedsecret tokens with the REST API.
session_token = get_session_token()
headers["Authorization"] = session_token
response = requests.post(
"{PRIVACYIDEA_URL}/token/init",
headers=headers,
data={
"genkey": 1,
"type": "indexedsecret",
"user": "test",
"realm": "ldaprealm",
},
)
print(response.json())
This is the result
{"detail": {"otpkey": {"description": "OTP seed", "img":
"data:image/png;base64,iV[...]CYII=", "value":
"seed://00713e042d3"}, "serial": "PIIX0003CC7B",
"threadid": 13968028}, "id": 1, "jsonrpc": "2.0", "result": {"status":
true, "value": true}, "time": 1706264356.1969066, "version": "privacyIDEA
3.9.2", "versionnumber": "3.9.2", "signature":
"rsa_sha256_pss:9602e[...]1c"}
The images are QR Codes and not a index table. I am a little bit confused. Do I understand something wrong?
Also if I create a indexedsecret with the webui, I don’t get any image with the index table.
P.S.: I think it would be a good idea to add indexedsecret as optional tag.