Dear Team,
Hope you all are doing well and Happy NEw Year 2020 in advance.
I am new to web API objects in APPIAN and trying to develop one. Goal is to make data in one of my data store entity available to third party system outside APPIAN.
Here is what I did : Created a web API with GET 'Query Data Store' template and passed my data store entity in it. Created a http connected system with basic authentication usernam/password combo. Created third party credntials as well (not sure if this is required). Created integration object with basic authentication.
Now when I am hitting the URL in same session of chrome or test the API within API, I get expected data in JSON format 200 Ok. Eveything looks fine here but as soon as access the api URL from other machin or in other session of IE, I get following error :
{"resource":"\/suite\/webapi\/rpttr","error":"APNX-1-4187-000","message":"Authentication failed. Please check your credentials and try again.","title":"An Error Has Occurred"}
and when I am testing integration object : I get following error "Appian was not able to authenticate with the username and password you provided. This request requires Basic authentication."
I know its a naive question but any help to sort this would be appreciated.
Thanks.
Discussion posts and replies are publicly visible
Any other suggestions from anyone ?
Please check the security for web api and Datastore objects whether that user has proper access.
Can you clarify how you are calling the Web API using your service account? Once you add the user to the service accounts group, you cannot authenticate using username / password via your API anymore - you must use the API key.
Also, once you add a user to the Service Accounts group, they shouldn't be able to log into Appian any more using that account.
Hi Robert,
I have a similar issue with Web API Basic Authentication. I followed below steps for my use case:
1. Created an API with a start process ,it's an xml POST method. So a header with Content-Type application/xml exists.
2. My third party system needs Basic authentication , so created an Appian user and added into Web API viewer groups .
When i run the URL generated from Web API wit some body in Appian it works but when i run in POSTMAN with username and password and header content -type , it is giving 404- Not Found Error,
Anyone Please suggest what could be possible issues I'm doing here?
Thanks in Advance.
Hi Vidhu,There are two way to authenticate API.1. Create service account, go to admin console and create a web key. You can use this API key in Header.
2. You can provide basic user authentication (username and password). User should be either basic user or system admin.
As I can see, You have added user in Service Account group, therefore you are getting this 'Authentication Error'. Can you please remove the user from Service Account group and give access it?