title: Google Drive API username + password authentication
body: <p>I'm developing an application where Google Drive will be used to manage some documents. The idea is to create a document with some initial template data and provide the users access by adding them as collaborators of the document.</p>
  
  <p>I'm familiar with the OAuth authentication process, I used it in another part of the system to manage the users Calendar... </p>
  
  <p>But in this case these documents will be stored in a generic account of the company, so I can't have the approval prompt for authentication, since users won't have the password of the account.</p>
  
  <p>I'd like to directly authenticate in this account, could be with the username and password hardcoded in the Java code.</p>
  
  <p>Problem that this method of authentication was depreacated and I didn't found a relpacement.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance,
  Phillip</p>