I am following the Dev's Guide for Calendar API to the tee with the exception that I am making a simple Web app (also following this guide).The code seems to be elementary:\[code\]var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description);provider.ClientIdentifier = ClientId;provider.ClientSecret = ClientSecret;var auth = new OAuth2Authenticator<NativeApplicationClient>(provider, GetCalendarAuthorization);// Create the service. This will automatically call the previously registered authenticator.try{ this.CalendarService = new CalendarService(auth); Google.Apis.Calendar.v3.Data.Events results = this.CalendarService.Events.List(calendarId).Fetch();}catch (Exception e){ throw;}\[/code\]and the authorization method:\[code\]IAuthorizationState state = new AuthorizationState(new[] { CalendarService.Scopes.Calendar.GetStringValue() });state.Callback = new Uri(NativeApplicationClient.OutOfBandCallbackUrl);Uri authUri = arg.RequestUserAuthorization(state);// Request authorization from the user and get the codestring authCode = makeRequest(authUri);// Retrieve the access token by using the authorization code:return arg.ProcessUserAuthorization(authCode, state);\[/code\]Here's how I'm making a request to the api (which is where my main issue is):\[code\]var normalizedEndpoint = authUri;var request = WebRequest.Create(normalizedEndpoint);request.ContentLength = 0;request.Method = "POST";try{ using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { // Get the response stream StreamReader responseReader = new StreamReader(response.GetResponseStream()); responseString = responseReader.ReadToEnd(); // parse out JSON }}catch (WebException e){ throw new Exception("An error occurred while verifying the IDP response", e);}\[/code\]Reading all the tutorials and discussions, I am lead to believe that \[code\]responseString\[/code\] would contain JSON string to parse out the authorization_code, however I am instead returned a full HTML of google's Services Login page. In fact, the response URI is \[code\]https://accounts.google.com/ServiceLogin?service=lso&passive=1209600&continue=https://accounts.google.com/o/oauth2/auth?scope%3Dhttps://www.googleapis.com/auth/calendar%26response_type%3Dcode%26redirect_uri%3Durn:ietf:wg
auth:2.0
ob%26client_id%3[clientId]%26hl%3Den-US%26from_login%3D1%26as%3D426b86d7344a95f7<mpl=popup&shdf=CmwLEgZkb21haW4aBnRyYXZscgwLEhV0aGlyZFBhcnR5RGlzcGxheU5hbWUaBnRyYXZscgwLEhV0aGlyZFBhcnR5RGlzcGxheVR5cGUaB0RFRkFVTFQMCxIRdGhpcmRQYXJ0eUxvZ29VcmwaAAwSA2xzbyIU3vdT0zGh2RiUqQ5AzMThlcNWIpcoATIU_8QJHbw5n531seZ3rlhdJ5rndiU&scc=1\[/code\]Since I am currently logged in with a Google account, I am surprised that it wants me to log in again. Needless to say that after I log in, I receive the auth_code in the URL of the callback but none of the tutorials mention that. Additionally, this code would be called by the CalendarService each time it needs to authorize access - does this mean I would have to pop-up a login screen every time I make a request (even though the user is logged in already)? Or am I simply mixing the OAuth versions/protocols/etc?

