chornthorn/wso2-is 问题修复 & 功能扩展

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

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

chornthorn/wso2-is

最新稳定版本:v1.0.7

Composer 安装命令:

composer require chornthorn/wso2-is

包简介

WSO2 Identity Server OAuth2 Provider for Laravel Socialite

README 文档

README

Latest Version on Packagist GitHub issues-closed Total Downloads

composer require chornthorn/wso2-is

Installation & Basic Usage

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

Add configuration to config/services.php

'wso2is' => [
  'client_id' => env('WSO2IS_CLIENT_ID'),
  'client_secret' => env('WSO2IS_CLIENT_SECRET'),
  'redirect' => env('WSO2IS_REDIRECT_URI'),
  'base_url' => env('WSO2IS_BASE_URL'),
],

Add configuration to .env

Login to your WSO2 Identity Server and create a new OAuth2 application. And then add the following configuration to your .env file.

WSO2IS_CLIENT_ID=your-client-id
WSO2IS_CLIENT_SECRET=your-client-secret
WSO2IS_REDIRECT_URI=https://your-callback-url
WSO2IS_BASE_URL=https://your-identity-server.com/oauth2

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\WSO2IS\Wso2IsExtendSocialite::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('wso2is')->redirect();

Returned User fields

  • id
  • nickname
  • name
  • email

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-01