Blaze.Controllers.OAuthService.GetLoginUrl C# (CSharp) Method

GetLoginUrl() public method

public GetLoginUrl ( ) : string
return string
        public string GetLoginUrl()
        {
            return string.Format(
                "{0}/authorization/new?type=web_server&client_id={1}&redirect_uri={2}", LaunchpadBaseUrl,
                clientId, HttpUtility.UrlEncode(GetRedirectUri()));
        }

Usage Example

Example #1
0
        public ActionResult Index()
        {
            var authUrl = oAuthService.GetLoginUrl();

            ViewBag.LoginUrl = authUrl;
            Log.Info("Home Page Visitor. Referrer: {0}, IP Address: {1}. Agent: {2}", Request.UrlReferrer, GetIPAddress(Request), Request.UserAgent);
            return(View());
        }
All Usage Examples Of Blaze.Controllers.OAuthService::GetLoginUrl