Skip to content

Allow refresh_tokens and try to Transform Requests#5

Merged
engelgabriel merged 4 commits intomasterfrom
fix-for-zapier
Dec 16, 2016
Merged

Allow refresh_tokens and try to Transform Requests#5
engelgabriel merged 4 commits intomasterfrom
fix-for-zapier

Conversation

@graywolf336
Copy link
Copy Markdown
Contributor

@graywolf336 graywolf336 commented Dec 15, 2016

This allows refresh_tokens to be used as a grant type, which allows for applications to successfully refresh their access tokens. Also, I added a method which will try to transform requests which aren't the expected type. Which ends up being if the request's content-type is not application/x-www-form-urlencoded and it is POSTing, then we will copy the query strings into the request's body. This is needed for Zapier, but I have made it generic per suggetion of Gabriel. Note: The request application/x-www-form-urlencoded is required is due to the nodejs module we're using.

@graywolf336 graywolf336 requested a review from rodrigok December 15, 2016 16:40
@graywolf336 graywolf336 changed the title Fix zapier not posting with form-urlencoded and transform query to body. Allow refresh_tokens and fix for Zapier Dec 15, 2016
@graywolf336 graywolf336 changed the title Allow refresh_tokens and fix for Zapier Allow refresh_tokens and try to Transform Requests Dec 15, 2016
@engelgabriel engelgabriel merged commit df1ef0e into master Dec 16, 2016
@engelgabriel engelgabriel deleted the fix-for-zapier branch December 16, 2016 12:42
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.

3 participants