public ActionResult AuthenticateToScoopIt() { var redirectTo = OauthAuthorizeService.AuthenticateToScoopIt(); if (!string.IsNullOrEmpty(redirectTo.Callback)) { Response.Redirect(redirectTo.Callback); return(null); } else { return(Content("Error")); } }
public ActionResult CallbackFromScoopIt() { var accessTokenModel = OauthAuthorizeService.CallBackFromScoopIt(); if (accessTokenModel != null) { this.AccessTokenModel = accessTokenModel; return(RedirectToAction("Index")); } else { return(Content("Error")); } }