ynput / ayon-launcher

AYON desktop application launcher
Apache License 2.0
34 stars 14 forks source link

Login mode #84

Closed iLLiCiTiT closed 9 months ago

iLLiCiTiT commented 10 months ago

Changelog Description

Define login mode in ayon launcher to be able determine if credentials are comming from keyring or were defined by environment variables.

Additional info

Changes are implemented to avoid issues when ayon api key is defined with environment variable. In that case should not be possible to shown login UI, which would show different credentials (or unfilled window). In that case is shown Invalid credentials window with basic information. Login mode will also affect ayon tray. When user clicks on Login, the same dialog is shown.

Added more prints when things go wrong so we get more information, hopefully helpfull on render farm.

Screenshot

image

Questions

Testing notes:

  1. Set env variables AYON_API_KEY and AYON_SERVER_URL (e.g. in shell or PowerShell)
  2. Launch ayon launcher
  3. If credentials are invalid, invalid credentials dialog should pop up.
  4. If credentials are valid it should launch, but Login action in tray will show invalid credentials dialog.
  5. Using --ayon-login will disregard env variables from shell and login is showed.
    • This will not unset env variables from shell!!! So running again the same process from the same shell will still cause the same issue.