Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

oauth-oidcOAuth oidc 安全

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

4,578

周安装

187

GitHub Stars

公开资料未说明

下载量

1,466
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:oauth-oidc(OAuth oidc 安全)
来源仓库:https://github.com/codenova58/oauth-oidc
安装命令:
openclaw skills install oauth-oidc
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install oauth-oidc

简介

oauth-oidc 用于 OAuth 2.0 与 OpenID Connect 安全审计。

  • 提供客户端类型选择、PKCE 与令牌验证流程指导。
  • 适合梳理鉴权逻辑与常见漏洞排查场景。oauth-oidc 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 不能将输出直接作为最终结论,需人工复核。
  • 涉及生产系统时应确认最小权限与脱敏策略。

SKILL.md

name
oauth-oidc
description
Deep OAuth 2.0 / OpenID Connect workflow—choosing flows for client type, PKCE, tokens and validation, scopes and consent, rotation, and common misconfigurations. Use when implementing SSO, social login, or API access on behalf of users.

OAuth 2.0 / OIDC (Deep Workflow)

OAuth solves delegated authorization; OIDC adds identity on top. Most production bugs are wrong flow for client, token validation gaps, and confused redirect URIs.

When to Offer This Workflow

Trigger conditions:

  • Web, mobile, or SPA login; machine-to-machine clients
  • Debugging invalid_grant, redirect_uri mismatches, token replay
  • Hardening scopes, refresh rotation, logout

Initial offer:

Use six stages: (1) actors & client type, (2) select flow & PKCE, (3) tokens & validation, (4) scopes & consent UX, (5) session & logout, (6) operational hardening). Confirm IdP (Auth0, Cognito, Keycloak, Google, etc.).


Stage 1: Actors & Client Type

Goal: Classify confidential vs public clients and who holds secrets.

Rules

  • Server-side web app with secret: confidential; SPA and native: public → PKCE mandatory
  • M2M: client credentials or JWT assertion—no user in loop

Exit condition: Architecture diagram: browser, backend, IdP, resource server.


Stage 2: Select Flow & PKCE

Goal: Authorization Code (+ PKCE for public clients); avoid Implicit and ROPC for new apps.

Practices

  • Exact redirect URI allowlist—no wildcards that enable open redirects
  • State and nonce for CSRF and token binding (OIDC)
  • Mobile: custom URL schemes vs universal links—document trade-offs

Exit condition: Sequence diagram for login happy path and error paths.


Stage 3: Tokens & Validation

Goal: Access token for APIs; ID token for identity claims—validate issuer, audience, exp, signature (JWKS rotation).

Practices

  • Never use ID token as API bearer unless your architecture explicitly defines that (usually wrong)
  • Refresh token: rotation, reuse detection, secure storage (httpOnly cookie or secure OS storage on mobile)
  • Clock skew tolerance when validating exp

Exit condition: Documented validation steps in code or API gateway config.


Stage 4: Scopes & Consent

Goal: Least privilege scopes; incremental auth when possible.

UX

  • Clear consent copy; minimize scope creep at first login

Stage 5: Session & Logout

Goal: RP-initiated logout vs local session clearing—know what breaks SSO across apps.

Practices

  • Front-channel / back-channel logout when enterprise IdP requires

Stage 6: Operational Hardening

Goal: Rotate client secrets safely; monitor failed auth rates; alert on abnormal token issuance.

Pitfalls

  • Mixing dev and prod clients; leaking JWKS or introspection endpoints in client bundles

Final Review Checklist

  • [ ] Correct flow and PKCE for client class
  • [ ] Redirect URIs strict; state/nonce used appropriately
  • [ ] Token validation complete (sig, iss, aud, exp)
  • [ ] Refresh handling and rotation policy
  • [ ] Scopes minimal; logout behavior understood

Tips for Effective Guidance

  • Draw Authorization Code + PKCE as default for SPAs.
  • Call out BFF pattern when SPA cannot hold secrets and APIs need cookies.
  • Enterprise SAML bridge to OIDC adds quirks—defer to IdP docs when needed.

Handling Deviations

  • First-party only same-site: consider session cookie auth instead of full OAuth complexity if appropriate.
  • Legacy Implicit: migration plan to Code+PKCE with downtime window.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.01%
按下载量换算1,408

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills