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

W-6115601 Update all functions to use Authorization header #40

Merged
3 commits merged into from May 7, 2019
Merged

W-6115601 Update all functions to use Authorization header #40

3 commits merged into from May 7, 2019

Conversation

ghost
Copy link

@ghost ghost commented May 6, 2019

This pull request changes the Pardot Ruby Client to use Authorization to authenticate with the Pardot API instead of passing the user_key and api_key as query string parameters.

@ghost
Copy link
Author

ghost commented May 6, 2019

Fixes Issue #39

end

def fake_get path, response
FakeWeb.register_uri(:get, "https://pi.pardot.com#{path}", :body => response)
FakeWeb.register_uri(:get, "https://pi.pardot.com#{path}", :body => response, :Authorization => 'user_key=bar&api_key=my_api_key')
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't these have Pardot at the front of the string?

Copy link
Author

Choose a reason for hiding this comment

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

FakeWeb doesn't support matching based on Authorization so these values weren't being used. I've removed them in the latest.

@ghost ghost merged commit 418d66f into pardot:master May 7, 2019
dyroffk added a commit to Vidyard/ruby-pardot that referenced this pull request Jan 25, 2021
* properly escape url entities passed into the url

* W-5653730: Change to pass auth parameters in body.
Passing parameters using query string to auth is deprecated.

* W-6115601 Update all functions to use Authorization header (pardot#40)

Update calls to use Authorization header instead of query string

* Updating version number

* add custom fields

* update readme

* [W-7879842] Update httparty and rspec versions (pardot#51)

* PR lint suggestions

* Fix merge error around smooth_params

Co-authored-by: ted <[email protected]>
Co-authored-by: Jared <[email protected]>
Co-authored-by: Justin Roberts <[email protected]>
Co-authored-by: Adil Delawalla <[email protected]>
Co-authored-by: bentona <[email protected]>
This pull request was closed.
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.

1 participant