Open roman-kupriyanov opened 6 months ago
Thank you for raising this enhancement request. The community has 90 days to vote on it. If the enhancement receives at least 10 upvotes, it is added to our development backlog. If it receives fewer votes, the issue is closed.
Hey @roman-kupriyanov,
We do have some APIs exposed in ZoweVsCodeExtension
as part of the PR below:
Have you had a chance to try them out? Or Ii there anything specific that you think should be further enhanced from those APIs?
Is your feature request related to a problem? Please describe.
As it stands, Explorer for Endevor extension which relies only on the dynamically imported Zowe Extenders API to get the custom profiles list, cannot login or logout to APIML using those profiles, even though they are defined to work under API ML service.
Describe the solution you'd like
It would be nice if extenders can login and logout to API ML without having to add the Zowe code as a static dependency to their project. This means having the login and logout methods exposed through the
IApiExplorerExtender
interface somehow.This is a really high level example of how it may look like (might be adjusted if necessary):
Suggested steps to use the new API:
ICommon
interface is also registered for the same profile type withregisterCommonApi()
call. Minimally it includes thegetSession()
implementation andgetProfileTypeName()
calls to let the API know how to create a session from the custom profile properly. The login/logout calls should be reused from the existing API’s if not overridden.loginApiMl()
orlogoutApiMl()
with the profile name we want to use. The calls can throw errors if the profile cannot be used to login/logout, or it is not the API ML service.Describe alternatives you've considered
The only way to login to API ML service for the extenders easily at the moment is to use Zowe Explorer’s other profiles like Zosmf or Uss which also configured to be used with the same API ML endpoint, since only through those we can leverage the login/logout procedures. Alternatively, using Zowe CLI login/logout too. But we would prefer to avoid the users switching contexts all the time.
Additional context
It would be also nice if the login call will provide all the necessary prompting for extenders, like username/password to authenticate, that already exist in Zowe Explorer and can be nicely reused.