This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
CLI plugin using processWithSession which is passed the session as AbstractSession not using token in one command #1007
Labels
bug
Something isn't working
In my zowe cli plugin, I have some 30-40 commands defined. All follow the same structure and layout.
In my System Profile, I have tokenType and tokenValue present.
I am finding that in one command that happens to be called "logon" in a group called 'session" that for whatever reason, the session: AbstractSession is being passed into my handler as type basic and is using user and password -when it should be using tokenValue.
Here is the screen print of params:IHandlerParams.arguments - notice that user and password are present ..
and this is the session:AbstractSession that is being passed in:
notice that the session is a 'basic' session using user and password and not the token. I can see no reason why this incoming session is uinsg user and password.
I am finding that other commands are indeed working correctly and using tokenType and tokenValue
as in this example of another command:
and its session:AbstractSession
The definitions file:
it is the logon definitions that are incorrectly using the user/password whilst the logoff command is correctly using the token.
I can see no obvious reason why this is happening and unable to debug this further.
The text was updated successfully, but these errors were encountered: