Created a simple test endpoint with authentication enabled.
Created app token.
And following the documentation (https://docs.ironmansoftware.com/api/security#accessing-secure-endpoints) I cannot get Invoke-RestMethod to work against this API as it is always unauthorized.
Invoke-RestMethod http://localhost:5000/activedirectory/user/test -Headers @{ Authorization = "Bearer " }
Invoke-RestMethod : The remote server returned an error: (401) Unauthorized.
Any suggestions?
Product: PowerShell Universal
Version: 1.5.1