drewkerrigan/nagios-http-json

MicrosoftOnline Authentification

Closed this issue · 1 comments

Hello
There are now a lot of URLs that are deployed on the Microsoft Cloud
Sometimes it is necessary as on other sites with SSO to connect to "https://login.microsoftonline.com" with a form:
Username (email)
submit
password
submit
Is it possible to add this authentication method?

I think this might actually be already possible by using an HTTP Header, e.g. "Authorization: Bearer inserttokenhere"

We already have a Flag that can be used to add additional headers.

-A '{"Authorization": "Bearer inserttokenhere"}'

Refer to the Azure docs on how to get a token.