VMware {code} Community
Flying_Cat
Contributor
Contributor

The verification of VimPortType.cloneSession() failed even with a new clone ticket

We have a critical problem when using the new vSphere authentication in our remote plugin server, the below steps of new authentication approach are following the remote plugin sample from the SDK 6.7u3:

  1. Firstly, clone a ticket by sending a REST request ‘/vcenter/session/clone-ticket’ to the vsphere-ui service with vcenterGuid, vmware-api-session-id and vmware-gateway-url.
  2. Then construct a SOAP request to obtain a regular session ID from the Web Services API by using the cloneSession() operation on the VimPort(com.vmware.vim25.VimPortType.cloneSession(), our vim25 version is 6.7-7970399).

The issue is, if the first user with a session id passed the new authentication(step1 & step2), the other users with their new session ids would be failed to pass the verification of step 2 - clone session for VimPort(step 1 still passed), and the error stack like this(attached our log file):

Do anyone have the suggestions for resolving this issue? Appreciate that

0 Kudos
1 Reply
mdmcnei
Contributor
Contributor

I know this question is a few years old. I am only replying so that other people who are having the same problem can get an answer.

The cloneSession() function will return a one time single use token that will expire within something like five minutes. Once the token is used it becomes invalid. You have to call cloneSession() for each call you make from the remote plugin server.

0 Kudos