Map layer authentication
If youre using secure layers in your map, you must provide authentication. Select the node of the maplet, and add a child node to specify the authentication strategy. There are three authentication strategies that you can use:
- Application login: A secret key is stored in the GIS configuration. This strategy does not require the user to enter any authentication information.
- OAuth user login: With this strategy the user must enter login credentials in the mobile app to access a map layer.
- ArcGIS token login: Also requires the user to enter login credentials in the mobile app.
Note: ESRI identifies resource access points by the server URI for authentication purposes. This means that you cannot have multiple types of authentication or multiple users that access different layers from the same server URI.
The application and OAuth login strategies require a client ID and a redirect URI, and the application strategy also requires a client secret. To get these values, go to the application in ArcGIS Online, select the Settings tab, and click . Use the app ID for the client ID, the app secret for the client secret, and the specified redirect URI.
Application login
Add these attributes to the node:
- ClientId: Get the value from the ArcGIS application.
- ClientSecret: Get the value from the ArcGIS application.
- RedirectUri: Get the value from the ArcGIS application.
- ServerUri: Specify the URI of the authentication server.
- TokenAuthenticationType: Specify OAUTH.
OAuth user login
Add these attributes to the node:
- ClientId: Get the value from the ArcGIS application.
- RedirectUri: Get the value from the ArcGIS application.
- ServerUri: Specify the URI of the authentication server.
- TokenAuthenticationType: Specify OAUTH.
- TokenServiceUri: Specify the URI of the token service.
ArcGIS token login
Add these attributes to the node:
- ServerUri: Specify the URI of the authentication server.
- TokenAuthenticationType: Specify Token.
- TokenServiceUri: Specify the URI of the token service.