Manage token based authentication
Ensure consistency of click styles
Fix "AttributeError: module 'click' has no attribute 'exit'" issue when
submitting bad login credentials.
Adapt dash imports to remove deprecated warnings
Related T4590
Differential D8909
Login: Add an option to choose an authentication method (by username/password or token) franckbret on Dec 1 2022, 11:05 AM. Authored by
Details
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D8909 (id=32110)Rebasing onto 0f4f9d4f8e... Current branch diff-target is up to date. Changes applied before testcommit 5ee208707b9d98fe1dab386576805280aebd315a Author: Franck Bret <franck.bret@octobus.net> Date: Thu Nov 24 14:59:25 2022 +0100 Login: Add an option to choose an authentication method (by username/password or token) Manage token based authentication Ensure consistency of click styles Fix "AttributeError: module 'click' has no attribute 'exit'" issue when submitting bad login credentials. commit 47353a7e8f64d9d8ae57927f57563a429c0ffc70 Author: Franck Bret <franck.bret@octobus.net> Date: Tue Nov 22 12:40:26 2022 +0100 Adapt dash imports to remove deprecated warnings See https://jenkins.softwareheritage.org/job/DTSCN/job/tests-on-diff/191/ for more details. Comment Actions Some screen capture of the differents scenario when login: With username/password WIth token With bad credentials or bad token Comment Actions @anlambert @vlorentz seems legit that anything related to auth for a cli command should be centralized in swh auth. I can adapt to :
What do you think? Comment Actions @franckbret , sorry for the late reply. I also think it is better to keep implementation related to login in swh-auth component to avoid duplicating code. Also +1 adding a set-token command in swh-auth to add bearer token in global config file. |