dezinger/socialiteproviders-alfaid 问题修复 & 功能扩展

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

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

dezinger/socialiteproviders-alfaid

最新稳定版本:v1.0.1

Composer 安装命令:

composer require dezinger/socialiteproviders-alfaid

包简介

AlfaID OAuth2 Provider for Laravel Socialite

README 文档

README

composer require dezinger/socialiteproviders-alfaid

Installation & Basic Usage

Please see the Base Installation Guide, then follow the provider specific instructions below.

Add configuration to config/services.php

'alfaid' => [    
  'domain' => env('ALFAID_DOMAIN'),
  'domain_api' => env('ALFAID_DOMAIN_API'),  
  'client_id' => env('ALFAID_CLIENT_ID'),  
  'client_secret' => env('ALFAID_CLIENT_SECRET'),  
  'redirect' => env('ALFAID_REDIRECT_URI'),
  'guzzle' => [
    \GuzzleHttp\RequestOptions::CERT => env('ALFAID_PATH_CER'),
    \GuzzleHttp\RequestOptions::SSL_KEY => [
        env('ALFAID_PATH_KEY'),
        env('ALFAID_KEY_PASS')
    ],
  ],
],

Add provider event listener

Configure the package's listener to listen for SocialiteWasCalled events.

Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\AlfaID\AlfaIDExtendSocialite::class.'@handle',
    ],
];

Usage

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

return Socialite::driver('alfaid')->redirect();

Returned User fields

  • id
  • name
  • email

Expand User fields

...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-28