https://github.com/pmvc-plugin/auth
https://github.com/pmvc-plugin/auth
authentication
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pmvc-plugin/auth
- Owner: pmvc-plugin
- Created: 2015-08-28T14:26:45.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T21:41:48.000Z (about 5 years ago)
- Last Synced: 2025-07-31T16:04:49.844Z (11 months ago)
- Topics: authentication
- Language: PHP
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/pmvc-plugin/auth)
[](https://packagist.org/packages/pmvc-plugin/auth)
[](https://travis-ci.org/pmvc-plugin/auth)
[](https://packagist.org/packages/pmvc-plugin/auth)
[](https://packagist.org/packages/pmvc-plugin/auth)
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
* mkdir test_folder
* curl -sS https://getcomposer.org/installer | php
### 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