Can we call the Web API created in appian using an integration created in the same application. I need to give access for a group to call the Web API and pass parameters into it using integration. When I try to do the above mentioned case it is failing due to auth issues. Is there anyway I could pass the credentials of whoever is calling the web api as they already have accounts in the application so that I can pass the authorization.
I got some questions:
Are you inside Appian calling a Web Api inside the same Appian?
Do you have another middleware tier? That needs to handle the WEB API calls? If not then why don’t you just call it from an expression rule instead and the same rule can be wrapped as the web Api ? (By doing this you will reuse the same code and remove the estar layer and the network traffic)
If your requirement really needs to make the call thru the Web API then Appian will call the web api as any other system so the authentication is required.
I haven’t tested this specific scenario but something that came to my mind is that the SSO permits to make calls from the end user browser (embedded interface for example) so we can think that making a call from the same Appian box can be considerate as a “loop back SSO”?
“If you are invoking an Appian Web API from a user's browser (for instance to populate a task list for use with an embedded interface)”
I haven’t tested it, but why don’t you open a support ticket and let us know what they say.
Here are some links that I think can help in this
Hi Abhishek, Which version of Appian you are using? Integration is changed drastically in newer versions. I am using 17.2 and integration is very basic. Now considering your case, are you using basic authentication in integration while calling WebAPI? its mentioned that if we call WebAPI with basic authentication, we should use "Pre-emptive Auth". i tried calling Web API from SOAP UI and without "Pre-emptive Auth" it failed. we need to figure out how that will be achieve from integration using basic authentication. You might know that Web API is usually used for external system to call Appian and Integration for Appian to call external system. In your case, is it really require for Integration to call Web API from within Appian? Did you identify other approach for your use case? Thanks.
This is technically possible.If you had a genuine use case for this, then I'd suggest using a "connected system" object to manager authentication, and track users with a parameter.That said, if you were on my team, I'd ask for a design review to understand why you proposed this pattern, and felt that you couldn't otherwise achieve your goal within Appian some other way. Essentially, it's almost never necessary, on a single server, to use an Appian Integration to Call an Appian Web API. (If you want to get two different Appian instances talking, this might be a suitable approach, but that's not this use case)
Probably don't do this.I've argued this down a number of times.The design pattern you're proposing adds avoidable network traffic and potential points of technical failure due to the network travel.
I like to use my Appian as a House metaphor here:
Say you're at home with a friend.You're in the kitchen and your friend is in the adjoining dining room.You want to talk to your friend.Would you rather:
(Unless you're trying to meet your daily fitbit steps goal, I suspect we'd agree that option 2 is preferable.)
So... our project management is telling us that we need to install some sort of inter-application abstraction layer between different applications on the same environment, such that they could potentially query data from each other, yet be completely independent from each other in a dependency hierarchy sense (such that any or all applications could be deployed, in any order, without being blocked by another application not being present in the environment). This means that if App A needs to query some data from App B, it's not sufficient to just use B's query rule within objects of A.
Also, the idea here is that no app should assume that another app is even on the same environment, or even in Appian. This pretty much rules out Option 2 from your scenario, as we don't necessarily know our friend's location (but we do know their phone number).
Thus far, some other Appian pros in our team's orbit have been telling me that Web APIs and Integrations are the perfect solution for this -- however in the dev environment I'm currently working in, I can't get an integration to successfully query even the simplest nugget of data from an internal Web API, regardless of how I try to authenticate it or anything.
Discussion posts and replies are publicly visible
© 2019 Appian. All rights reserved.