mbegan / Okta-PSModule

Okta API Powershell Wrapper Module
Other
102 stars 31 forks source link

SYSTEM context issues unless using -UseBasicParsing #52

Open Skatterbrainz opened 3 years ago

Skatterbrainz commented 3 years ago

This module works fine running as any authenticated/authorized user from a server on-prem. However, if I try to invoke oktaGetUserById under the local SYSTEM context, it fails to connect to the endpoint.

If I send the URL for the base endpoint (e.g. "https://.oktapreview.com", etc.) and run it through Invoke-WebRequest it works fine, but not as SYSTEM. I have to add -UseBasicParsing in order to get back any useful result. Is this already addressed as a global variable or parameter that I'm not seeing? I'd like to run this from an Azure Automation runbook, but it won't work in Azure and won't work on a hybrid worker unless I provide user credentials (not the SYSTEM default).

Background: Windows Server 2016 PowerShell 5.1 Execution Policy = byPass TLS = 1.2

Skatterbrainz commented 3 years ago

It doesn't look like there's been any updates to this module in a quite a while. If this project has been deprecated for something newer/better please let me know?