Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Auth0 Express OAuth2 JWT Bearer

Skill Verifiziert Aktiv
Teil von:Auth0

Use when adding Auth0 token validation to Express or Node.js APIs - integrates express-oauth2-jwt-bearer SDK to protect Node.js API endpoints with JWT Bearer authentication, scope-based RBAC, claim validation, and optional DPoP support

Zweck

Integrate Auth0 JWT bearer token validation into Express or Node.js APIs to secure endpoints and enforce authorization rules.

Funktionen

  • JWT Bearer token validation per RFC 6750
  • Scope-based RBAC and claim validation
  • Optional DPoP support for token binding
  • Automatic setup script for Auth0 API configuration
  • Clear guidance on CORS, error handling, and testing

Anwendungsfälle

  • Securing Node.js API endpoints with Auth0 JWTs
  • Implementing role-based access control using JWT claims
  • Protecting APIs called by SPAs, mobile apps, or M2M clients
  • Validating Auth0-issued access tokens against an API audience

Nicht-Ziele

  • Building full-stack web applications with UI/session management
  • Handling authentication for client-side SPAs or mobile apps directly
  • Managing user login flows or UI components
  • Providing alternative authentication providers

Workflow

  1. Fetch latest SDK release version
  2. Install the SDK
  3. Configure Auth0 API and environment variables (automatic or manual)
  4. Set up middleware in the Node.js application
  5. Protect API endpoints with the middleware
  6. Add RBAC or claim validation rules
  7. Verify the integration by testing protected endpoints

Praktiken

  • JWT Authentication
  • API Security
  • Authorization
  • RBAC

Voraussetzungen

  • Node.js 18+ (20+ recommended)
  • Express 4.x or 5.x
  • npm or yarn
  • An Auth0 account with a configured API (Resource Server)
  • Auth0 CLI (for automatic setup)

Installation

/plugin install auth0@auth0-agent-skills

Qualitätspunktzahl

Verifiziert
100 /100
Analysiert about 20 hours ago

Vertrauenssignale

Letzter Commitabout 23 hours ago
Sterne20
LizenzApache-2.0
Status
Quellcode ansehen

Ähnliche Erweiterungen

Auth0 Nuxt

100

Use when implementing Auth0 authentication in Nuxt 3/4 applications, configuring session management, protecting routes with middleware, or integrating API access tokens - provides setup patterns, composable usage, and security best practices for the @auth0/auth0-nuxt SDK

Skill
auth0

Netlify Identity

100

Verwenden Sie dies, wenn die Aufgabe Authentifizierung, Benutzerregistrierungen, Anmeldungen, Passwortwiederherstellung, OAuth-Anbieter, rollenbasierte Zugriffskontrolle oder den Schutz von Routen und Funktionen beinhaltet. Verwenden Sie immer `@netlify/identity`. Verwenden Sie niemals `netlify-identity-widget` oder `gotrue-js` – diese sind veraltet.

Skill
netlify

Auth0 SPA JS Integration

100

Use when adding authentication to Vanilla JS, Svelte, or any framework-agnostic single-page applications - integrates @auth0/auth0-spa-js SDK for SPAs without framework-specific wrappers

Skill
auth0

Auth0 Next.js

100

Use when adding authentication to Next.js applications (login, logout, protected pages, middleware, server components) - supports App Router and Pages Router with @auth0/nextjs-auth0 SDK.

Skill
auth0

Auth0 Java Mvc Common

100

Use when adding Auth0 login, logout, and callback handling to Java Servlet web applications - integrates com.auth0:mvc-auth-commons SDK for server-side Java apps using javax.servlet with session-based authentication. Triggers on AuthenticationController, AuthorizeUrl, Tokens, IdentityVerificationException, Java MVC auth.

Skill
auth0

Auth0 Flask

100

Use when adding login, logout, and user profile to a Flask web application using session-based authentication - integrates auth0-server-python for server-rendered apps with login/callback/profile/logout flows.

Skill
auth0