Skip to content

Commit

Permalink
fix: updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
varp committed Aug 3, 2020
1 parent b9c6e55 commit 155cd7e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,18 @@ The preferred way to install this extension is through [composer](http://getcomp

Either run

```
```shell script
php composer.phar require --prefer-dist filsh/yii2-oauth2-server "*"
```

or add

```json
"filsh/yii2-oauth2-server": "~2.0"
"filsh/yii2-oauth2-server": "^2.0"
```

to the require section of your composer.json.

To use the latest features (Like JWT tokens), you need to use 2.0.1 branch.
Edit your compose.json and add

```json
"filsh/yii2-oauth2-server": "2.0.1.x-dev"
```

To use this extension, simply add the following code in your application configuration:

Expand Down Expand Up @@ -148,7 +142,7 @@ class SiteController extends Controller
}
```

Also if you set ```allowImplicit => true``` you can use Implicit Grant Type - [see more](http://bshaffer.github.io/oauth2-server-php-docs/grant-types/implicit/)
Also, if you set ```allowImplicit => true``` you can use Implicit Grant Type - [see more](http://bshaffer.github.io/oauth2-server-php-docs/grant-types/implicit/)

Request example:

Expand Down Expand Up @@ -199,3 +193,6 @@ class PublicKeyStorage implements \OAuth2\Storage\PublicKeyInterface{


For more, see https://github.com/bshaffer/oauth2-server-php

# Authors & Contributors
The original author of this package [Igor Maliy](https://github.com/filsh) . At the time the project maintainer is [Vardan Pogosian](https://vardan.dev).

0 comments on commit 155cd7e

Please sign in to comment.