Hello, i am trying to obtain a new application token (self-hosted taiga) , I followed REST API Documentation :
- Requested auth_code with /api/v1/application-tokens/authorize
- Validated auth_code with /api/v1/application-tokens/validate
As explained in documentation I was expecting to get a cyphered_token:
{
“cyphered_token”: “eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTEyOEtXIn0.E-Ee1cRgG0JEd90yJu-Dgl_vwKHTHdPy2YHRbCsMvfiJx0OvR12E8g.kGwJPnWQJecFPEae.ebQtpRNPbKh6FBS-LSUhw1xNARl0Q5loCO4fAk00LHFqcDpAwba7LHeR3MPx9T9LfA.KM-Id_041g8OdWaseGyV8g”
}
Instead i get this:
{“token”: “eyJhcHBfdG9rZW5faWQiOjN9:1rmsWP:2APPsxGuloGhuvlCBbgFAVgKxnRJz9vhkul9nuUTTV0”}
but it does not seems to be a valid crypted token so decryption fails:
token=JWE().decrypt(cyphered_token, keys=[sym_key])
File “/home/superuser/.local/lib/python3.9/site-packages/jwkest/jwe.py”, line 843, in decrypt
jwe = JWEnc().unpack(token)
File “/home/superuser/.local/lib/python3.9/site-packages/jwkest/jwt.py”, line 67, in unpack
part = split_token(token)
File “/home/superuser/.local/lib/python3.9/site-packages/jwkest/jwt.py”, line 16, in split_token
raise BadSyntax(token,
jwkest.BadSyntax: expected token to contain at least one dot: b’eyJhcHBfdG9rZW5faWQiOjN9:1rmsWP:2APPsxGuloGhuvlCBbgFAVgKxnRJz9vhkul9nuUTTV0’
What am I doing wrong?
Thank you for your help
Max