authenticating-with-oauth

Installation
SKILL.md

Skill: AL OAuth Integration

Validation Gates

  1. After Step 4: GetAccessToken() returns valid token in sandbox
  2. After Step 5: API call succeeds, 401 triggers auto-retry
  3. Final: Token caching works (check Token Expiry field), telemetry logs operations

Note: SecretText.Unwrap() blocked in SaaS. Use Text + [NonDebuggable].

Procedure

Step 1: Identify OAuth Flow

Ask user:

  • Is this service-to-service (no user context)? → Client Credentials
  • Does it require user consent/context? → Authorization Code

Step 2: Create Setup Table

Create a setup table with these fields:

Installs
2
GitHub Stars
1
First Seen
Apr 9, 2026