OAuthWeb RedirectToAuthorization Method (String)Nemiro.OAuth
Redirects current client to the authorization page of the specified provider.

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

public static void RedirectToAuthorization(
	string clientName
)

Parameters

clientName
Type: System String
Provider name, through which it is necessary to authorize the current user.
Exceptions

ExceptionCondition
ClientIsNotRegisteredExceptionclientName is unregistered. Use the RegisterClient(OAuthBase) for OAuth clients registration.
NullHttpContextException The exception that is thrown when you try to access methods that are designed for web projects.
Remarks

The method will not work in desktop applications. For desktop applications you can use GetAuthorizationUrl(String).

See Also