-1

我正在使用 dotnetopenauth 3.4.7.11121。我需要为应用程序生成访问令牌(它将提供其 id 和秘密),而不是为用户生成访问令牌,就像 Facebook 所做的那样。是否可以使用 3.4.7.11121?

我想我需要这样的场景

4

1 回答 1

0

It sounds like you're talking about OAuth 1.0. Based on that assumption...

Just come up with an access token and token secret yourself, store it in your OAuth 1.0 service provider's token database, and give it to your OAuth 1.0 consumer. When the call to service provider comes in, DNOA will validate the token against your access token database and it will show up as valid.

In other words, if you want a non-standard way of issuing OAuth 1.0 access tokens, just do it yourself -- not need to use DotNetOpenAuth for generating the access token as it is just a series of random characters stored in a database table.

于 2012-12-04T04:54:33.257 回答