Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve "zowe auth login apiml" experience #1742

Closed
adam-wolfe opened this issue Jul 3, 2023 · 2 comments
Closed

Improve "zowe auth login apiml" experience #1742

adam-wolfe opened this issue Jul 3, 2023 · 2 comments
Labels
enhancement New feature or request new The issue wasn't triaged yet

Comments

@adam-wolfe
Copy link
Contributor

adam-wolfe commented Jul 3, 2023

Is your feature or enhancement request related to a problem or limitation? Please describe

When an APIML authentication token expires, the user must login to the APIML service again. Logging back into APIML from Zowe CLI causes two things to happen to the user's zowe.config.json file:

  1. A new base_apiml_apiml_... profile will be created. Over time this can create a mess in the config file. Maybe this is an issue with how I configure my profiles, but each time I log in, I get a new base_apiml... profile. In zowe.config.json, the default base profile is updated to point to this new base_apiml... profile.
  2. Even if a user specifies the --ru false option when logging in, the user has to manually edit their zowe.config.json to add the "rejectUnauthorized": false property to their new base_apiml... profile.

Describe your enhancement idea

  1. If a base_apiml profile exists, overwrite it whenever a user logs in again.
  2. If the user specifies the --ru false option in the login command, add the "rejectUnauthorized": false property to their base_apiml profile.

Ideally, if I find that my token has expired, I would like to simply reissue zowe auth login apiml --ru false, enter my userid and password, and not have to do anything else related to zowe.config.json.

Provide any additional context

Other considerations:

Tested with Zowe CLI versions 7.14.1 and 7.16.4

Screenshots

image

@adam-wolfe adam-wolfe added enhancement New feature or request new The issue wasn't triaged yet labels Jul 3, 2023
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 5 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.

@adam-wolfe
Copy link
Contributor Author

Duplicate of #1341 and #1650

@adam-wolfe adam-wolfe closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new The issue wasn't triaged yet
Projects
None yet
Development

No branches or pull requests

1 participant