Redirects current client to the authorization page of the specified provider and return URL.
Namespace: Nemiro.OAuthAssembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax
Parameters
- clientName
- Type: System String
Provider name, through which it is necessary to authorize the current user.
- returnUrl
- Type: System String
The address to which the user is redirected after the authorization.
Exceptions
Exception | Condition |
---|---|
ClientIsNotRegisteredException | clientName 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, String).
See Also