Sometimes it's necessary to connect to a SaaS environment of Identity Panel from PowerShell or other scripting language in order to interact directly with the ReST API.
Examples include pulling reports from scripts, or calling Service Panel forms.
Daemonized authentication to Identity Panel requires:
- Configuring a credential pair using the Install Service page
- Connecting and authenticating with SCRAM-SHA512
- Passing the session data with each request
The trickiest part of this process is the SCRAM-SHA authentication as this IETF protocol requires correct performance of the algorithm, and requires access to a couple cryptographic primitives, including SHA512, and HMAC.
See the following link for an example PowerShell script that, given appropriate credentials and connection settings, will open a connection to SaaS Identity Panel and return a web session that may be used for ReST API calls.