identity-access

Design and enforce OAuth 2.0, OIDC, RBAC, and MFA authentication flows.

111|18|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/dralgorhythm/claude-agentic-framework --skill identity-access
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: identity-access
Source: https://github.com/dralgorhythm/claude-agentic-framework/tree/main/.claude/skills/security/identity-access
Command: npx skills add https://github.com/dralgorhythm/claude-agentic-framework --skill identity-access

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides guidance on authentication, authorization, and user management with best practices for tokens, MFA, and RBAC.

Core Features & Use Cases

  • AuthN/AuthZ: OAuth2, OIDC, RBAC basics.
  • Tokens & MFA: Secure token handling and multi-factor strategies.
  • Use Case: Implement RBAC to restrict access to sensitive endpoints.

Quick Start

Outline a basic OAuth2 flow and RBAC model for a new app.

Frequently Asked Questions about identity-access

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

FAQPage Schema
How do I implement OAuth 2.0 and OpenID Connect for user authentication?

OAuth 2.0 and OpenID Connect enable secure delegated authentication. Implement Authorization Code flow for web apps, PKCE for mobile clients, and Client Credentials for server-to-server communication. OpenID Connect extends OAuth 2.0 with identity verification through ID tokens, covering authentication and authorization in a single protocol.

What's the best way to secure JWT tokens and manage token rotation?

JWT tokens require short expiration times (15 minutes) for access tokens and secure refresh token rotation. Sign tokens with RS256, validate signatures on every request, store refresh tokens server-side or in secure HTTP-only cookies, and rotate refresh tokens on each use to prevent token replay attacks.

How do I implement role-based access control (RBAC) for API endpoints?

RBAC restricts endpoint access by user role. Define roles (admin, user, guest), assign permissions to each role, and enforce checks at middleware or route level before processing requests. Combine with JWT claims to embed user roles in tokens for efficient, stateless authorization.

What multi-factor authentication methods should I implement?

MFA methods include Time-based One-Time Password (TOTP) via authenticator apps and WebAuthn for passwordless biometric or hardware key verification. Both significantly reduce account takeover risk. Require MFA for sensitive operations and offer users choice between methods for flexibility and adoption.

What password storage and CSRF protection standards apply?

Store passwords hashed with Argon2id or bcrypt using minimum 12-character requirements. Protect against CSRF by validating same-site cookies, implementing CSRF tokens in state-changing requests, and using SameSite cookie attributes to prevent cross-origin request forgery on web applications.

Can I use OAuth 2.0 and RBAC together for web, mobile, and server applications?

Yes. OAuth 2.0 handles authentication across all application types while RBAC layers authorization on top. Use Authorization Code with PKCE for web and mobile, Client Credentials for services, and embed roles in JWT tokens or fetch from a permission service to enforce role-based access consistently.