passport-development

Configures OAuth2 authentication for Laravel apps using Passport.

483|116|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/trypostit/trypost --skill passport-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: passport-development
Source: https://github.com/trypostit/trypost/tree/main/.claude/skills/passport-development
Command: npx skills add https://github.com/trypostit/trypost --skill passport-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel applications using Passport can be difficult to set up and maintain securely; this guide provides a concise, repeatable process for OAuth2 authentication, client management, and token protection.

Core Features & Use Cases

  • Install and configure Passport to enable OAuth2 for API authentication.
  • Manage OAuth clients and tokens to support various grant types (authorization code, client credentials, personal access tokens, device flow).
  • Protect and validate API routes using proper guards and token scopes to ensure secure access control.

Quick Start

Install Passport, configure the User model to use HasApiTokens and the OAuthenticatable interface, and set the api guard to passport.

Frequently Asked Questions about passport-development

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

FAQPage Schema
How do I configure Laravel Passport for OAuth2 API authentication?

To configure Laravel Passport for OAuth2 API authentication, install Passport, update the User model with the HasApiTokens trait and OAuthenticatable interface, and set the api guard to passport to protect your endpoints.

What is the best way to manage OAuth2 clients and tokens in a Laravel application?

Managing OAuth2 clients and tokens in Laravel involves using Passport to support various grant types, including authorization code, client credentials, personal access tokens, and device flow for secure API access.

How do I protect API routes using token scopes in Laravel Passport?

Protect API routes in Laravel Passport by applying proper guards and validating token scopes, ensuring secure access control for your OAuth2 authenticated endpoints.

Does Laravel Passport support personal access tokens and client credentials grants?

Yes, Laravel Passport supports personal access tokens and client credentials grants, allowing you to manage various OAuth2 grant types for different API authentication scenarios.

Why does my Laravel Passport setup fail to authenticate API requests?

Laravel Passport authentication failures often occur when the api guard is not set to passport, or the User model lacks the HasApiTokens trait and OAuthenticatable interface required for OAuth2 validation.