auth-identity

Guide OAuth2/OIDC/JWT, RBAC/ABAC, MFA, and passkey authentication implementation.

16|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill auth-identity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-identity
Source: https://github.com/JCETools-Petra/JCE-Opencode-Tools/tree/main/config/skills/auth-identity
Command: npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill auth-identity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design, implement, debug, and verify authentication and authorization systems—so OAuth2/OIDC/JWT/MFA and RBAC/ABAC controls are correct, secure, and consistent across your app.

Core Features & Use Cases

  • Auth architecture guidance: Chooses the right flow for web, SPA+API, mobile, machine-to-machine, and third-party integrations (including PKCE and where client secrets apply).
  • Authorization model selection: Helps decide between RBAC and ABAC (and hybrid patterns like ownership checks), including multi-tenant scoping and compliance-focused auditability.
  • Stronger identity security patterns: Covers passkeys/WebAuthn, DPoP token binding, safe session management, and anti-pattern remediation (token storage, refresh rotation, distributed forging risk).

Quick Start

Ask the skill to help you implement OAuth2/OIDC with PKCE and RBAC/ownership checks for the endpoints handling login, token refresh, and protected resource access in your current codebase.

Frequently Asked Questions about auth-identity

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

FAQPage Schema
How do I implement OAuth2 and OIDC with PKCE for a single-page application?

Implementing OAuth2 and OIDC with PKCE for a single-page application requires choosing the correct authorization flow without a client secret, enforcing server-side token validation, and applying secure session practices to prevent token storage anti-patterns. This Skill guides that flow selection and enforcement.

What is the best way to choose between RBAC and ABAC for multi-tenant authorization?

Choosing between RBAC and ABAC for multi-tenant authorization depends on whether you need static role enforcement or dynamic attribute checks. This Skill helps decide between them, supports hybrid patterns with ownership checks, and ensures compliance-focused auditability across your protected resources.

Does DPoP token binding work with standard JWT refresh rotation?

DPoP token binding works alongside JWT refresh rotation to provide proof-of-possession and mitigate distributed forging risks. This Skill covers applying DPoP for token binding while remediating anti-patterns in safe session management and refresh token rotation across web and API scenarios.

How do I add passkey and WebAuthn authentication to an existing mobile app?

Adding passkey and WebAuthn authentication to a mobile app involves implementing stronger identity security patterns for login and MFA. This Skill guides passkey-based flows, secure session management, and replay protection across mobile and service-to-service scenarios.

Why do I need server-side authorization checks for JWT-protected API endpoints?

Server-side authorization checks for JWT-protected API endpoints are needed to enforce RBAC or ABAC controls consistently and prevent token forging. This Skill guides applying server-side permission checks, validating key security controls, and auditing access across web and machine-to-machine integrations.

When should I not use OAuth2 for machine-to-machine service authentication?

You should not use OAuth2 client credentials flow for machine-to-machine service authentication when simpler mutual TLS or static API keys suffice and token lifecycle management adds unnecessary overhead. This Skill helps evaluate protocol flows and apply secure token practices appropriately for service-to-service scenarios.