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

Enabled client_secret_basic authentication on refreshToken() #215

Closed
wants to merge 0 commits into from
Closed

Enabled client_secret_basic authentication on refreshToken() #215

wants to merge 0 commits into from

Conversation

capile
Copy link
Contributor

@capile capile commented May 18, 2020

List of common tasks a pull request require complete

  • Changelog entry is added or the pull request don't alter library's functionality

Effectively updated the refreshToken() behavior to match requestToken() behavior and accept client_secret_basic authentication.

Eventually can update to have all token_endpoints loop through token_endpoint_auth_methods_supported and pick the first available option. I'd also suggest making getProviderConfigValue()public and adding a setProviderConfigValue() to force the usage of specific authentication, encoding etc.

@@ -812,6 +812,9 @@ protected function requestTokens($code) {
*/
public function refreshToken($refresh_token) {
$token_endpoint = $this->getProviderConfigValue('token_endpoint');
$token_endpoint_auth_methods_supported = $this->getProviderConfigValue('token_endpoint_auth_methods_supported', ['client_secret_basic', 'client_secret_post']);
Copy link
Collaborator

@azmeuk azmeuk Nov 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the spec, the default should be client_secret_basic only, however this does not really change the rest of the patch.

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

Successfully merging this pull request may close these issues.

2 participants