arcgis-authentication

Implement OAuth 2.0 and API key authentication for ArcGIS portals.

Updated May 27, 2026
One-click install
npx skills add https://github.com/elowen53/arcgis-maps-sdk-js-ai-context-4.0 --skill arcgis-authentication-elowen53
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arcgis-authentication
Source: https://github.com/elowen53/arcgis-maps-sdk-js-ai-context-4.0/tree/main/skills/arcgis-authentication
Command: npx skills add https://github.com/elowen53/arcgis-maps-sdk-js-ai-context-4.0 --skill arcgis-authentication-elowen53

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implement authentication with ArcGIS using OAuth 2.0, API keys, and identity management to securely access portals, user content, and protected services.

Core Features & Use Cases

  • OAuth 2.0 setup and sign-in/out flows using OAuthInfo and IdentityManager.
  • API key support for public services and simple access patterns.
  • Portal integration and user information retrieval, including credential management and error handling.

Quick Start

Register your ArcGIS OAuth App ID, configure OAuthInfo, register with IdentityManager, and trigger sign-in to access portal data.

Frequently Asked Questions about arcgis-authentication

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate ArcGIS API requests using OAuth 2.0?

OAuth 2.0 authentication for ArcGIS involves registering an OAuth App ID, configuring OAuthInfo, registering with IdentityManager, and triggering sign-in to access secure portal data and private items.

When should I use API keys instead of OAuth for ArcGIS portal integration?

API keys are best for accessing public services and simple access patterns, whereas OAuth 2.0 handles private portal items, user content, and enterprise configurations requiring full credential management.

What is the best way to manage ArcGIS tokens and credentials in a web app?

The best way to manage ArcGIS tokens and credentials is using IdentityManager for token handling, credential management, and error handling, alongside OAuthInfo for sign-in and sign-out UI integration.

Does ArcGIS IdentityManager support enterprise portal configurations and user content access?

Yes, ArcGIS IdentityManager supports enterprise portal configurations by specifying the portalUrl, handling token management, and retrieving user information to access private portal items and protected services.

Why does my ArcGIS OAuth sign-in flow fail to retrieve user content?

ArcGIS OAuth sign-in flows fail to retrieve user content when OAuthInfo is improperly configured, the portalUrl is incorrect, or token handling and error handling logic fails to manage credentials for private items.