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 ?
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...