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

SF client_secret_basic unsupported #343

Open
fgarnier-hublot opened this issue Nov 4, 2022 · 0 comments
Open

SF client_secret_basic unsupported #343

fgarnier-hublot opened this issue Nov 4, 2022 · 0 comments

Comments

@fgarnier-hublot
Copy link

Salesforce .well-known/openid-configuration supports:

  "token_endpoint_auth_methods_supported": [
    "client_secret_post",
    "client_secret_basic",
    "private_key_jwt"
  ],

However, even if client_secret_basic is mentioned, SF required client_id and client_secret in the RequestToken
So I had to comment a part of requestTokens function

        # Consider Basic authentication if provider config is set this way
        if ($this->supportsAuthMethod('client_secret_basic', $token_endpoint_auth_methods_supported)) {
//            $authorizationHeader = 'Authorization: Basic ' . base64_encode(urlencode($this->clientID) . ':' . urlencode($this->clientSecret));
//            unset($token_params['client_secret']);
//            unset($token_params['client_id']);
        }
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