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.26106.1555
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 methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows 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(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) Gets url you should redirect your user to, in order for him to authorize Google access. Default scopes are ImapAndSmtp and UserInfoEmailScope
Public methodGetAuthorizationUrl(String, ListGoogleScope) Gets url you should redirect your user to, in order for him to authorize IMAP access.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets 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 methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRevokeToken Revokes access for specified token (retrieved using GetXOAuthKeyForImap or GetXOAuthKeyForSmtp method)
Public methodSetAccessToken Sets access token. Typically you don't need to use this method, as GetAccessToken(String) methods retrieves access token for you.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also