Download the PHP package jakim-pj/yii2-authserver without Composer
On this page you can find all versions of the php package jakim-pj/yii2-authserver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jakim-pj/yii2-authserver
More information about jakim-pj/yii2-authserver
Files in jakim-pj/yii2-authserver
Download jakim-pj/yii2-authserver
More information about jakim-pj/yii2-authserver
Files in jakim-pj/yii2-authserver
Vendor jakim-pj
Package yii2-authserver
Short Description Authentication server compatible with OAuth2.
License MIT
Package yii2-authserver
Short Description Authentication server compatible with OAuth2.
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-authserver
The main purpose of this package is simplify the authentication process in restapi for mobile apps
Authentication server is compatible with OAuth 2.0
Success response RFC 6749
Error response RFC 6749
Errors
The authorization server responds with an HTTP 400 (Bad Request) status code and includes the following parameters with the response:
- invalid_request The request is missing a required parameter, other than grant type.
- invalid_grant The provided authorization grant (e.g., authorization code, resource owner credentials or refresh token) is invalid, expired, revoked.
- unsupported_grant_type The authorization grant type is not supported by the authorization server.
Installation
1 . Configure component in config/web.php
Example:
2 . Implement identity interfaces (typically in User
model):
jakim\authserver\base\UserIdentityInterface
for password grant and refresh token grantjakim\authserver\base\FacebookUserIdentityInterface
for facebook token grant
Example:
3 . Create token
action in auth controller
Example - custom action:
Example - predefined action class:
API Usage example:
Arguments for password grant type
Property | Type | Required | Description |
---|---|---|---|
username | varchar(255) | Yes | |
password | varchar(255) | Yes | Password |
grant_type | varchar(255) | Yes | Value always: password |
Arguments for password grant type
Property | Type | Required | Description |
---|---|---|---|
refresh_token | varchar(255) | Yes | Refresh Token |
grant_type | varchar(255) | Yes | Value always: refresh_token |
Arguments for facebook grant type
Property | Type | Required | Description |
---|---|---|---|
facebook_token | varchar(255) | Yes | Facebook Token |
grant_type | varchar(255) | Yes | Value always: facebook_token |
4 . Use custom auth filter jakim\authserver\filters\HttpBearerAuth
(optionally)
All versions of yii2-authserver with dependencies
PHP Build Version
Package Version
The package jakim-pj/yii2-authserver contains the following files
Loading the files please wait ....