mo-lin/edu-auth

This package is abandoned and no longer maintained. No replacement package was suggested.

shanghai edu unified identity authentication

Maintainers

Package info

github.com/molinchenxi/edu-auth

pkg:composer/mo-lin/edu-auth

Statistics

Installs: 108

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.2 2020-02-02 14:47 UTC

This package is auto-updated.

Last update: 2023-01-29 03:45:56 UTC


README

shanghai edu unified identity authentication

Install

composer require mo-lin/edu-auth

Usage

  1. 获取三方调用链接
   $auth = new \EduOauth\Auth();
   $link = $auth->getOauthLink('http://x.xx.xxx/callback');
  1. 通过 code 获取三方用户信息
    $code = $GET['code'];
    $auth = (new \EduOauth\Auth())->setCallBack('http://x.xx.xxx/callback');
    $userInfo = $auth->getUserInfo();