I’ve got some REST API code i’m ready to implement with my UD site that runs off IIS instance, with Windows Authentication and claims based rights setup for the pages. I’ve reviewed the documentation as well as some of the topics around the forums, but i’m having trouble getting it to work.
I’ve been attempting an invoke-restmethod to login, but get a 401.2 when i attempt this. Creds are mine, so they have full admin rights to the site itself.
$login = Invoke-RestMethod -Uri https://wfa.domain.local/login -Method POST -Body (@{ username = "user"; password = 'password' } | ConvertTo-Json) -SessionVariable "Session"