public ActionResult AuthenticateCallback(string providerKey) { if (string.IsNullOrEmpty(providerKey)) { throw new ArgumentNullException("providerKey"); } // Determine which settings we need, based on the Provider. var settings = AuthenticationService.GetAuthenticateServiceSettings(providerKey, Request.Url, "home/authenticatecallback"); // Don't check for somet State. settings.State = null; var model = new AuthenticateCallbackViewModel(); try { // Grab the authenticated client information. model.AuthenticatedClient = AuthenticationService.GetAuthenticatedClient(settings, Request.QueryString); } catch (Exception exception) { model.Exception = exception; } return View(model); }
public ActionResult AuthenticateCallback(string providerKey) { if (string.IsNullOrEmpty(providerKey)) { throw new ArgumentNullException("providerKey"); } var model = new AuthenticateCallbackViewModel(); try { model.AuthenticatedClient = AuthenticationService.GetAuthenticatedClient(providerKey, Request.Params); } catch (Exception exception) { model.Exception = exception; } return View(model); }