TACC-Cloud / agave-cli

The Tapis CLI
Other
4 stars 8 forks source link

Auth-session-init asks for password twice #103

Open JoshuaUrrutia opened 5 years ago

JoshuaUrrutia commented 5 years ago

Describe the bug Not a huge issue, but a little annoying/redundant. Auth-session-init makes you enter your password twice.

To Reproduce Steps to reproduce the behavior:

urrutia$ docker run --rm -it jurrutia/agave_cli:3.0.2
root@a754c2e8d6e6:/# auth-session-init
ID                   NAME                                     URL                                               
araport.org          Araport                                  https://api.araport.org/                          
designsafe           DesignSafe                               https://agave.designsafe-ci.org/                  
bridge               Bridge                                   https://api.bridge.tacc.cloud/                    
sgci                 Science Gateways Community Institute     https://sgci.tacc.cloud/                          
irec                 iReceptor                                https://irec.tenants.prod.tacc.cloud/             
tacc.prod            TACC                                     https://api.tacc.utexas.edu/                      
vdjserver.org        VDJ Server                               https://vdj-agave-api.tacc.utexas.edu/            
agave.prod           Agave Public Tenant                      https://public.agaveapi.co/                       
sd2e                 SD2E Tenant                              https://api.sd2e.org/                             
3dem                 3dem Tenant                              https://api.3dem.org/                             
portals              Portals Tenant                           https://portals-api.tacc.utexas.edu/              
iplantc.org          CyVerse Science APIs                     https://agave.iplantc.org/                        

Please specify the ID for the tenant you wish to interact with: sd2e
Creating a client...
API username: urrutia
API password: 
Created client a754c2e8d6e6 - Autogenerated client
Getting oauth bearer tokens...
API password: 
root@a754c2e8d6e6:/#

Expected behavior You only enter your password once

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

docker image

Additional context Add any other context about the problem here.

ajamthetacc commented 5 years ago

We faced an issue with entering password twice. A bunch of our workshop users gave the token second time it asked for password, which made it to fail and their client was half created but not initialized. Can someone look into this issue soon? Thanks

mwvaughn commented 5 years ago

I will fix it this evening.

—— Matthew W. Vaughn, Ph.D.

Director, Life Sciences Computing Texas Advanced Computing Center The University of Texas at Austin (949) 436-6642<tel:(949)%20436-6642> @mattdotvaughn orcid.org/0000-0002-1384-4283http://orcid.org/0000-0002-1384-4283

[ Cyverse | Jetstream Cloud | Abaco | DARPA SD2 ]

On Jul 16, 2019, at 4:59 PM, ajamthetacc notifications@github.com<mailto:notifications@github.com> wrote:

We faced an issue with entering password twice. A bunch of our workshop users gave the token second time it asked for password, which made it to and their client was half created but not initialized. Can someone look into this issue soon? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/TACC-Cloud/agave-cli/issues/103?email_source=notifications&email_token=AAFQXFJSQKGOAO23RPKL2MDP7ZACVA5CNFSM4HZM23CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2CJAHI#issuecomment-512004125, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAFQXFJPTG66GRJYKN25BT3P7ZACVANCNFSM4HZM23CA.

This message is from an external sender. Learn more about why this matters.https://ut.service-now.com/sp?id=kb_article&number=KB0011401

ajamthetacc commented 5 years ago

thanks Matt