Пример #1
0
        public void RequestAuthentication(HttpContextBase context, Uri returnUrl)
        {
            _redirectUri = HttpUtility.UrlEncode(returnUrl.AbsoluteUri);

            var redirectUri = AuthClient.CreateRedirectionUri(OAuthUrl, AuthorizePath, _appId, returnUrl);

            context.Response.Redirect(redirectUri);
        }
Пример #2
0
        public void RequestAuthentication(HttpContextBase context, Uri returnUrl)
        {
            var redirectUri = AuthClient.CreateRedirectionUri(FbUrl, "dialog/oauth", AppId, returnUrl);

            context.Response.Redirect(redirectUri);
        }