Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uppreserve sorted parameters - allows working with JIRA #48
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I believe those calls have already been dealt with. Please check the diff again and let me know. |
This comment has been minimized.
This comment has been minimized.
|
Tested this code against JIRA 6 and it's working |
This comment has been minimized.
This comment has been minimized.
|
please check the new commit, then we can merge this PR |
This comment has been minimized.
This comment has been minimized.
|
That's great! I added one more change to stop parameters like "x_custom_oauth_thing" getting into the Authorization header |
ddo
merged commit d2defec
into
ddo:master
May 7, 2017
1 check passed
This comment has been minimized.
This comment has been minimized.
|
ty |
This comment has been minimized.
This comment has been minimized.
gits2501
commented
May 25, 2017
•
|
Im sorry to interrupt you're pull req' thread. But as far I understand you're offering option of you library to work directly in browser. This mean that consumer secret and key that suppose to be private are hard coded into script (feeded as a plain javascript object with plain text strings as a secret and a key). That means I could:
As far as I know, twitter for example does not enforce callback URL's to be same. Meaning afther I make fake site and user approve my request to act in their name, callback url that twitter is redirecting that user can be anything. Because callback is sett dynamically trough javascript in request tokens step . |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
gits2501
commented
May 25, 2017
•
|
How this have anything to do with CORS? It has to do with javascript object that has stored plain text as consumer secret and key. CORS is security against accessing resources across domain that do not support at least JSONP or when server does not emit " Access Control Allow Origin:* " header. Twitter assigns to you your consumer secret, when you make your website/app account on twitter. And you use it to make authenticated requests to twitter API, in other words secret allows you to use API in the name of your app and users of your app. That's the whole point, no CORS restriction applies. Your consumer secret is no secret when I can get it merely by inspecting code in browser. I think you should make another line in your README.md where you state this clearly. |
This comment has been minimized.
This comment has been minimized.
|
ty, PR is welcome. |
asharpe-squiz commentedMay 3, 2017
See https://tools.ietf.org/html/rfc5849#section-3.4.1.3.2