DotNetOpenAuth.OAuth.Consumer
A token manager for use by a web site in its role as a consumer of
an individual ServiceProvider.
Gets the consumer key.
The consumer key.
Gets the consumer secret.
The consumer secret.
The messaging channel for OAuth 1.0(a) Consumers.
Initializes a new instance of the class.
The binding element to use for signing.
The web application store to use for nonces.
The token manager instance to use.
The security settings.
The message factory.
Gets the consumer secret for a given consumer key.
The consumer key.
The consumer secret.
Initializes the binding elements for the OAuth channel.
The signing binding element.
The nonce store.
An array of binding elements used to initialize the channel.
An OAuth-protocol specific implementation of the
interface.
Initializes a new instance of the class.
Analyzes an incoming request message payload to discover what kind of
message is embedded in it and returns the type, or null if no match is found.
The intended or actual recipient of the request message.
The name/value pairs that make up the message payload.
A newly instantiated -derived object that this message can
deserialize to. Null if the request isn't recognized as a valid protocol message.
The request messages are:
UserAuthorizationResponse
Analyzes an incoming request message payload to discover what kind of
message is embedded in it and returns the type, or null if no match is found.
The message that was sent as a request that resulted in the response.
Null on a Consumer site that is receiving an indirect message from the Service Provider.
The name/value pairs that make up the message payload.
A newly instantiated -derived object that this message can
deserialize to. Null if the request isn't recognized as a valid protocol message.
The response messages are:
UnauthorizedTokenResponse
AuthorizedTokenResponse
A binding element that signs outgoing messages and verifies the signature on incoming messages.
Initializes a new instance of the class.
The certificate used to sign outgoing messages.
Determines whether the signature on some message is valid.
The message to check the signature on.
true if the signature on the message is valid; otherwise, false.
Calculates a signature for a given message.
The message to sign.
The signature for the message.
This method signs the message per OAuth 1.0 section 9.3.
Creates a new object that is a copy of the current instance.
A new object that is a copy of this instance.
Gets or sets the certificate used to sign outgoing messages. Used only by Consumers.
Base class for and types.
Initializes a new instance of the class.
The endpoints and behavior of the Service Provider.
The host's method of storing and recalling tokens and secrets.
Obtains an access token for a new account at the Service Provider via 2-legged OAuth.
Any applicable parameters to include in the query string of the token request.
The access token.
The token secret is stored in the .
Creates a web request prepared with OAuth authorization
that may be further tailored by adding parameters by the caller.
The URL and method on the Service Provider to send the request to.
The access token that permits access to the protected resource.
The initialized WebRequest object.
Creates a web request prepared with OAuth authorization
that may be further tailored by adding parameters by the caller.
The URL and method on the Service Provider to send the request to.
The access token that permits access to the protected resource.
Extra parameters to include in the message. Must not be null, but may be empty.
The initialized WebRequest object.
Prepares an authorized request that carries an HTTP multi-part POST, allowing for binary data.
The URL and method on the Service Provider to send the request to.
The access token that permits access to the protected resource.
Extra parameters to include in the message. Must not be null, but may be empty.
The initialized WebRequest object.
Prepares an HTTP request that has OAuth authorization already attached to it.
The OAuth authorization message to attach to the HTTP request.
The HttpWebRequest that can be used to send the HTTP request to the remote service provider.
If property on the
has the
flag set and
is set to an HTTP method
that includes an entity body, the request stream is automatically sent
if and only if the dictionary is non-empty.
Creates a web request prepared with OAuth authorization
that may be further tailored by adding parameters by the caller.
The URL and method on the Service Provider to send the request to.
The access token that permits access to the protected resource.
The initialized WebRequest object.
Thrown if the request fails for any reason after it is sent to the Service Provider.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Creates a web request prepared with OAuth authorization
that may be further tailored by adding parameters by the caller.
The URL and method on the Service Provider to send the request to.
The access token that permits access to the protected resource.
The initialized WebRequest object.
Prepares an OAuth message that begins an authorization request that will
redirect the user to the Service Provider to provide that authorization.
An optional Consumer URL that the Service Provider should redirect the
User Agent to upon successful authorization.
Extra parameters to add to the request token message. Optional.
Extra parameters to add to the redirect to Service Provider message. Optional.
The request token that must be exchanged for an access token after the user has provided authorization.
The pending user agent redirect based message to be sent as an HttpResponse.
Exchanges a given request token for access token.
The request token that the user has authorized.
The verifier code.
The access token assigned by the Service Provider.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Gets the Consumer Key used to communicate with the Service Provider.
Gets the Service Provider that will be accessed.
Gets the persistence store for tokens and secrets.
Gets the channel to use for sending/receiving messages.
Gets the security settings for this consumer.
Gets or sets the channel to use for sending/receiving messages.
Used by a desktop application to use OAuth to access the Service Provider on behalf of the User.
The methods on this class are thread-safe. Provided the properties are set and not changed
afterward, a single instance of this class may be used by an entire desktop application safely.
Initializes a new instance of the class.
The endpoints and behavior of the Service Provider.
The host's method of storing and recalling tokens and secrets.
Begins an OAuth authorization request.
Extra parameters to add to the request token message. Optional.
Extra parameters to add to the redirect to Service Provider message. Optional.
The request token that must be exchanged for an access token after the user has provided authorization.
The URL to open a browser window to allow the user to provide authorization.
Exchanges a given request token for access token.
The request token that the user has authorized.
The access token assigned by the Service Provider.
Exchanges a given request token for access token.
The request token that the user has authorized.
The verifier code typed in by the user. Must not be Null for OAuth 1.0a service providers and later.
The access token assigned by the Service Provider.
A website or application that uses OAuth to access the Service Provider on behalf of the User.
The methods on this class are thread-safe. Provided the properties are set and not changed
afterward, a single instance of this class may be used by an entire web application safely.
Initializes a new instance of the class.
The endpoints and behavior of the Service Provider.
The host's method of storing and recalling tokens and secrets.
Begins an OAuth authorization request and redirects the user to the Service Provider
to provide that authorization. Upon successful authorization, the user is redirected
back to the current page.
The pending user agent redirect based message to be sent as an HttpResponse.
Requires HttpContext.Current.
Prepares an OAuth message that begins an authorization request that will
redirect the user to the Service Provider to provide that authorization.
An optional Consumer URL that the Service Provider should redirect the
User Agent to upon successful authorization.
Extra parameters to add to the request token message. Optional.
Extra parameters to add to the redirect to Service Provider message. Optional.
The pending user agent redirect based message to be sent as an HttpResponse.
Processes an incoming authorization-granted message from an SP and obtains an access token.
The access token, or null if no incoming authorization message was recognized.
Requires HttpContext.Current.
Processes an incoming authorization-granted message from an SP and obtains an access token.
The incoming HTTP request.
The access token, or null if no incoming authorization message was recognized.