/arcgis-sdks-and-apis-plugin:follow-arcgis-authentication-patternsfrom arcgis-sdks-and-apis-plugin
Guides selection and implementation of API key, user, or app authentication for ArcGIS applications based on audience, product, and required resources.
Ships in arcgis-sdks-and-apis-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Understand authentication in ArcGIS and provide guidance on the correct type of authentication to use in different situations. Application requirements, ArcGIS product selection, and authentication strategy are closely connected and should be considered together when designing an application. Treat audience, technology stack, services, and foundational ArcGIS product as related but independent design dimensions. Do not infer authentication from the platform or SDK alone.
If the application's development requirements are unclear, use the gather-arcgis-application-requirements skill to review project context and clarify consequential unknowns before proceeding. Then apply this skill's technology-specific guidance, reusing requirements already clear from the request or project.
Follow this sequence and record any assumptions:
Classify by audience first, then use the examples to connect that classification to a suitable authentication direction.
| Types of application | Audience | Use cases | Authentication direction |
|---|---|---|---|
| Public | Anyone may use the app anonymously, without signing in with an ArcGIS account. | A public-facing map that uses location services or public data | Use API key authentication when requests are made directly to ArcGIS (without a backend service), or use app authentication when making requests through a custom backend. |
| Private | Users must sign in with ArcGIS accounts and be authorized, commonly as members of an ArcGIS organization. | An internal tool analyzes secure data or supports editing and user-specific workflows. | User authentication; the signed-in user's user type, role, privileges, and resource sharing determine access. |
| Personal | Only the owner uses the app; it is not distributed to others. | A local script, notebook, automation, or developer tool/MCP server performs work for its owner. | User authentication when it must act as the owner; app authentication or an API key may fit other tasks. |
Note: A public application is not the same as public data. Decide separately whether the app can be used anonymously and whether each item or service may be shared with Everyone (public). Public apps must not expose confidential or personally identifying information. Third-party sign-in to an app does not, by itself, authenticate users to ArcGIS or grant access to protected ArcGIS resources; verify the complete identity and authorization design.
Use this matrix as an initial direction, not as a substitute for checking product configuration, service-specific requirements, or current documentation.
| Foundational product | Public application | Private application | Personal application |
|---|---|---|---|
| ArcGIS Online | App authentication or API key authentication. A public app using only publicly shared items and resources may omit ArcGIS authentication. | User authentication for organization members and secure hosted data. | User authentication, app authentication, or API key authentication. |
| ArcGIS Enterprise | App authentication or API key authentication. A public app using only publicly shared items and resources may omit ArcGIS authentication. | User authentication for organization members and secure hosted data. | User authentication, app authentication, or API key authentication. If using web-tier auth or SAML-based SSO, the requirements may differ. |
| ArcGIS Location Platform | App authentication or API key authentication for public-facing applications and location services. | Not shown as a private-organization application pattern in this guide; assess whether ArcGIS Online or Enterprise is needed for organizational identities and protected portal content. | User authentication, app authentication, or API key authentication. |
If an application does not implement authentication and then attempts to access secure resources, some products may prompt users to sign in using an automatic authentication flow. This is non-standard and is not recommended for production applications. If users need to sign in to an application, implement OAuth 2.0 user authentication instead.
Use these scenarios as starting points when matching the application's audience to the kind of secure resource and operation it needs.
| Resource or operation | Public application | Private application | Personal application |
|---|---|---|---|
| Private data | Use caution. App authentication may be appropriate only through a trusted backend that limits and authorizes requests; do not expose confidential data to an uncontrolled public audience. If users need protected access as themselves, make the app private and use user authentication. | Use user authentication so access reflects the signed-in user's privileges and the item's sharing settings. | Any supported flow may fit owner-controlled data, depending on the required identity and runtime. API keys or app authentication can access some owner-owned private items, but do not use them to protect confidential or sensitive data. |
| ArcGIS services | API key authentication is a common choice for suitable client-side access. App authentication can be used through a trusted backend. Check the exact service's authentication and usage requirements. | Use user authentication when requests must run as the signed-in user; otherwise, choose a supported method based on the service and product. | Use a supported method appropriate to the service and operation; API key authentication is often suitable for owner-directed workflows. |
| Portal management | Not recommended for an anonymously usable app. Keep administrative credentials on a trusted server, restrict and authorize access to that server, or require user sign-in. | Use user authentication so operations run with the signed-in user's privileges; verify that the user has the required administrative privileges. | API key authentication may support owner-directed portal operations when the credential has the required privileges and the operation supports it. Protect the key as a highly sensitive credential; user or app authentication may be more appropriate for some workflows. |
Treat "private data" carefully: an authentication token does not make sensitive data safe to expose. API key or app authentication against owner-owned items is not a substitute for user-specific authorization or a properly secured backend.
When a pattern does not clearly fit, ask about audience, identity, protected data, operations, runtime, and product before recommending credentials.
When advising on an application design, summarize:
Before finalizing an authentication recommendation or implementation, verify:
Installing this skill individually does not configure Esri MCP server for developer documentation (esri-mcp-server-for-developer-documentation). Add that server at https://developers-mcp.arcgis.com/mcp using your client's MCP settings, or install the full ArcGIS SDKs and APIs plugin (arcgis-sdks-and-apis-plugin). If the MCP server is unavailable, consult the linked official Esri documentation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
arcgis-authentication, api-key, user-auth, app-auth, arcgis-development
npx claudepluginhub esri/esri-developer-agent-skills --plugin arcgis-sdks-and-apis-plugin15 skills in this plugin
/build-with-arcgis-and-cesiumjsBuild and troubleshoot browser-based 3D mapping apps with CesiumJS and ArcGIS. Use for ArcGIS basemaps, terrain, feature and map services, I3S/scene layers, geocoding, routing, places, and spatial analysis. Guide setup, authentication, ArcGIS REST JS integration, coordinate handling, attribution, and performance using current Esri documentation./build-with-arcgis-and-openlayersUse to build, extend, and troubleshoot browser based mapping applications with OpenLayers and ArcGIS services. Covers how to combine OpenLayers with ArcGIS basemaps, feature services, vector or raster tiles, location services, geocoding, routing, places, elevation, or secure ArcGIS resources. Includes ESM setup, ol-mapbox-style, ArcGIS REST JS, API keys and OAuth, projections, queries and pagination, styling, popups, editing, attribution, and performance./build-with-arcgis-api-for-pythonUse when working with ArcGIS API for Python (ArcGIS Python API, Python API for ArcGIS, Esri Python API), the arcgis Python package/library/module, or arcgis-mapping (arcgis.map). Covers scripts/notebooks, setup, authentication, Spatially Enabled DataFrames (SEDF), queries/edits, publishing, portal administration, cloning/dependencies, Web Maps/Web Scenes, analysis, geocoding, routing and arcgis.ai for ArcGIS Online, Enterprise and Location Platform. Not for ArcPy-only tasks or non-Python SDKs.Other plugins' skills for the same job