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

Oauth2.0_access_token: priority to user parameters #566

Closed
wants to merge 2 commits into from

Conversation

denrou
Copy link

@denrou denrou commented Jan 16, 2019

In oauth2.0_access_token, a user have the possibility to add its own
parameters to the POST request.
Those parameters are merged with endpoints and app parameters.
When a conflict is detected, endpoints parameters are privileged.
It makes more sense to prioritize the user parameters to overwrite
endpoints parameters.

This solve #564 with:
oauth2.0_access_token(endpoint, app, user_params = list(username = "username", password = "password", grant_type = "password"), code = NULL)

In oauth2.0_access_token, a user have the possibility to add its own
parameters to the POST request.
Those parameters are merged with endpoints and app parameters.
When a conflict is detected, endpoints parameters are privileged.
It makes more sense to prioritize the user parameters to overwrite
endpoints parameters.
@hadley
Copy link
Member

hadley commented Apr 3, 2020

Can you please add a bullet to the top of NEWS.md? It should briefly describe the change and end with (@yourname, #issuenumber).

@denrou
Copy link
Author

denrou commented Apr 17, 2020

Thanks for reviewing this PR, I made the requested changes.

@denrou denrou closed this Jun 27, 2022
@hadley hadley reopened this Jun 27, 2022
@hadley
Copy link
Member

hadley commented Oct 31, 2023

httr has been superseded in favour of httr2, so is no longer under active development. Thanks for using httr, thanks for contributing, and my apologies that your contribution never made it into the package.

@hadley hadley closed this Oct 31, 2023
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