-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Information
- KFUtil Version: 1.6.2
Problem
If you switch from using OAuth configuration to Basic configuration, the next time kfutil login will prompt that the preferred AuthType is oauth when the last configuration was actually using basic. Continuing through the rest of the login setup will switch configuration over to oauth and erase all basic credentials.
Reproduction Steps
- Login with OAuth as the auth type.
- Login again and choose Basic as your auth type
- Enter username, password, etc.
- Check the config file,
~/.keyfactor/command_config.json. - Observe that
client_id,client_secret,username,passwordare populated and that theauth_typeisbasic. - Run the login command again
- When Auth Type is prompted, it now says
oauthas the default value instead ofbasic. Keep it asoauthfor this login flow, and complete the rest of the login with the defaults. - Check the config file,
~/.keyfactor/command_config.jsonagain - Observe that all the
basiccredentials are now absent from the config file, and theauth_typeisoauth.
Expected Results
- The login step should default auth type to
basicif that's what the value was in the config file. - Basic credentials are preserved in the config file even if the auth type is switched to
oauth.
Actual Results
- The login step incorrectly defaults to
oauth - Basic credentials are removed from the config file if switched to
oauth.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working