Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
16 replies
Subscribers
7 subscribers
Views
11484 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
How to use WEB API ? What authentication changes will be require ?
simples
over 7 years ago
Hi All,
#WebAPI
I have created a Web API in 16.2, have selected 'Start Process' as Template, Method is 'POST'.
It is working fine when I am testing that web API but I don't have any idea how I allow third party to access it. I tried to understand things mentioned on forum regarding Authentication but unable to understand.
Also I noticed that we don't receive URL for template 'Start Process', so I have only End Point.
Can someone please guide how we can publish our Web API and allow third party(Outside of Appian) to access it ?
OriginalPostID-247198
Discussion posts and replies are publicly visible
Parents
0
karlg
over 7 years ago
If it can help you, made it work perfectly with the following (under powershell), it's exactly as chetany mentionned :
$user = "userLogin"
$pass = "userPassword"
$pair = "${user}:${pass}"
$bytes = [System.Text.Encoding]::ASCII.GetBytes($pair)
$base64 = [System.Convert]::ToBase64String($bytes)
$basicAuthValue = "Basic $base64"
$headers = @{ Authorization = $basicAuthValue }
Invoke-WebRequest -uri "mySuperWebApiURL" -Headers $headers
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
karlg
over 7 years ago
If it can help you, made it work perfectly with the following (under powershell), it's exactly as chetany mentionned :
$user = "userLogin"
$pass = "userPassword"
$pair = "${user}:${pass}"
$bytes = [System.Text.Encoding]::ASCII.GetBytes($pair)
$base64 = [System.Convert]::ToBase64String($bytes)
$basicAuthValue = "Basic $base64"
$headers = @{ Authorization = $basicAuthValue }
Invoke-WebRequest -uri "mySuperWebApiURL" -Headers $headers
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data