OAuthManager RegisterClient Method (OAuthBase)Nemiro.OAuth
Registers the specified client in the application.

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

public static void RegisterClient(
	OAuthBase client
)
Exceptions

ExceptionCondition
ArgumentNullExceptionclient is null or empty.
DuplicateProviderExceptionIf you attempt to register the already registered client.
Examples

OAuthManager.RegisterClient
(
  new GoogleClient
  (
    "1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com", 
    "AeEbEGQqoKgOZb41JUVLvEJL"
  )
);

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