title: Can I use the Firebase ID token from a client login to authenticate a Java desktop app using the Java SDK?
body: <p>Google's Cloud Firestore can be accessed by <strong>CLIENT</strong> apps for iOS, Android, and web, via native SDKs. </p>
  
  <p>For the <strong>SERVER</strong>, Cloud Firestore is also available in native Node.js, Java, Python, and Go SDKs, in addition to REST and RPC APIs. Of those, the Java and Node SDKs are capable of listening to changes in the database (as of March 2018).</p>
  
  <p>I would like to use the Cloud Firestore in a <strong>Java CLIENT desktop app</strong>.</p>
  
  <p>As I said, the Java Server SDK can listen to database changes, however it authenticates the user with Identity and Access Management (IAM), while the Client SDKs authenticate with Firebase Authentication. I must authenticate with Firebase Authentication, so that the database is protected with the Cloud Firestore Security Rules.</p>
  
  <p><strong>My question is:</strong> I want to log a user into one of the Firebase Client SDKs (web, iOS, or Android) and then send the ID token from that login to 
  my Java desktop app. Then I want to authenticate the Java SDK with that token, thus limiting access with Cloud Firestore Security Rules.</p>
  
  <p>Is that possible? How?</p>