Invoke-RestMethod : {"ErrorCode":"APPAP306E","ErrorMsg":"Authentication error for App ID [Test-App02-CCP]

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Invoke-RestMethod : {"ErrorCode":"APPAP306E","ErrorMsg":"Authentication error for App ID [Test-App02-CCP]

L4 Transporter

Hi Guys,

 

I am working on the training and I am missing something very obvious to do with the IP address 10.0.20.1 and the computer name: comp01a.acme.corp. Just need to be pointed in the direction of what to look at it would be most appreciated.

 

When I run the test from the browser I get the same error

https://ccp.acme.corp/AIMWebService/api/Accounts?AppID=Test-App02-CCP&Query=Safe=Test-DB-MySQL;VirtualUsername=cardbapp

 

{"ErrorCode":"APPAP306E","ErrorMsg":"Authentication error for App ID [Test-App02-CCP]. Reason: APPAP133E Failed to verify application authentication data: IP \"10.0.20.1;comp01a.acme.corp\" is unauthorized"}

 

from the script

Invoke-RestMethod : {"ErrorCode":"APPAP306E","ErrorMsg":"Authentication error for App ID [Test-App02-CCP]. Reason:

APPAP133E Failed to verify application authentication data: IP \"10.0.20.1;comp01a.acme.corp\" is unauthorized"}

At C:\demo-scripts\CCP\GetPassword-REST.ps1:22 char:15

+ ... $secrets = (Invoke-RestMethod -Method Get -Uri "https://$ccp_srv/AIMW ...

+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  + CategoryInfo     : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc

  eption

  + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

1 accepted solution

Accepted Solutions

L4 Transporter

I ran into a similar issue. Even though I had included the IP on the "Allowed Machines" I was still getting the same error. The way I resolved it was by deleting the IP from the list and typing it instead of copy-paste. That resolved my issue.

View solution in original post

3 REPLIES 3

L4 Transporter

I ran into a similar issue. Even though I had included the IP on the "Allowed Machines" I was still getting the same error. The way I resolved it was by deleting the IP from the list and typing it instead of copy-paste. That resolved my issue.

Hi @Fatjon Nushi​,

Thanks for sharing!

 

-Niv

Thanks @Fatjon Nushi​  , this also solved my error.

  • 1 accepted solution
  • 1402 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!