Laravel OAuth Client

A comprehensive demonstration of OAuth 2.0 flows with Laravel Passport

OAuth 2.0 Flows

Explore different OAuth 2.0 authentication flows including Authorization Code, Implicit, and Password Grant flows.

Explore OAuth Flows
Quick Login

Login with your existing account using the Password Grant flow for immediate access.

Login
Create Account

Don't have an account? Register a new account on the OAuth server and get started immediately.

Register
About This Application

This Laravel application demonstrates how to implement an OAuth 2.0 client that works with Laravel Passport. It supports multiple authentication flows:

Supported OAuth Flows:
  • Authorization Code with PKCE - Most secure for SPAs
  • Authorization Code - Traditional server-side flow
  • Implicit Flow - Legacy browser-based flow
  • Password Grant - Direct credential exchange
Features:
  • User registration and login forms
  • Token refresh functionality
  • API testing interface
  • Secure token storage in sessions
Configuration:

Make sure to configure your .env file with the correct OAuth server settings:

OAUTH_SERVER_URL=http://localhost:8000
OAUTH_CLIENT_ID=your_client_id
OAUTH_CLIENT_SECRET=your_client_secret
OAUTH_REDIRECT_URI=http://localhost/oauth/callback