Skip to content

Commit 2489013

Browse files
committed
Update README.md
1 parent 7a1176b commit 2489013

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,21 @@ To use this extension, simply add the following code in your application config
3333
],
3434
'storageMap' => [
3535
'user_credentials' => 'common\models\User'
36-
]
37-
],
36+
],
37+
'grantTypes' => [
38+
'client_credentials' => [
39+
'class' => '\OAuth2\GrantType\ClientCredentials',
40+
'allow_public_clients' => false
41+
],
42+
'user_credentials' => [
43+
'class' => '\OAuth2\GrantType\UserCredentials'
44+
],
45+
'refresh_token' => [
46+
'class' => '\OAuth2\GrantType\RefreshToken',
47+
'always_issue_new_refresh_token' => true
48+
]
49+
],
50+
]
3851
```
3952

4053
```common\models\User``` - user model implementing an interface ```\OAuth2\Storage\UserCredentialsInterface```, so the oauth2 credentials data stored in user table

0 commit comments

Comments
 (0)