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

Missing configuration to set parameter revokeRefreshTokens #81

Open
Tetragramat opened this issue Feb 23, 2022 · 0 comments
Open

Missing configuration to set parameter revokeRefreshTokens #81

Tetragramat opened this issue Feb 23, 2022 · 0 comments

Comments

@Tetragramat
Copy link

Tetragramat commented Feb 23, 2022

There is no way to disable refresh token revocation using configuration.

\League\OAuth2\Server\AuthorizationServer::revokeRefreshTokens

I'm actually forced to set the value using compiler pass and calling it before enableGrantType is called.

$authorizationServer = $container->getDefinition('League\OAuth2\Server\AuthorizationServer');
$calls = $authorizationServer->getMethodCalls();
array_unshift($calls, ['revokeRefreshTokens', [false]]);
$authorizationServer->setMethodCalls($calls);
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

1 participant