public void RequestAuthentication(HttpContextBase context, Uri returnUrl)
        {
            _redirectUri = returnUrl.AbsoluteUri;

            var redirectUri = AuthClient.CreateRedirectionUri(OAuthUrl, OauthAuthorizePath, _clientId, returnUrl);

            context.Response.Redirect(redirectUri);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
        public void RequestAuthentication(HttpContextBase context, Uri returnUrl)
        {
            var redirectUri = AuthClient.CreateRedirectionUri(FbUrl, "dialog/oauth", AppId, returnUrl);

            context.Response.Redirect(redirectUri);
        }