PMVC authentication lib

0.1.14 2017-07-18 03:56 UTC

This package is auto-updated.

Last update: 2021-12-01 00:11:47 UTC


README

Latest Stable Version Latest Unstable Version Build Status License Total Downloads

auth

Login Process

call loginBegin -> ask third party server -> call loginFinish -> handle authorization result

Check Login status

  1. isAuthorized
  2. isRegisted

How work

1. go to index

  • Gen return url
  • Ask third party remote server
  • Third party server back return result to return url

2. Return url

  • Check third party server run result
  • if succcess redirect to success page else go to error page

3. Success page or Error page

Install with Composer

1. Download composer

2. Install by composer.json or use command-line directly

2.1 Install by composer.json

  • vim composer.json
{
    "require": {
        "pmvc-plugin/auth": "dev-master"
    }
}
  • php composer.phar install

2.2 Or use composer command-line

  • php composer.phar require pmvc-plugin/auth