/// <summary> /// does the initial redirect /// </summary> /// <param name="sReturnUrl">takes the url for google to return to</param> /// <param name="oResponse">takes the response object</param> public void Redirect(HttpResponseWrapper oResponse) { String sAuthUrl = "https://accounts.google.com/o/oauth2/auth?redirect_uri={0}&client_id={1}&scope=https://www.googleapis.com/auth/userinfo.profile&response_type=code&max_auth_age=0"; String sRedirectToGoogle = String.Format(sAuthUrl, this.sRedirect, this.sKey); oResponse.Redirect(sRedirectToGoogle); }