Without authentication enabled on my Seq instance, I'm perfectly able to work with it from powershell, that is, the following just works:
Invoke-RestMethod "https://myseqinstance/api/dashboards?shared"
However, now that I've enabled Active Directory authentication and added a login for myself, I can still access the Seq UI, but calling the API fails.
Invoke-RestMethod "https://myseqinstance/api/dashboards?shared" -UseDefaultCredentials
This now produces an HTTP 401 - Unauthorized error.
I figured that I might need to login, so I've tried a HTTP GET and POST of the following
# Produces HTTP 403
Invoke-RestMethod "https://myseqinstance/api/users/login" -UseDefaultCredentials
# Produces HTTP 400
Invoke-RestMethod -Method Post "https://myseqinstance/api/users/login" -UseDefaultCredentials
So neither works, even though integrated security should be possible... How can I authenticate against the Seq API using integrated security?