I'm trying to change the token type to JWT, and I've been following the instructions given here (https://github.com/Filsh/yii2-oauth2-server), so I created the files (In fact, I just copy them):
app\storage\PublicKeyStorage
app\storage\JwtAccessToken
Then in my config file I have something like this:
So, after some research I decide to remove de 'useJwtAccessTokens' => true from the config. Then I put it in vendor\filsh\yii2-oauth2-server\Module.php. The code with the new line is like this (just a fragment of it):
Hi Everyone
I'm trying to change the token type to JWT, and I've been following the instructions given here (https://github.com/Filsh/yii2-oauth2-server), so I created the files (In fact, I just copy them):
Then in my config file I have something like this:
But when I send a request, I got this error:
So, after some research I decide to remove de
'useJwtAccessTokens' => true
from the config. Then I put it invendor\filsh\yii2-oauth2-server\Module.php
. The code with the new line is like this (just a fragment of it):Note where I put the option
'use_jwt_access_tokens' => true
. After this, I got stuck with a new final error that says:The only guess I can make is tha something happen with the indicated interface.
I Hope you can help me, or tell me how to proper set the config to use JWT.
Bye