filsh / yii2-oauth2-server

A wrapper for implementing an OAuth2 Server(https://github.com/bshaffer/oauth2-server-php)
MIT License
332 stars 167 forks source link

Setting unknown property: filsh\yii2\oauth2server\Module::options #60

Closed vishnupriyam closed 8 years ago

vishnupriyam commented 8 years ago

After updating yo yii2.0.6 - when I run my application - I get the following error:

Setting unknown property: filsh\yii2\oauth2server\Module::options

The issue is due the

'options' =>[
    'token_param_name' => 'access_token',
    'access_lifetime' => 3600 * 24
]

setting in the application/config/common.php under the oauth2 module which was done according to README.md

vishnupriyam commented 8 years ago

Please update readme.md that settings have to be done in following manner:

'tokenParamName' => 'accessToken',
'tokenAccessLifetime' => 3600 * 24,
mtangoo commented 8 years ago

@vishnupriyam make a PR

vishnupriyam commented 8 years ago

made one already : https://github.com/Filsh/yii2-oauth2-server/pull/61