baptistegh commented on PR #75938:
URL: https://github.com/apache/airflow/pull/75938#issuecomment-6541653947

   Fixed the keyring dead end. `auth login --sso` now accepts `--skip-keyring`, 
so the hint in the keyring error works. The API URL is saved as usual, and the 
token goes to stdout because nothing else stores it. A note on stderr tells the 
user to set `AIRFLOW_CLI_TOKEN`, so this works on a headless machine:
   
   `export AIRFLOW_CLI_TOKEN=$(airflowctl auth login --sso --no-browser 
--skip-keyring --api-url <url>)`
   
   One limitation remains: without -`-skip-keyring`, the keyring error still 
appears after the browser login, so the user has to log in a second time. 
Checking for a keyring before opening the browser would avoid that, but it adds 
a probe of the keyring backend, so I left it out. Let me know if you'd rather 
have it in this PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to