title: 403 Error - Thats an error. Error: disallowed_useragent
body: <p>I am trying to authorise a user for Google calendar API inside an IOS app.
  I am using the OAuth2 feature of Google to authenticate users. Authorisation page opens with a 403 error with the description:</p>
  
  <blockquote>
    <p>This user-agent is not permitted to make OAuth authorisation request to Google as it is classified as an embedded user-agent (also known as a web-view). Per our policy, only browsers are permitted to make authorisation requests to Google. We offer several libraries and samples for native apps to perform authorisation request in browser.</p>
  </blockquote>
  
  <p>I followed the same procedure which is mentioned in this link: <a href="https://developers.google.com/google-apps/calendar/quickstart/ios">https://developers.google.com/google-apps/calendar/quickstart/ios</a></p>
  
  <p>Rather than seeing my code, it's better to look at this link:   <a href="https://developers.google.com/google-apps/calendar/quickstart/ios">https://developers.google.com/google-apps/calendar/quickstart/ios</a>
  because I copy-pasted the same thing in my application.</p>
  
  <p>below are my clientId and keyChainItemName:</p>
  
  <pre><code>static NSString *const kKeychainItemName = @"Google Calendar API";
  static NSString *const kClientID = @"954370342601-sgl8k0jrbqdeagea9v6vfu3tspte96ci.apps.googleusercontent.com";
  </code></pre>