Hi everyone,
This is my Powershell script to login:
$url='http://[AppServerIP]/AppServer/auth/apphost'
$bi=@{
"authString"="Module=DialogUser;User=***;Password=***"
}
$authJson = ConvertTo-Json $bi -Depth 2
$LoginRequest2 = Invoke-RestMethod -Uri $url -Body $authJson.ToString() -Method POST -UseDefaultCredentials -Headers @{Accept="application/json"} -SessionVariable session2
$LoginRequest2.Content
But I receive "401 Unauthorized" response. I verify and in web.config file the Anonymous authentication is disabled and the Windows Authentication is enabled. If I enable the Anonymous authentication I can login.
I want use the Windows Authentication for Security reasons.
I use OIM version 8.1.5.
Can someone help me?
Thanks in advance,
Giuseppe