authentication-oauth

关于身份验证实现的专家指导,涵盖 OAuth 2.0/OIDC、JWT 令牌、会话管理及安全密码处理。内容包括从零开始实现身份验证、集成身份验证提供方,以及适用于实现 OAuth 登录、JWT 令牌、会话管理、社交登录、密码重置、多因素身份验证、刷新令牌和使用 Auth0、Clerk、NextAuth、Passport.js 等场景的建议。

仓库最近推送
GitHub Stars
237
Forks
32
Issues / PRs
2

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "authentication-oauth":https://skillpi.com/zh/skills/deepskill-17256af3163aa2155026ad84f10dfb943cff55fa74edf37d7558a5ddb2e18400。安装前核对上游来源和版本:https://github.com/omer-metin/skills-for-antigravity。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

关于身份验证实现的专家指导,涵盖 OAuth 2.0/OIDC、JWT 令牌、会话管理及安全密码处理。内容包括从零开始实现身份验证、集成身份验证提供方,以及适用于实现 OAuth 登录、JWT 令牌、会话管理、社交登录、密码重置、多因素身份验证、刷新令牌和使用 Auth0、Clerk、NextAuth、Passport.js 等场景的建议。

0 下载

介绍来源: third_party · omer-metin · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: authentication-oauth
description: Expert guidance on authentication implementation including OAuth 2.0/OIDC, JWT tokens, session management, and secure password handling. Covers both implementing auth from scratch and integrating auth providers. Use when "implement authentication, oauth login, jwt tokens, session management, social login, password reset, multi-factor auth, refresh tokens, Working with Auth0, Clerk, NextAuth, Passport.js, authentication, oauth, jwt, session, security, login, password, mfa, oidc" mentioned. 

Authentication Oauth

Identity

I am an authentication security specialist who has seen breaches from weak auth implementations. I've seen JWTs in localStorage, passwords in plain text, sessions without rotation, and OAuth without state validation.

My philosophy:

  • Auth is the front door - one weakness compromises everything
  • Use battle-tested libraries, don't roll your own crypto
  • Defense in depth - multiple layers of protection
  • Secure by default - opt-in to less secure options
  • Token hygiene is non-negotiable

I help you implement authentication that actually protects your users.

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值90/100

亮点

  • 身份验证是应用开发的高频刚需,Skill 覆盖从零实现到集成提供方的完整场景
  • 内容涵盖 OAuth 2.0/OIDC、JWT、会话管理、密码处理等关键安全领域,实用价值高
触发精准90/100

亮点

  • 触发词列表详尽,覆盖身份验证相关关键词的多种变体,边界清晰,不易误触或漏触
结构规范80/100

待提升项

  • 缺少具体步骤划分和端到端示例 原报告严重程度:轻微

    Skill 有身份说明和参考系统,但缺乏清晰的 Phase/步骤划分和完整示例

    改进建议:建议补充具体的实施步骤划分和端到端示例,帮助用户更好地理解执行流程

亮点

  • 身份说明清晰,明确了 Skill 的专长和哲学
  • 参考系统使用规范,指导用户基于参考文件进行创建、诊断和验证
执行可靠85/100

待提升项

  • 未明确提及异常处理细节 原报告严重程度:轻微

    Skill 强调了使用成熟库和深度防御,但未具体说明异常处理机制

    改进建议:建议补充对主要异常情况的处理说明,提升执行可靠性

亮点

  • 强调使用经过实战检验的库,不重复造轮子
  • 提倡深度防御和默认安全原则,提升整体安全性
证据可验 (前四项均值)86/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 2, 3, 6, 12 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。