title: Writing hipchat client: HipChat Authentication
body: <p>I am prototyping HipChat client and I'm stuck at building good authentication experience. I would like to implement similar authentication dialog as HipChat clients built by Atlassian provide. There is no need to generate auth tokens/etc, you just type email/password and client is able to obtain oauth token.</p>
  
  <p>How do they do? Clients use com.atlassian.hipchat.win-clients as client_name in request to <a href="https://www.hipchat.com/users/authorize" rel="nofollow">https://www.hipchat.com/users/authorize</a>.</p>
  
  <p>Question that I have: how do I register my own client? If I use any random name I get "Named OAuthClient not found ".</p>
  
  <p>How to register client name that will work with any HipChat server, including hipchat.com?</p>