Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit63055d1

Browse files
committed
Fixed spelling of RFC 5849
1 parenta5365f0 commit63055d1

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#OAuth 1.0a signature generator for node and the browser
2-
###Compliant with[RFC5843](http://tools.ietf.org/html/rfc5849) +[Errata ID 2550](http://www.rfc-editor.org/errata_search.php?rfc=5849) and[OAuth 1.0a](http://oauth.net/core/1.0a)
2+
###Compliant with[RFC 5843](http://tools.ietf.org/html/rfc5849) +[Errata ID 2550](http://www.rfc-editor.org/errata_search.php?rfc=5849) and[OAuth 1.0a](http://oauth.net/core/1.0a)
33

44
[![Build Status](https://travis-ci.org/bettiolo/oauth-signature-js.png?branch=master)](https://travis-ci.org/bettiolo/oauth-signature-js)
55
[![Bower version](https://badge.fury.io/bo/oauth-signature-js.svg)](http://badge.fury.io/bo/oauth-signature-js)
@@ -85,7 +85,7 @@ http://photos.example.net/photos?file=vacation.jpg&size=original&oauth_consumer_
8585

8686
##Advantages
8787

88-
This project has an extensive test coverage for all the corner cases present in the OAuth specifications ([RFC5843](http://tools.ietf.org/html/rfc5849) +[Errata ID 2550](http://www.rfc-editor.org/errata_search.php?rfc=5849) and[OAuth.net community version](http://oauth.net/core/1.0a))
88+
This project has an extensive test coverage for all the corner cases present in the OAuth specifications ([RFC 5843](http://tools.ietf.org/html/rfc5849) +[Errata ID 2550](http://www.rfc-editor.org/errata_search.php?rfc=5849) and[OAuth.net community version](http://oauth.net/core/1.0a))
8989

9090
Take a look at the test file[src/app/signature.tests.js](src/app/oauth-signature.tests.js)
9191

‎src/app/oauth-signature.tests.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ test('Produces the OAuth 1.0a POST reference sample', function () {
316316
assert.equal(newoauthSignature.SignatureBaseString('POST',url,parameters).generate(),expectedSignatureBaseString,
317317
'The generated POST signature base string should match the expected value');
318318
});
319-
test('Produces the RFC5849 POST reference sample',function(){
319+
test('Produces the RFC 5849 POST reference sample',function(){
320+
// Example from http://tools.ietf.org/html/rfc5849
320321
varparameters={
321322
oauth_consumer_key :'9djdj82h48djs9d2',
322323
oauth_token :'kkk9d7dh3k39sjv7',
@@ -371,8 +372,8 @@ test('Encodes the secrets following the RFC3986', function () {
371372
assert.equal(newoauthSignature.HmacSha1Signature(signatureBaseString,'你好','åçñ').generate(),'JXcouSrYw1x7ql1ArjfT1Bg8O9g%3D',
372373
'The secrets are encoding using RFC3986');
373374
});
374-
test('Matches theRFC5843 POST sample section 3.1 + Errata ID 2550',function(){
375-
// This is an implementation of http://www.rfc-base.org/txt/rfc-5849.txt section 3.1
375+
test('Matches theRFC 5843 POST sample section 3.1 + Errata ID 2550',function(){
376+
// This is an implementation of http://tools.ietf.org/html/rfc5849 section 3.1
376377
// Fixed by errata: http://www.rfc-editor.org/errata_search.php?rfc=5849
377378
varsignatureBaseString='POST&http%3A%2F%2Fexample.com%2Frequest&a2%3Dr%2520b%26a3%3D2%2520q%26a3%3Da%26b5%3D%253D%25253D%26c%2540%3D%26c2%3D%26oauth_consumer_key%3D9djdj82h48djs9d2%26oauth_nonce%3D7d8f3e4a%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D137131201%26oauth_token%3Dkkk9d7dh3k39sjv7';
378379
assert.equal(newoauthSignature.HmacSha1Signature(signatureBaseString,'j49sk3j29djd','dh893hdasih9').generate(),'r6%2FTJjbCOr97%2F%2BUU0NsvSne7s5g%3D',
@@ -419,8 +420,8 @@ test('Produces the signature for the OAuth 1.0a GET reference sample', function
419420
assert.equal(unencodedSignature,expectedDecodedSignature,
420421
'The generated unencoded GET signature should match the expected unencoded reference signature');
421422
});
422-
test('Produces the signature for theRFC5849 POST reference sample + Errata ID 2550',function(){
423-
// This is an implementation of http://www.rfc-base.org/txt/rfc-5849.txt section 3.1
423+
test('Produces the signature for theRFC 5849 POST reference sample + Errata ID 2550',function(){
424+
// This is an implementation of http://tools.ietf.org/html/rfc5849 section 3.1
424425
// Fixed by Errata: http://www.rfc-editor.org/errata_search.php?rfc=5849
425426
varhttpMethod='POST',
426427
url='http://example.com/request',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp