I am confused which factory method OAuth1Authenticator factory should use. I think I should get the consumer privacy token (can I get it using RestSharp?), Then use the OAuth1Authenticator.ForRequestToken, then get the access token and access token (how?), Then use OAuth1Authenticator.ForAccessToken and use the return value from this forward.
But it seems that RestSharp has an architecture for using only one authenticator, and I can not find a way from a cold start (having only an application token) to the presence of all the necessary credentials (client key and secret, access key and secret).
Bonus questions:
- What are the .ForClientAuthentication and .ForProtectedResource methods for?
- Why is OAuth2Authenticatior in a different namespace from OAuth1Authenticator?
oauth restsharp
Sergey Aldoukhov
source share