custom bearers - RTLer/laravel-oauth2-server GitHub Wiki
there is two bearer that this library uses.
BearerTokenResponse
this is the one that generate response for getting access token.
it have to extends League\OAuth2\Server\ResponseTypes\AbstractResponseType
BearerTokenValidator
this one validate incoming requests resources.
it must implement League\OAuth2\Server\AuthorizationValidators\AuthorizationValidatorInterface
you can use custom ones by uncommenting this part in config file
// 'bearer_token_response' => RTLer\Oauth2\Bearers\BearerTokenResponse::class,
// 'bearer_token_validator' => RTLer\Oauth2\Bearers\BearerTokenValidator::class,
default bearers uses jwt to create accessToken, if you don't want to use jwt just uncomment this part in config file
'bearer_token_response' => RTLer\Oauth2\Bearers\BearerTokenResponse::class,
'bearer_token_validator' => RTLer\Oauth2\Bearers\BearerTokenValidator::class,