pdgi-online/auth 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pdgi-online/auth

最新稳定版本:0.0.2

Composer 安装命令:

composer require pdgi-online/auth

包简介

PDGI Authorization Code Grant Client Facade

README 文档

README

A Laravel package providing a facade for OAuth2 Authorization Code Grant flow for PDGI App.

Features

  • Secure OAuth2 authorization code flow
  • Automatic user creation and login
  • Token management and refresh
  • Configurable user model
  • Ready-to-use authentication routes

Installation

  1. Install via composer:
composer require pdgi-online/auth
  1. Migrate database for PDGI Auth
php artisan migrate
  1. Add these to your .env file:
PDGI_CLIENT_ID=your-client-id
PDGI_CLIENT_SECRET=your-client-secret

Usage

Full Authentication Flow

add login link

<a href="{{ route('pdgi.auth') }}">Login</a>
  1. The package will:
    • Handle the OAuth flow with PDGI auth
    • Fetch user information from the PDGI server
    • Create a local user if one doesn't exist
    • Log the user in automatically
    • Redirect to your dashboard

统计信息

  • 总下载量: 36
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-29