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
Questions
Suggestion for env variable name AYON_IN_LOGIN_MODE.
Suggestion for the message shown in dialog are welcomed.
Different proposal for the solution?
Testing notes:
Set env variables AYON_API_KEY and AYON_SERVER_URL (e.g. in shell or PowerShell)
Launch ayon launcher
If credentials are invalid, invalid credentials dialog should pop up.
If credentials are valid it should launch, but Login action in tray will show invalid credentials dialog.
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.
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
Questions
AYON_IN_LOGIN_MODE
.Testing notes:
Login
action in tray will show invalid credentials dialog.--ayon-login
will disregard env variables from shell and login is showed.