Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

add Basic auth header to the request #27

Merged

Conversation

bulkan
Copy link
Contributor

@bulkan bulkan commented Feb 24, 2014

This is needed as per the documentation

curl -v https://api.sandbox.paypal.com/v1/identity/openidconnect/tokenservice \
-u "{clientId}:{secret}" \
-d "grant_type=authorization_code
    &code={authorizationCode}
    &redirect_uri=http://example.com/myapp/return.php"

The curl example passes on Basic Auth

fixes #26

@tomwhipple
Copy link
Contributor

@bulkan Thanks for the contribution. @avidas Please review & merge if acceptable.

@avidas
Copy link
Contributor

avidas commented Mar 3, 2014

Looks good, merging.

avidas added a commit that referenced this pull request Mar 3, 2014
…oken

add Basic auth header to the request
@avidas avidas merged commit 9dba642 into paypal:master Mar 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

400: client id or secret is null
3 participants