Open zFernand0 opened 1 year ago
Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.
Hey @plavjanik,
After some investigation, the way in which you could refresh the token is by answering no
to that prompt, and copying the token value to a config set
command like this:
zowe config set profiles.base_apiml.properties.tokenValue <tokenValue> --secure
(note: you may need the --global-config
flag)
As part of the fixes included in the PR below, you should be able to run zowe config secure
.
(note: you may need the --global-config
flag)
You will then be prompted for user and password on each base profile (if you have multiple in your config file) and store the token automatically
(if autoStore: true
).
Question:
Would you expect that subsequent zowe auth login apiml
operations will behave the same way as zowe config secure
and just refresh your token (without creating a new base profile?
Originally posted by @plavjanik in https://github.com/zowe/zowe-cli/issues/1341
When I want to get a new token using
zowe auth login apiml
, it does not work well for me:This creates a new base profile:
There are two base profiles, I just wanted to refresh my token for the existing profile. How do I do that? The command fails too: