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

Oauth 1.0 - Authorization Headers #105

Merged
merged 1 commit into from
Jul 28, 2012
Merged

Conversation

problame
Copy link

@problame problame commented Jul 6, 2012

I just checked the (http://oauth.net/core/1.0/) documentation, section 5.4.1 Authorization Header.

There, it says:

Parameters are separated by a comma character (ASCII code 44) and OPTIONAL linear whitespace per [RFC2617].

Since the service I had to work with only accepted requests with whitespaces (", ") after the comma, I implemented a variable that allows you to define the seperator between the OAuth parameters:

Usage

var oaclient = new OAuth(...);
oaclient._oauthParameterSeperator = ", ";

Default

The default behavior has not changed:

_oauthParameterSeperator = ",";

@alexindigo
Copy link

+1

ciaranj added a commit that referenced this pull request Jul 28, 2012
@ciaranj ciaranj merged commit 5fab3c5 into ciaranj:master Jul 28, 2012
@ciaranj
Copy link
Owner

ciaranj commented Jul 28, 2012

Thank you.

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