You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
When someone use the third party login to my system without password,like Authorization code , how should I create access_token ? In the configuration file , I did like this 'modules' => [ 'oauth2' => [ 'class' => 'filsh\yii2\oauth2server\Module', 'tokenParamName' => 'accessToken', 'tokenAccessLifetime' => 3600 * 24 * 7, 'refreshTokenLifetime' => 3600 * 24 * 30, 'storageMap' => [ 'user_credentials' => 'common\models\WtkUser', ], 'grantTypes' => [ 'authorization_code' => [ 'class' => 'OAuth2\GrantType\AuthorizationCode' ], 'refresh_token' => [ 'class' => 'OAuth2\GrantType\RefreshToken', 'always_issue_new_refresh_token' => true ] ] ], ],
the model 'WtkUser' was defined in 'common\models\WtkUser.php' , this class implements \OAuth2\Storage\AuthorizationCodeInterface , there are three function should be implemented , but I don't know how to do it ? Anyone can help me?
Thanks again!
The text was updated successfully, but these errors were encountered:
Hi
When someone use the third party login to my system without password,like Authorization code , how should I create access_token ? In the configuration file , I did like this
'modules' => [ 'oauth2' => [ 'class' => 'filsh\yii2\oauth2server\Module', 'tokenParamName' => 'accessToken', 'tokenAccessLifetime' => 3600 * 24 * 7, 'refreshTokenLifetime' => 3600 * 24 * 30, 'storageMap' => [ 'user_credentials' => 'common\models\WtkUser', ], 'grantTypes' => [ 'authorization_code' => [ 'class' => 'OAuth2\GrantType\AuthorizationCode' ], 'refresh_token' => [ 'class' => 'OAuth2\GrantType\RefreshToken', 'always_issue_new_refresh_token' => true ] ] ], ],
the model 'WtkUser' was defined in 'common\models\WtkUser.php' , this class implements \OAuth2\Storage\AuthorizationCodeInterface , there are three function should be implemented , but I don't know how to do it ? Anyone can help me?
Thanks again!
The text was updated successfully, but these errors were encountered: