Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

CLI plugin using processWithSession which is passed the session as AbstractSession not using token in one command #1009

Closed Answered by davidkjackson54
davidkjackson54 asked this question in Q&A
Discussion options

You must be logged in to vote

@t1m0thyj

I have resolved this after walking the code in Imperative ConnectionPropsForSessCfg. It gave me some pointers as to what might be going on. It reminded me that some 2 years or so back, that I had specifically put code in to force my LOGON command to NOT use a token if it existed. as it had most likely expired and the purpose of the logon command was to acquire a new token.

My code:

if (params.definition.name != "zmflogon" && params.arguments.tokenValue) {
      // if a call other than a zmflogon and a token exists then use it
      // if a token is available, then remove all reference to userid and password to stop zowe creating a type "Basic" session
      delete params.argumen…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by t1m0thyj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #1007 on August 04, 2023 20:04.