gafirst / match-uploader

Upload FRC match videos to YouTube in a fast, consistent manner
GNU General Public License v3.0
1 stars 2 forks source link

OAuth flow does not work off localhost #71

Open mazac44 opened 10 months ago

mazac44 commented 10 months ago

Modify the OAuth flow to be able to complete the authentication process without needing localhost. Currently using the Web method, Google Cloud will only allow localhost or FQDNs with SSL certificates. This makes obtaining the initial tokens more difficult if the system is being run on a separate computer than the UI.

evan10s commented 3 months ago

latest thought on how to do this:

  1. you have Match Uploader running on your remote server
  2. locally, on your device, you run the Match Uploader cli (which will be a new thing). you'll provide the CLI the server URL, your google oauth client ID and secret
  3. The CLI triggers the oauth flow locally (I had found a command line tool for this)
  4. once complete, the CLI sends all 4 credentials (client ID, client secret, access token, refresh token) to the Match Uploader server to be saved