how to add secure service to portal and save credentials through REST API

4524
10
12-05-2016 11:29 AM
ChenLiang
New Contributor II

I am using Portal REST API to add a bunch of secure map services to Portal (10.4.1). Right after those services added, their portal links works fine. After a while, clicking the same link would get an error page saying something like portal can't work on this content item (502 Bad Gateway). When I manually enter the credential on the Edit page, the same link would work again. And then the error occurred again. 

My guess is Portal doesn't seem able to save the specified credential with the new items so the link failed when a token expires. In the REST API reference, there is no specific parameter to get Portal to save or not to save credential. 

Help appreciated! 

0 Kudos
10 Replies
ChenLiang
New Contributor II

I found this older post with the similar problem. Error storing credentials on secured service in AGOL 502 Bad Gateway

The service provider's SSL certificate is verified. And the Portal IIS is set ignore client certificate. There must be other causes. 

0 Kudos