public void Index(string signatureMethod) { // just populate the propertybag with a few uri's for testing purposes. signatureMethod = signatureMethod ?? SignatureMethod.PlainText; PropertyBag["signatureMethod"] = signatureMethod; OAuthConsumer consumer = _oAuthService.CreateConsumer(signatureMethod); PropertyBag["requestTokenUri"] = consumer.BuildRequestTokenContext(null).GenerateUrl(); PropertyBag["exchangeRequestTokenForAccessTokenUri"] = consumer.BuildExchangeRequestTokenForAccessTokenContext(_testRequestToken, null).GenerateUrl(); PropertyBag["accessProtectedResourceUri"] = CreateApiResourceRequest(consumer, "/api/contacts/"); PropertyBag["accessOneProtectedResourceUri"] = CreateApiResourceRequest(consumer, "/api/contacts/1"); }