I have created an internal Web API and written Powershell modules to interact with it.
Some of the actions in the Web API needs authorization.
Hence, in Powershell I need to do something like this:
Invoke-WebRequest $url -Method Get -ContentType "application/json" -Credential (Get-Credential)
But the user is already opening the powershell prompt with their own user, and that should be enough to get authorized.
I guess I am looking for a feature like in Internet Explorer, where I can add a internal website as a Intranet site, therefor it won’t ask for extra credentials.
Hope it makes sence.