Registers the specified client in the application.
Namespace: Nemiro.OAuthAssembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
public static void RegisterClient(
string providerName,
string clientId,
string clientSecret
)
public static void RegisterClient(
string providerName,
string clientId,
string clientSecret
)
Public Shared Sub RegisterClient (
providerName As String,
clientId As String,
clientSecret As String
)
Public Shared Sub RegisterClient (
providerName As String,
clientId As String,
clientSecret As String
)
Parameters
- providerName
- Type: System String
The provider name.
- clientId
- Type: System String
The application identifier obtained from the provider website.
- clientSecret
- Type: System String
The application secret key obtained from the provider website.
OAuthManager.RegisterClient
(
"google",
"1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com",
"AeEbEGQqoKgOZb41JUVLvEJL"
);
OAuthManager.RegisterClient
(
"facebook"
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
);
OAuthManager.RegisterClient
(
"google",
"1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com",
"AeEbEGQqoKgOZb41JUVLvEJL"
);
OAuthManager.RegisterClient
(
"facebook"
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
);
OAuthManager.RegisterClient _
(
"google",
"1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com",
"AeEbEGQqoKgOZb41JUVLvEJL"
)
OAuthManager.RegisterClient _
(
"facebook",
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
)
OAuthManager.RegisterClient _
(
"google",
"1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com",
"AeEbEGQqoKgOZb41JUVLvEJL"
)
OAuthManager.RegisterClient _
(
"facebook",
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
)