how do I make a get request to msonline azure public keys api - https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys?appid={appid}

0
I am doing JWT token authentication from an Azure platform generated token for an applications exposed Rest API.  I am able to get a response using a browser to the posted url, but cannot get a response in code.  I have tried both Post and GET but it is meant to be a Get from the documentation I have read. Has anyone else done Token authentication against Azure and encountered/resolved this situation.  
asked
2 answers
0

You could try changing the Log Level for REST Consume to TRACE, make a request, and see what the response is.

With this log level set you will be able to see what Mendix is sending and what the response is. You may spot something different between what the browser is sending, and what Mendix is sending.

Good luck!

answered
0

Couple of issues on this one – I made an error in the url I am calling – I had copied the tenant variable over the discovery part of the static part of the url – The tenant id and appid are being set by variables – so the url was slightly wrong.  Also, I am behind a firewall so the request call is actually being blocked from my local environment – I tested the correct url from the cloud dev environment and received a response. Didn’t expect the firewall issue as I am able to call the url in the browser from within the same estate and get a response.

Anyway, this is now working.

answered