AGENT SKILL

OAuth

暂无简介

License 许可
MIT
最近更新
2026-11-02
Stars
★ 1
Forks
0

01 前言 Front Matter

id
oauth
name
OAuth
tags
[ "agent", "modular", "progressive-load", "secure", "security" ]
tool
oauth2
related
[ "connection-manager", "oauth" ]
version
1.0.0
category
security
triggers
[ "oauth", "login", "token", "authorize", "เข้าสู่ระบบ" ]
standards
[ "Open Standard", "Claude", "OpenAI", "Gemini" ]

02 资源文件 1

03 SKILL.md 正文

OAuth

Purpose

ทำ OAuth 2.0 authorization code flow ฝั่งเบราว์เซอร์ ไม่ส่ง token ผ่านแชท

When to use

ใช้เทคนิคนี้เมื่อคำขอของผู้ใช้เข้าเงื่อนไข trigger ใดเงื่อนไขหนึ่ง เช่น oauth, login, token ถ้าคำขอไม่ชัด ให้ถามก่อน ไม่เดาแล้วลงมือ

Progressive disclosure layers

Layer โหลดเมื่อ เนื้อหา
core ทุกครั้ง ข้อกำหนดการเรียกใช้และขอบเขตสิทธิ์
essential เมื่อใช้จริง พารามิเตอร์ ตัวอย่าง และข้อผิดพลาดที่พบบ่อย
situational เมื่อบริบทต้องการ นโยบายเฉพาะองค์กร การหน่วงเวลา และโควตา

Interface

  • input — prompt, context, credential_ref?
  • output — result, audit_log, usage

Security

  • อ้างอิงข้อมูลลับด้วย ชื่อ (credential_ref) เท่านั้น ห้ามส่งค่าจริงเข้ามาในไฟล์ คำขอ หรือ log
  • ใช้สิทธิ์น้อยที่สุดตาม schema.yaml — ขอเฉพาะ scope ที่ต้องใช้จริง
  • ตรวจพารามิเตอร์ที่รับมาจากผู้ใช้ก่อนเรียกปลายทางเสมอ (allowlist ไม่ใช่ denylist)
  • บันทึก audit_log ทุกครั้งที่เขียน พร้อมเวลาและผู้สั่ง

Verification gates

ผ่านทุกข้อก่อนรายงานผลสำเร็จ

  1. structure-valid — อินพุตครบและชนิดข้อมูลถูกต้อง
  2. vuln-scan — ไม่มีข้อมูลลับหลุดในพารามิเตอร์หรือ log
  3. permission-check — scope ที่ใช้อยู่ในรายการที่อนุญาต
  4. output-verify — ผลลัพธ์ยืนยันกับปลายทางจริง ไม่ใช่แค่คำตอบของ API

04 同仓库更多 Skills