Notice when using jws tokens the token parameter is sent as b'<token_value>' instead of just <token_value>. Does Horizon have logic to parse out the token value when jws is being used as the token provider? I realize the logic involved would be trivial, but it just seemed odd that the token would be formatted differently depending on which token provider is in use.
My use case does not involve Horizon but rather a custom application that uses keystone for identity.
This is what the callback payload looks like when using fernet tokens (using https:/ /httpbin. org/post as a stand-in for the callback):
"form": { SC6H85K0_ iOVSoYyYSo8CC2- Tc0wa9LwxvDlL2D nFNREPFUyCw5yaF mqW8FhHZW45TE1c 1ZzaLrYVV4ggvzC fmfzZtkk4P3AwHz a3LJLefmca1IzIT A2z3RV4AQ2j- FqLC60L8gOJ27Q2 iPN5hpX7yTPNH- EJfsKOX34HUAGU"
"token": "gAAAAABdC74Zol
}
This is what it looks like when using jws tokens:
"form": { V1QiLCJhbGciOiJ FUzI1NiJ9. eyJzdWIiOiI4ZTJ kYWRmYjcwNGU0OD g1OWYyNzI1NWI0Z jRjMTkxZCIsImlh dCI6MTU2MTA1MDg 3OCwiZXhwIjoxNT YxMDY1Mjc4LCJvc GVuc3RhY2tfbWV0 aG9kcyI6WyJvcGV uaWQiXSwib3Blbn N0YWNrX2F1ZGl0X 2lkcyI6WyJiNjdZ OWJXSlRZMnpFQUJ aZm1PdEZ3Il0sIm 9wZW5zdGFja19nc m91cF9pZHMiOltd LCJvcGVuc3RhY2t faWRwX2lkIjoidz NpZCIsIm9wZW5zd GFja19wcm90b2Nv bF9pZCI6Im9wZW5 pZCJ9.Q77MWAgyI lFjHJgEPajXbI72 qR9KelV29oi7KQ1 ydZsWncKThkfRKJ reBoKM2pLcPZp3w hol9T8lPEppb4wk Og'"
"token": "b'eyJ0eXAiOiJK
}
Notice when using jws tokens the token parameter is sent as b'<token_value>' instead of just <token_value>. Does Horizon have logic to parse out the token value when jws is being used as the token provider? I realize the logic involved would be trivial, but it just seemed odd that the token would be formatted differently depending on which token provider is in use.