Hey everyone,
Im trying to get an OTCSTicket from OTDS using a Microsoft SSO token, but Im a bit confused about the "/authentication/token" endpoint and some of the request body parameters.
Looking at the docs for this endpoint, it mentions that tokenBinary is required, but im not really sure what exactly is expected there when using a Microsoft SSO token.
For example, if I send:
{
"code": "token from SSO",
"targetResourceId": "****"
}
I get:
{
"status": -1073741821,
"error": "Authentication failed",
"errorDetails": null
}
when I try:
{
"ticketType": "OTDSTICKET",
"tokenBinary": "token from SSO"
}
I get:
{
"status": -1,
"error": "Unexpected content in request",
"errorDetails": null
}
im unsure about:
- what the tokenBinary value is
- what the code value is
- if this is even the correct endpoint
If anyone has an example of how this is supposed to work that would be really helpful.
Thanks!