mbegan / Duo-PSModule

Duo Admin API Powershell Wrapper Module
https://duo.com/docs/adminapi
Other
58 stars 36 forks source link

Can't authenticate? #54

Open theviking28 opened 2 years ago

theviking28 commented 2 years ago

I created the Duo Admin API app, followed the instructions to enter my keys into the duo_org.ps1 file.

I try using duogetuser and it always says "40102 ; Invalid integration key in request credentials". I have tried behind various networks/firewalls. I have deleted the app from duo side and re created it, making sure every character is exactly correct for my keys.

Does this module just not work with the latest version of Duo api? It seems like this project has been dead for a while. Would really love to get this working and use it.

echetto commented 1 year ago

Try changing the hashtable, I got the same message when doing the encrypted sKey. Unencrypted sKey worked fine (test it). So my mistake was having this in the hash table in Duo_org.ps1 sKey = [string]"long encrypted skey"

Started to work when I changed it to:

sKeyEnc = [string]"long encrypted skey" Hope this helps

mpunderw commented 1 year ago

I know it's been awhile, but I'm running into the same issues. Using the sKey in plaintext or encrypted both returns the same error. I've deleted and recreated the app and still the same issue.

40102 ; Invalid integration key in request credentials At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Duo\Duo.psm1:31 char:5 throw $formatError


 CategoryInfo          : OperationStopped: (:) [], FormatException
 FullyQualifiedErrorId : 40102 ; Invalid integration key in request credentials