Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 246801

SSO LookupService API: register and unregister calls

$
0
0

Hello,

 

I am wondering is there any API for register and unregister new component with SSO LookupService.?

 

Basically, I am trying to register my app with the LookupService. Once it is registered, then I can redirect authentication to vsphere-client SSO web page... This approach is similar to vCloud Director (vCD 5.1).

 

For example, if my app is registered to lookup service on serviceId=local:10  .. then my authentication url will be similar to this one.

 

https://avi.local:9443/vsphere-client/transfer/?appid=local:10

 

I thought of registering it through vi_regtool inside vCenter (SSO embedded)

 

 

/usr/lib/vmware-sso/bin/vi_regtool registerService -d https://avi.local:7444/lookupservice/sdk -u root -p vmware -si /tmp/avi_id -ip /tmp/avi.properties

 

 

but I got this exception


com.vmware.vim.binding.vmodl.fault.SecurityError:

inherited from com.vmware.vim.binding.vmodl.fault.SecurityError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.vmware.vim.vmomi.core.types.impl.ComplexTypeImpl.newInstance(ComplexTypeImpl.java:171)
at com.vmware.vim.vmomi.core.types.impl.DefaultDataObjectFactory.newDataObject(DefaultDataObjectFactory.java:26)
at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.ComplexStackContext.<init>(ComplexStackContext.java:33)
at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.parse(UnmarshallerImpl.java:135)
at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.unmarshall(UnmarshallerImpl.java:98)
at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshalSoapFault(UnmarshallerImpl.java:84)
at com.vmware.vim.vmomi.client.common.impl.SoapFaultStackContext.setValue(SoapFaultStackContext.java:37)
at com.vmware.vim.vmomi.client.common.impl.ResponseUnmarshaller.unmarshal(ResponseUnmarshaller.java:97)
at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.unmarshalResponse(ResponseImpl.java:245)
at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.setResponse(ResponseImpl.java:203)
at com.vmware.vim.vmomi.client.http.impl.HttpExchange.run(HttpExchange.java:126)
at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingImpl.send(HttpProtocolBindingImpl.java:98)
at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.sendCall(MethodInvocationHandlerImpl.java:526)
at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.executeCall(MethodInvocationHandlerImpl.java:507)
at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.completeCall(MethodInvocationHandlerImpl.java:295)
at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invokeOperation(MethodInvocationHandlerImpl.java:265)
at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invoke(MethodInvocationHandlerImpl.java:169)
at $Proxy23.registerService(Unknown Source)
at com.vmware.vim.install.cli.commands.RegisterServiceCommand.execute(RegisterServiceCommand.java:54)
at com.vmware.vim.install.cli.commands.CompositeCommand.execute(CompositeCommand.java:38)
at com.vmware.vim.install.cli.RegTool.execute(RegTool.java:171)
at com.vmware.vim.install.cli.RegTool.process(RegTool.java:90)
at com.vmware.vim.install.cli.RegTool.main(RegTool.java:33)

 

avi.propertes looks like this

 

[service] 
friendlyName=Avi Protector
version=1.0.1
ownerId=
type=urn:com.corp.avi 
description=Avi Protector

[endpoint0]
uri=http://avi.corp.com:8080/avi-ui-server/
ssl=
protocol=

 

 

So, can you please suggest me how to register my app to LookupService and redirect to vSphere-web-client page for SSO authentication.?

 

Thank you in advance.

 

Thanks & Regards,

Avi


Viewing all articles
Browse latest Browse all 246801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>