arcgis-authentication

Authenticate ArcGIS users with OAuth 2.0 and API keys.

19|5|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/SaschaBrunnerCH/arcgis-maps-sdk-js-ai-context --skill arcgis-authentication-saschabrunnerch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arcgis-authentication
Source: https://github.com/SaschaBrunnerCH/arcgis-maps-sdk-js-ai-context/tree/main/contexts/4.34/skills/arcgis-authentication
Command: npx skills add https://github.com/SaschaBrunnerCH/arcgis-maps-sdk-js-ai-context --skill arcgis-authentication-saschabrunnerch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Web and mobile ArcGIS apps require robust, standards-based authentication to securely access protected services, portal items, and user-specific content across diverse environments. This skill provides practical patterns and code examples for implementing OAuth 2.0, API keys, and identity management within ArcGIS Maps SDK applications to simplify secure access.

Core Features & Use Cases

  • OAuth 2.0 Authentication: Set up OAuthInfo, register with IdentityManager, and manage sign-in status and credentials.
  • API Key & Enterprise Portal Access: Configure API keys and portal settings to enable secure access in enterprise deployments.
  • Credential Persistence & Error Handling: Persist credentials, support sign-in/out flows, and handle common authentication errors across browsers and apps.

Quick Start

Authenticate and load the signed-in portal data by configuring OAuth with your ArcGIS appId and triggering the sign-in flow.

Frequently Asked Questions about arcgis-authentication

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

FAQPage Schema
How do I set up OAuth 2.0 authentication for an ArcGIS Maps SDK application?

Set up OAuth 2.0 authentication by configuring OAuthInfo with your ArcGIS appId and registering it with the IdentityManager. This manages sign-in status and credentials for accessing secured portal items.

What is the best way to access secured ArcGIS portal items and user-specific content?

Accessing secured ArcGIS portal items requires integrating OAuth 2.0, API keys, and identity management. This approach enables secure access to protected services and user-specific content across web deployments.

Can I use API keys for ArcGIS enterprise portal access instead of OAuth?

Yes, you can configure API keys and portal settings to enable secure access in enterprise deployments. This method provides an alternative to OAuth 2.0 for accessing protected ArcGIS services.

How do I persist user credentials and manage sign-in and sign-out flows in ArcGIS?

Persist credentials and support sign-in and sign-out flows by leveraging the IdentityManager. This approach maintains user authentication state across browsers and applications while handling common errors.

Does this ArcGIS authentication approach work across both web and mobile environments?

Yes, this authentication approach works across diverse web and mobile environments. It implements OAuth setup, token handling, and credential persistence to ensure secure access on both platforms.

How do I handle common authentication errors when accessing ArcGIS secured services?

Handle common authentication errors by implementing appropriate error handling during OAuth setup, token management, and API key configuration. This ensures robust credential persistence across browsers and apps.