I have created an application in ArcGIS App Studio that consumes a REST service. This application is public and will be in the stores. This REST service was added as an item in the Portal for ArcGIS and portaladmin credentials were configured. The REST service was shared with a user group, and the user credentials are in the App code.
It turns out that when accessing the App it gives error 403 "You do not have permissions to access this resource or perform this operation".
This only happened after I updated the ArcGIS Server to version 11.1. Previously in version 10.9 it was working correctly.
The question I have is: How can I use a secured REST service in an AppStudio app that will be public?
Thanks.
João Pinheiro
Hi @JoaoPinheiro ,
Thanks for reaching out. For the updated server, you might want to confirm if you have implemented a token authentication for the secured service to have access to the secured REST service. As an example, the user can provide a secured layer while the app can be public and the secured layer when accessed throws a challenge for username and password. So, it is possible to use a secured service with the app being public. Please let us know if you are still facing difficulty.
Thanks