private ActionResult Authorize()
 {
     if (credentials.ConsumerKey == null || credentials.ConsumerSecret == null)
     {
         credentials.ConsumerKey = ConfigurationManager.AppSettings["twitterConsumerKey"];
         credentials.ConsumerSecret = ConfigurationManager.AppSettings["twitterConsumerSecret"];
     }
     auth = new GettingStartedWithAngularJS.L2TAuthorizer.MvcAuthorizer
     {
         Credentials = credentials
     };
     auth.CompleteAuthorization(Request.Url);
     if (!auth.IsAuthorized)
     {
         Uri specialUri = new Uri(Request.Url.ToString());
         return auth.BeginAuthorization(specialUri);
     }
     ViewBag.User = auth.Credentials.ScreenName;
     return null;
 }
 private ActionResult Authorize()
 {
     if (credentials.ConsumerKey == null || credentials.ConsumerSecret == null)
     {
         credentials.ConsumerKey    = ConfigurationManager.AppSettings["twitterConsumerKey"];
         credentials.ConsumerSecret = ConfigurationManager.AppSettings["twitterConsumerSecret"];
     }
     auth = new GettingStartedWithAngularJS.L2TAuthorizer.MvcAuthorizer
     {
         Credentials = credentials
     };
     auth.CompleteAuthorization(Request.Url);
     if (!auth.IsAuthorized)
     {
         Uri specialUri = new Uri(Request.Url.ToString());
         return(auth.BeginAuthorization(specialUri));
     }
     ViewBag.User = auth.Credentials.ScreenName;
     return(null);
 }