auth

Centralize token management and credential resolution through the AuthResolver.

3.5k|319|Updated Sep 18, 2025
One-click install
npx skills add https://github.com/microsoft/apm --skill auth-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth
Source: https://github.com/microsoft/apm/tree/main/.apm/skills/auth
Command: npx skills add https://github.com/microsoft/apm --skill auth-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralizes and secures token management and credential resolution across codebases, preventing credential leaks and auth failures.

Core Features & Use Cases

  • Centralized AuthResolver enforcement; routes all token flows through AuthResolver.
  • Per-host PAT handling and host-aware credential resolution.
  • Enforced policy to avoid direct environment-variable access in application code.
  • Seamless Git authentication support for common workflows and API calls.

Quick Start

Route all token and credential handling through the central AuthResolver and avoid direct getenv usage in application code.

Frequently Asked Questions about auth

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

FAQPage Schema
How do I centralize token and credential management in my codebase?

Centralize token and credential management by routing all token flows through a central AuthResolver, which acts as the single source of truth for credential resolution and prevents leaks.

Why should I avoid direct environment variable access for authentication?

Avoid direct environment variable access to enforce a centralized credential resolution policy, ensuring all authentication flows are managed securely through the AuthResolver instead of scattered getenv calls.

What is the best way to handle per-host PAT authentication across different services?

Handle per-host PAT authentication by using a centralized AuthResolver that provides host-aware credential resolution, routing token requests dynamically based on the target service host.

Can I use a centralized credential resolver for Git authentication workflows?

Yes, centralized credential resolvers support seamless Git authentication workflows, routing token handling for common Git operations and API calls through the AuthResolver.

How does an AuthResolver prevent credential leaks in application code?

An AuthResolver prevents credential leaks by centralizing token management and enforcing policy to avoid direct environment-variable access, routing all authentication flows through a single secure source.