title: Oauth2 for a headless device having a user_code
body: <p>At the moment I am trying to implement <code>oaut2</code> authentication for a headless device. I found <a href="https://www.oauth.com/oauth2-servers/device-flow/authorization-server-requirements" rel="nofollow noreferrer">this documentation</a>.</p>
  
  <p>And I like to use the part of the docs with the header:<br>
  <em>Optimization for Non-Textual Interfaces</em></p>
  
  <p>The question I have is that I like to set the <code>user_code</code>, but I don't know where. So I like to use this URL:</p>
  
  <p><a href="https://authorization-server.com/device?user_code=BDWD-HQPK" rel="nofollow noreferrer">https://authorization-server.com/device?user_code=BDWD-HQPK</a></p>
  
  <p>Can anyone point me to an example or tutorial?</p>