oauth2
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "oauth2" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-118311605dc3376aa7b93744cd6a9945c3ebee1190e62e476b4b7edede03d295. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/oauth2-flow-debugger before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
OAuth 2.0 debugging skill: inspects and troubleshoots OAuth 2.0 authorization flows, including PKCE, client credentials, and device code grants; uses the jose JWT library and node-fetch to validate tokens, decode claims, and trace redirect chains.
Introduction source: third_party · user_3c6cb52e · 1 Reference
SkillPi interpretation
- Tasks
- OAuth2 authorization: grant-type selection, resource-server vs client roles, scopes, token validation, and Spring Security integration.
- Audience
- Use when tsa.technology.security.type includes OAuth2. Activate for authorization wiring on any API-exposing service.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "oauth2"
description: "OAuth2 authorization: grant-type selection, resource-server vs client roles, scopes, token validation, and Spring Security integration."
version: 1
created: "2026-06-09T03:34:24+05:30"
updated: "2026-06-26"When to Use
Use when tsa.technology.security.type includes OAuth2. Activate for authorization wiring on any API-exposing service.
Procedure
- Resolve the provider and flow from the TSA (e.g. Authorization Code + PKCE; client credentials for service-to-service).
- Configure the service as an OAuth2 resource server validating access tokens against the issuer.
- Define scopes/authorities and enforce them at method or endpoint level.
- Validate issuer, audience, expiry, and signature on every request; cache JWKS.
- Never store client secrets in code; source them from a secrets manager.
- Keep the service stateless; do not hold server-side sessions for token auth.
Patterns
- Authorization Code + PKCE for user flows
- Client credentials for service-to-service
- Resource server validating issuer/audience
- Scope/authority-based endpoint authorization
- JWKS caching with rotation
Anti-Patterns
- Implicit grant (deprecated)
- Client secrets in code/config
- Skipping audience/issuer validation
- Stateful sessions alongside token auth
- Trusting tokens without signature verification
Tool Selection
- Generic: read_file, write_file, command_line, skills
- Intended (roadmap): oauth2_config_generator, token_flow_validator
Validation Rules
- Correct grant type per client type
- Issuer/audience/expiry/signature validated
- No secrets hardcoded
- Scopes enforced at endpoints
RAG Sources
- oauth2-rfc6749
- spring-security-oauth2-docs
- tsa.technology.security
Current listing version
1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 覆盖 OAuth2 多种主流授权类型(PKCE、客户端凭证、设备代码),满足开发高频需求
- 提供 Spring Security 集成指导,具备明确工程实践价值
Highlights
- description 完整描述核心能力,触发词精准覆盖 grant-type selection、token validation 等关键维度
- When to Use 提供清晰激活条件,边界明确不易误触
Areas to improve
-
缺少显式 Example 章节 Reported severity: Minor
文档未提供独立的 Example 章节展示完整调用流程
Recommendation: 建议在 Procedure 后增加 Example 章节,展示具体 OAuth2 配置与验证的完整调用链
Highlights
- Phase/步骤清晰,frontmatter 完整,单文件结构紧凑
- Patterns/Anti-Patterns 提供丰富实际用法参考
Highlights
- 工具来源明确(jose JWT库、node-fetch),参数验证逻辑严谨
- 覆盖 JWKS 缓存轮换、secrets 管理等关键异常场景,防护措施到位
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 12, 21
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.