CardSpace rich client (desktop application) sample?
I spent some tome poking around with the intent to find a sample which demonstrated how a desktop application can use CardSpace infrastructure to authenticate itself to a Web Service (Web application). Did not find any.
Can someone please point me in the right direction? Alternatively, if such sample does not exist, I will trade the sample (once finished) for some initial guidance how to do it.
Nik,
Not sure of what you mean by a rich desktop application using Cardspace. I assume you mean consuming a s:web service via a Windows Form ?
If this is it, then it is not much different from the usage of a normal web service via a Windows Form - except that you change your binding config to use a "issuedTokenType"
There are a couple of s:Web Service examples in the SDK (...\WCFSamples\TechnologySamples\Basic\Binding\WS\InfoCard). You can easily modify the console applications to that of Windows Forms. The bindings will be the same.
Hope this helps.
I interpreted your suggestion to use SDK based samples as a reference to the July 2006 CTP based SDK (http://www.microsoft.com/downloads/details.aspx?FamilyId=67BB7FD9-52B1-4688-AB7B-F488FCEEEB86&displaylang=en). This is a two step download, which starts with a small setup.exe (I stored it locally), and continues with the actual SDK setup.
This SDK installation fails consistently - here is the last few lines from the log:
10:42:58 PM Friday, August 25, 2006: [SDKSetup:Info] Config_Products_Configure: Begin configuration of product: Microsoft Windows Software Development Kit
10:42:58 PM Friday, August 25, 2006: [SDKSetup:Info] Beginning download of file http://download.microsoft.com/download/6/A/2/6A28AE1D-515C-4629-8670-CB4161CEB148\WinSDK-x86.CAB to C:\DOCUME~1\Nik\LOCALS~1\Temp\WinSDK-x86.CAB
10:42:58 PM Friday, August 25, 2006: [SDKSetup:Info] Successfully downloaded the file http://download.microsoft.com/download/6/A/2/6A28AE1D-515C-4629-8670-CB4161CEB148\WinSDK-x86.CAB to C:\DOCUME~1\Nik\LOCALS~1\Temp\WinSDK-x86.CAB
10:42:59 PM Friday, August 25, 2006: [SDKSetup:Info] Beginning stuffing of file C:\DOCUME~1\Nik\LOCALS~1\Temp\WinSDK-x86.msi into the URL cache as http://download.microsoft.com/download/6/A/2/6A28AE1D-515C-4629-8670-CB4161CEB148/WinSDK-x86.msi
10:42:59 PM Friday, August 25, 2006: [SDKSetup:Info] Successfully stuffed the file C:\DOCUME~1\Nik\LOCALS~1\Temp\WinSDK-x86.msi into the URL cache as http://download.microsoft.com/download/6/A/2/6A28AE1D-515C-4629-8670-CB4161CEB148/WinSDK-x86.msi
10:42:59 PM Friday, August 25, 2006: [SDKSetup:Info] Config_Products_Configure: Product: Microsoft Windows Software Development Kit Params: http://download.microsoft.com/download/6/A/2/6A28AE1D-515C-4629-8670-CB4161CEB148/WinSDK-x86.msi ADDLOCAL=WinSDK,WinSDK_DOC,WinSDK_DOC_Win32,WinSDK_DOC_NETFX30,WinSDK_SMP,WinSDK_SMP_Win32,WinSDK_SMP_NETFX30,WinSDK_BIN,WinSDK_BIN_VisualCppCompilers,SDK_Core_BLD_X86_VC8CppCompiler,WinSDK_BIN_DevTools_Desktop,WinSDK_VC_Integration,WinSDK_RDC,WinSDK_RDC_X86_CRT,WinSDK_BIN_VC8_Runtime,WinSDK_BIN_VC8_Runtime_X86_ATL,WinSDK_BIN_VC8_Runtime_X86_CRT,WinSDK_BIN_VC8_Runtime_X86_CRT_DBG,WinSDKBuild_NetFX20_Libs,WinSDKBuild_NetFX20_Libs_X86,SDK_Core_BLD_X86_VC8CppLibraries,SDK_Core_BLD_VC8CppHeaders INSTALLLOCATION="C:\Program Files\Microsoft SDKs\Windows\v6.0" INSTALLLOCATIONSAMPLES="C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples" REBOOT=ReallySuppress
10:43:30 PM Friday, August 25, 2006: [SDKSetup:Error] Config_Products_Configure: Configuration of Product Microsoft Windows Software Development Kit (failed): The system cannot find the file specified.
10:43:30 PM Friday, August 25, 2006: [SDKSetup:Info] Config_Products_Configure: End configuration of product: Microsoft Windows Software Development Kit
10:43:30 PM Friday, August 25, 2006: [SDKSetup:Info] Config_Products_Install: End installation of product: Microsoft Windows Software Development Kit
10:43:30 PM Friday, August 25, 2006: [SDKSetup:Error] Config_Products_Install: Windows SDK Setup (failed): Installation of the "Microsoft Windows Software Development Kit" product has reported the following error: The system cannot find the file specified.
The error message is not very helpful.
Questions:
Am I on a correct path (do I need the July CTP SDK in order to CardSpace client with the Windows Forms application)?
If not, what is the right way to get the samples and needed runtime code?
Thanks in advance
Thanks, Nigel. I did finally verify how the sample you suggested is the one I was looking for. It took me a while since I was overly ambitious, trying to create a context in which I could play with Cardspace samples and also WWF RC version.
Finally, I had to give up on WWF 