Forum Discussion
requests to a JWT API token
Hi Anonymous ,
Did you directly add credential in header? If you pass credential by authentication window(after you click "connect", the authentication window will prompt), will it work? You also could try to use Fiddler to find the detailed error information
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi
my request works with the following code :
let
url = "https://xxxxxxxx",
body = "{ ""username"": ""xxxxxxxxxxx"", ""password"": ""xxxx""}",
Parsed_JSON = Json.Document(body),
BuildQueryString = Uri.BuildQueryString(Parsed_JSON),
token = Json.Document(Web.Contents(url,[Headers = [#"Content-Type"="application/json"], Content = Text.ToBinary(body) ] )),
#"Converti en table" = Record.ToTable(token)
in
#"Converti en table"
- jnickell5 years ago
Helper V
Just wanted to say thank you. Your post gave me the help I needed to solve my own similar JWT authentication issue