Select to view content in your preferred language

Secured Service access from flutter app

307
1
12-17-2024 01:25 PM
vijaybadugu
Frequent Contributor

I have published a secure arcgis service which has some polygon data and want to apply definition expression on it. 

How do I access secure service through flutter ? is there authentication process  to access the service without user credential dialog ? 

0 Kudos
1 Reply
HarishK
Esri Contributor

To access a secure ArcGIS service through Flutter, you have two main workflows: API Key Workflow and App Authentication Workflow.

API Key Workflow:
1. Set Privileges: Ensure the API key has the necessary privileges to access the specific item (e.g., the polygon layer) you want.
2. Set API Key in Application: Configure your application to use the API key for accessing the service.

App Authentication Workflow
1. Use OAuthApplicationCredential: Utilize the OAuthApplicationCredential class to handle authentication. This involves creating an OAuth credential with your portal URI, client ID, and client secret.

Documentation: https://developers.arcgis.com/documentation/security-and-authentication/app-authentication/oauth-cre...

Source: https://developers.arcgis.com/documentation/security-and-authentication/types-of-authentication/#aut...

0 Kudos