oauth-use-case-patterns

Select OAuth 2.0 grant types for automated API integrations.

3|2|Updated May 12, 2026
One-click install
npx skills add https://github.com/kriscendobot/garden --skill oauth-use-case-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth-use-case-patterns
Source: https://github.com/kriscendobot/garden/tree/main/skills/oauth-use-case-patterns
Command: npx skills add https://github.com/kriscendobot/garden --skill oauth-use-case-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves the ambiguity in choosing and implementing the correct OAuth 2.0 authentication flow, preventing security risks like over-privileged scopes and improper credential storage.

Core Features & Use Cases

  • Grant Selection: Provides a clear decision framework to choose between client-credentials for service-to-service automation and authorization-code for user-delegated access.
  • Security Best Practices: Guides the implementation of least-privilege scopes, secure secret management, and token rotation strategies.
  • Use Case: When building a new integration, use this skill to determine if your service needs a durable, tag-scoped client or a user-consented token to ensure auditability and security.

Quick Start

Analyze the authentication requirements for the new service integration and recommend the appropriate OAuth grant type based on the provided patterns.

Frequently Asked Questions about oauth-use-case-patterns

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

FAQPage Schema
How do I choose the right OAuth 2.0 grant type for API automation?

OAuth 2.0 client-credentials grant provides durable, tag-scoped service identities for automated systems, whereas authorization-code grant issues user-consented tokens to ensure human-directed auditability and delegated API access.

How do I implement least-privilege scoping for secure API authentication?

Implementing least-privilege scoping for secure API authentication involves applying architectural design patterns that restrict token permissions to only necessary actions, ensuring robust token rotation and secure credential lifecycle management.

When do I need user-delegated access instead of service-identity for API integrations?

You need user-delegated access via authorization-code flows when API integrations require user consent and auditability, whereas service-identity using client-credentials suits autonomous service-to-service automation without user context.

What are the security risks of improper OAuth 2.0 credential storage in automated systems?

Improper OAuth 2.0 credential storage in automated systems creates security risks like over-privileged scopes and token leakage, which secure secret management and robust token rotation strategies are designed to mitigate.

Does this OAuth pattern framework work for architectural design and security reviews?

Yes, this OAuth pattern framework applies directly to architectural design and security reviews by providing a decision-making structure to validate grant types, least-privilege scoping, and credential lifecycle management for API integrations.