I'm trying to authenticate myself on vCO api, but I always have a 401 response : Full authentication is required to access this resource.
According to this document : , I have done : http://pubs.vmware.com/vsphere-51/index.jsp?topic=/com.vmware.vsphere.vco_develop_web_services.doc/G...
First of all I retrieve h-o-k with vCO SDK :
./run.sh com.vmware.sso.client.samples.AcquireHoKTokenByUserCredentialSample https://IP:PORT/ims/STSService login pass
it returns :
If you did copy/paste, then you have a typo: "Autorization" -- should be "Authorization", right?
Yes you are right !!
Sorry my mistake. I replace autorization with authorization and now I have another error, seems my token is not good !
Do I have to specify my token in base 64 ?
Perhaps I do not send the right token ?
I used this sample script provides with the vCO SDK : ./run.sh com.vmware.sso.client.samples.AcquireHoKTokenByUserCredentialSample https://IP:PORT/ims/STSService login pass
Do you think this is the right way ?
Thanks for your help again.