Provides methods for obtaining access tokens and making authorized requests.
public class OAuthContext
| name | description |
|---|---|
| OAuthContext(…) | Initializes a new instance of the OAuthContext class. |
| AccessToken { get; } | Gets the access token. |
| AccessTokenSecret { get; } | Gets the access token secret. |
| HasRequestToken { get; } | Returns a value indicating if request token is present. |
| IsAuthorized { get; } | Gets a value indicating if authorization has already occurred. |
| OAuthEndpoint { get; } | Gets the OAuth endpoint. |
| RequestAccessTokenHttpMethod { get; } | Gets the request access token HTTP method. |
| RequestToken { get; } | Gets the request token. |
| RequestTokenHttpMethod { get; } | Gets the request token HTTP method. |
| ClearCredentials() | Clears all saved credentials. |
| GetAuthorizationHeader(…) | Gets the OAuth authorization header. (2 methods) |
| GetUriForAuthorization() | Gets a uri for authorizing the user. |
| SetAccessTokenAndSecret(…) | Sets access credentials. |
| SetRequestTokenAndSecret(…) | Sets the request token and secret. |
| static EncodingSettings { get; } | Gets the encoding settings. |
| name | description |
|---|---|
| virtual ClearAccessCredentialsCore() | Allows derived classes to remove any extra credentials. |
| static GetValues(…) | Creates a dictionary from a string. |