title: Multiple Scope Values to oauth2
body: <p>I try to post several scope values to allow my application for some google service...</p>
  
  <p>I tried with two input field</p>
  <pre class="lang-html prettyprint-override"><code>&lt;input type=&quot;hidden&quot; name=&quot;scope&quot; value=&quot;https://www.googleapis.com/auth/calendar&quot; /&gt;  
  &lt;input type=&quot;hidden&quot; name=&quot;scope&quot; value=&quot;https://www.googleapis.com/auth/userinfo.email&quot; /&gt;
  </code></pre>
  <p>and with one input field with + separator</p>
  <pre class="lang-html prettyprint-override"><code>&lt;input type=&quot;hidden&quot; name=&quot;scope&quot; value=&quot;https://www.googleapis.com/auth/calendar+https://www.googleapis.com/auth/userinfo.email&quot; /&gt;  
  </code></pre>
  <p>When I send my form with only one scope It work.
  otherwise with sereval scope value google redirect me with this error description :</p>
  <pre class="lang-html prettyprint-override"><code>http://localhost:49972/redirect.aspx#error=invalid_request&amp;error_description=OAuth+2+parameters+can+only+have+a+single+value:+scope&amp;error_uri=http://code.google.com/apis/accounts/docs/OAuth2.html 
  </code></pre>
  <p>In the google <a href="http://code.google.com/apis/accounts/docs/OAuth2WebServer.html#formingtheurl" rel="noreferrer">getting started</a> with oAuth2 it works with two scope values.</p>
  <p>Here is my code :</p>
  <pre class="lang-html prettyprint-override"><code>  &lt;form id=&quot;form1&quot; method=&quot;post&quot; action=&quot;https://accounts.google.com/o/oauth2/auth?&quot; &gt;
      &lt;div&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;response_type&quot; value=&quot;code&quot; /&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;client_id&quot; value=&quot;my client id&quot; /&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;redirect_uri&quot; value=&quot;http://localhost:49972/redirect.aspx&quot; /&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;scope&quot; value=&quot;https://www.googleapis.com/auth/calendar&quot; /&gt;
          &lt;input type=&quot;hidden&quot; name=&quot;scope&quot; value=&quot;https://www.googleapis.com/auth/userinfo.email&quot; /&gt;
          
          &lt;input type=&quot;hidden&quot; name=&quot;state&quot; value=&quot;/profile&quot; /&gt;
          &lt;input type=&quot;submit&quot; value=&quot;go&quot; /&gt;
      &lt;/div&gt;
      &lt;/form&gt;
  </code></pre>