OAuthManager Class
OAuthManager ClassNemiro.OAuth
Represents helper class for management of OAuth clients.
Inheritance Hierarchy

System Object
  Nemiro.OAuth OAuthManager

Namespace: Nemiro.OAuth
Assembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax

public static class OAuthManager

The OAuthManager type exposes the following members.

Methods

  NameDescription
Public methodStatic memberGetClientTypeByName
Returns type of client by name.
Public methodStatic memberIsRegisteredClient
Checks registered provider with the specified name or not.
Public methodStatic memberRegisterClient(OAuthBase)
Registers the specified client in the application.
Public methodStatic memberRegisterClient(String, OAuthBase)
Registers the specified client in the application. (the main method)
Public methodStatic memberRegisterClient(ClientName, OAuthBase)
Registers the specified client in the application.
Public methodStatic memberRegisterClient(String, String, String)
Registers the specified client in the application.
Public methodStatic memberRegisterClient(String, String, String, String, NameValueCollection,  Object )
Registers the specified client in the application.
Public methodStatic memberRegisterClient(ClientName, String, String, String, NameValueCollection,  Object )
Registers the specified client in the application.
Top
Properties

  NameDescription
Public propertyStatic memberRegisteredClients
Gets the list of registered clients.
Top
Examples

You can use this class to register clients in your project.

OAuthManager.RegisterClient
(
  new FacebookClient
  (
    "1435890426686808", 
    "c6057dfae399beee9e8dc46a4182e8fd"
  )
);
See Also