Skip to content

jackwangshukai/mn-sso-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssoSDK

mnssoSDK

安装

$ composer require wangshukai/mn-sso-php-sdk

使用示例

<?php
#使用分配的key和appSecret 网关地址填写测试或者线上地址  参数相关请参考文档
$config =['appKey' => '', 'appSecret' => '', 'gatewayUrl' => "","jumpUrl"=>''];
$sso = new Sso($config);
$token = $sso->token;//用户相关
$data = [
            'grant_type' => 'authorization_code',
            'code' => 'xxx'
             ];
$res=$token->getToken($data);//token操作

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages