title: How to pass pass user credentials to chrome via Native Messaging API
body: <p>This is a pretty specific problem to have ... but if you're using Selenium, etc, from a machine which is not part of an Active Directory and you're being foiled by browser popups, I have a solution for you.</p>
  
  <p>I will explain the problem and link to some resources (and my other questions, with even more links in them) which informed the solution then I'll post the change I made to the example for the extension I "wrote."</p>
  
  <hr>
  
  <h1>Problem:</h1>
  
  <p>You're automating or testing via selenium or something similar ... and an auth popup comes out of the blue! But this popup isn't JavaScript and you're required not to save any credentials on the machine you're testing from.</p>
  
  <p>How do you pass through the authentication credentials to the browser and prevent that popup from occurring ... but without using keystores, browser storage or, <em>ghasp</em>, a file?</p>
  
  <p>Once you know how to pass that data in, how do you then get the values into the browser in such a way as to allow hands-free authentication?</p>