Skip to content

Commit e66f846

Browse files
committed
Added PLAINTEXT signature support to OAuth
1 parent 7229095 commit e66f846

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

RestSharp/Authenticators/OAuth/OAuthTools.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,12 @@ public static string GetSignature(OAuthSignatureMethod signatureMethod,
315315

316316
break;
317317
}
318+
case OAuthSignatureMethod.PlainText:
319+
{
320+
signature = "{0}&{1}".FormatWith(consumerSecret, tokenSecret);
321+
322+
break;
323+
}
318324
default:
319325
throw new NotImplementedException("Only HMAC-SHA1 is currently supported.");
320326
}

0 commit comments

Comments
 (0)