Click or drag to resize

GmailOAuth Class

This class allows you to sign-in using Google 3-legged OAuth. It's a wrapper over generic OAuth class.
Inheritance Hierarchy
SystemObject
  Limilabs.Client.Authentication.GoogleGmailOAuth

Namespace:  Limilabs.Client.Authentication.Google
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
[SerializableAttribute]
public class GmailOAuth

The GmailOAuth type exposes the following members.

Constructors
  NameDescription
Public methodGmailOAuth
Creates new GmailOAuth object with consumer key and consumer secret set to "anonymous".
Public methodGmailOAuth(OAuthToken)
Creates new GmailOAuth object.
Public methodGmailOAuth(String, String)
Creates new GmailOAuth object.
Top
Properties
  NameDescription
Public propertyAccessToken
Gets or sets access token.
Public propertyConsumerToken
Gets consumer token.
Public propertyRequestToken
Gets request token.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAccessToken
Contacts Google to exchange an authorized request token for an access token.
Public methodGetAuthorizationUrl
Gets url you should redirect your user to, in order for him to authorize IMAP access. This method uses oob instead of callback this means that your user will need to copy verification code to your application.
Public methodGetAuthorizationUrl(String)
Gets url you should redirect your user to, in order for him to authorize Google access. Default scopes are ImapAndSmtp and UserInfoEmailScope
Public methodGetAuthorizationUrl(ListGoogleScope)
Gets url you should redirect your user to, in order for him to authorize IMAP access. This method uses oob instead of callback this means that your user will need to copy verification code to your application.
Public methodGetAuthorizationUrl(String, ListGoogleScope)
Gets url you should redirect your user to, in order for him to authorize IMAP access.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetXOAuthKeyForImap
Gets XOAuthKey that can be used by LoginOAUTH(String) and RevokeToken(String) methods.
Public methodGetXOAuthKeyForImap(String)
Gets XOAuthKey that can be used by LoginOAUTH(String) and RevokeToken(String) methods.
Public methodGetXOAuthKeyForSmtp
Gets XOAuthKey that can be used by LoginOAUTH(String) and RevokeToken(String) methods.
Public methodGetXOAuthKeyForSmtp(String)
Gets XOAuthKey that can be used by LoginOAUTH(String) and RevokeToken(String) methods.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRevokeToken
Public methodSetAccessToken
Sets access token. Typically you don't need to use this method, as GetAccessToken(String) methods retrieves access token for you.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also