Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage Issues #12

Closed
jacklagare opened this issue Jan 30, 2015 · 2 comments
Closed

Usage Issues #12

jacklagare opened this issue Jan 30, 2015 · 2 comments

Comments

@jacklagare
Copy link

I'm trying to use this extension but I'm getting the error below:

Call to a member function getServer() on a non-object

Any help?

@frock81
Copy link

frock81 commented Feb 10, 2015

Perhaps you put the module in the wrong place in the configuration file? Try to put it under 'modules'

'modules' => [
        'oauth2' => [
            'class' => 'filsh\yii2\oauth2server\Module',
            'options' => [
                'token_param_name' => 'accessToken',
                'access_lifetime' => 3600 * 24
            ],
            'storageMap' => [
                'user_credentials' => 'api\modules\v1\models\User'
            ],
        ],
    ],

@filsh filsh closed this as completed Mar 16, 2015
@mtangoo
Copy link
Contributor

mtangoo commented Sep 9, 2015

#43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants