title: How to integrate OPENID auth into a REST api and front-end framework architecture
body: <p>I am currently making a site that requires a user to log in with <a href="http://steamcommunity.com/" rel="noreferrer">Steam</a> before they can use the rest of my website's functionality. Steam currently only supports OPENID for authentication. The way that I have done it is in these following steps:</p>
  
  <ol>
  <li><p>User presses on "Log in with Steam" button</p></li>
  <li><p>My front-end redirects to steamcommunity.com </p></li>
  <li><p>If the user logged in successsfully, the user's browser should redirect to my backend, I then add the user to the database (if they are not in it already) and create a JSON web token and send it back to my front end.</p>
  
  <p>for example:</p>
  
  <p><code>myfrontend.com?token={my_json_web_token}
  </code></p></li>
  <li><p>My front end then saves this token as a client side cookie and on every request to the server, I will send the contents of this cookie to the server.</p></li>
  </ol>
  
  <p>I have already integrated my app but it is just gaining popularity so I'm wondering if the way that I have implemented it works.</p>
  
  <p>Thanks</p>