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

USPS requires POST method for OAUTH2 authorization #2488

Closed
ianbaek opened this issue Jul 10, 2024 · 1 comment
Closed

USPS requires POST method for OAUTH2 authorization #2488

ianbaek opened this issue Jul 10, 2024 · 1 comment
Labels

Comments

@ianbaek
Copy link

ianbaek commented Jul 10, 2024

I wanted to integrate usps oauth, thus I added below in providers.yaml based on their doc. However, the issue is that 'https://api.usps.com/oauth2/v3/authorize' requires only POST method and it returns error. I understand standard oauth2 is GET to authorize. Is there a way to specify the method in providers.yaml?

usps:
categories:
- shipping
auth_mode: OAUTH2
authorization_url: https://api.usps.com/oauth2/v3/authorize
token_url: https://api.usps.com/oauth2/v3/token
token_request_auth_method: basic
authorization_params:
response_type: code
token_params:
grant_type: authorization_code
refresh_params:
token_type_hint: refresh_token
proxy:
base_url: https://api.usps.com

Copy link

linear bot commented Jul 10, 2024

@bastienbeurier bastienbeurier added the GitHub label Jul 12, 2024 — with Linear
@ianbaek ianbaek closed this as completed Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants