Closed VedaNiks closed 9 months ago
Isn't it a pyVmomi call, https://github.com/vmware/pyvmomi/blob/master/pyVim/connect.py#L133 ? May be you can triage this from above PyVmomi call.
There is no issue with this module as LoginByToken() is the commonly used.
I am new here. I have not used vsphere SDK before. I am trying to get a hok token for my use case. I have created a private key and certificate using OpenSSL. I am using them to get a hok token.
Code below:
This gave me below error:
I've tried calling
get_hok_saml_assertion
withoutact_as_token
parameter as well but getting the same error. I've verified that I am able to getsaml_token
with provided credentials.I've also tried, merging below code in
external_psc_sso_workflow.py
but still getting the same error.Can someone please tell me what I am doing wrong? If anyone already has implemented this, can you please provide sample program for this?
Thanks in advance!
Reproduction steps
Expected behavior
Should be able retrieve holder of key token using
get_hok_saml_assertion
functionAdditional context
No response