OneIdentity / safeguard-ps

One Identity Safeguard PowerShell scripting resources
Apache License 2.0
22 stars 27 forks source link

Unable to log in using Connect-Safeguard with Identity Provider-getting <could not parse response content> #525

Closed sgundlach3 closed 4 months ago

sgundlach3 commented 4 months ago

I am successfully able to log in using a local account, but when I try to log in using an identity provider, I am getting message: 400: Bad Request -- At C:\Users\cpamops\Documents\WindowsPowerShell\Modules\safeguard-ps\7.0.68972\sg-utilities.psm1:181 char:5

I even tried stepping through the Connect-Safeguard command and I noticed there are Identity Provider Options with [descriptions] in brackets that I had not seen before with other customers:

PS C:\Data\Spectrum> Connect-Safeguard cmdlet Connect-Safeguard at command pipeline position 1 Supply values for the following parameters: Appliance: atlspp2.spg.spectrumplastics.com (certificate, local, CFF5DF90-27D6-4D5E-96E8-496F543C1522 [External Federation], ad1 [ppcglobal.local], ad2 [spg.spectrumplastics.com]) Provider: ad2 Username: sherry.gundlach-adm 400: Bad Request -- At C:\Users\cpamops\Documents\WindowsPowerShell\Modules\safeguard-ps\7.0.68972\sg-utilities.psm1:181 char:5

Can you provide direction? Thanks.

sgundlach3 commented 4 months ago

I figured out my issue. I needed to use a fully qualified user name. sherry.gundlach-adm@spectrumplastics.com and then I was successfully able to log in. Closing this ticket.