CardSpace 和 Delphi 2007/WIN32
很简单的问题。我有一个 Delphi 应用程序,我想通过要求用户使用 CardSpace。基本上,我需要从卡片空间卡中提取 ID、姓名和地址信息。
使用CardSpace是客户的要求,我只是想知道:
- 可以从Delphi轻松使用CardSpace吗?
- CardSpace 已经有 Delphi 组件了吗?
最大的问题是什么?尽管 CardSpace 是基于 .NET 的,但该应用程序必须是 WIN32 应用程序。
Very simple problem. I have a Delphi application and I want to restrict access to this by requiring users to log on using CardSpace. Basically, I need to extract the ID, name and address information from the cardspace card.
The use of CardSpace is a requirement from a customer and I just want to know if:
- Can CardSpace be easily used from Delphi?
- Is there already a Delphi component for CardSpace?
The biggest problem? The application needs to be a WIN32 application, although CardSpace is .NET based.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
直接回答你的问题:
尽管 CardSpace 是本机 .Net,但只要您可以在客户端或服务器上运行框架,您始终可以使用互操作将 CardSpace 库包装到 DLL 中,您可以使用互操作性将 CardSpace 库包装到 DLL 中。然后可以在Delphi中引用。 这个 StackOverflow 问题也许可以帮助您入门。
考虑到计算机将运行 Windows,它很可能已经安装了 Framework 3.0,这是使用 CardSpace 的要求。
SharpSTS 在此环境中可能很有用,因为它已经包含了您需要与卡空间服务。
我不是 Deplhi 开发人员。从 .Net 方面看这个问题并进行一些基本的 Google 搜索让我找到了可能的答案。我不能保证这一切都适用于 Cardspace,但是它已经适用于我们环境中的其他技术,而我们的环境仍然主要是 Delphi。例如互操作性部分。
To answer your questions directly:
Although CardSpace is native .Net, as long as you can run the framework on either the client or the server you can always just wrap the CardSpace library into a DLL using interop which you can then reference in Delphi. This StackOverflow question may be able to get you started.
Considering the machines will be running Windows it will most likely already have Framework 3.0 installed, which is the requirement for using CardSpace.
SharpSTS may be usefull in this environment as it already contains the bulk of the code you need to talk to the CardSpace service.
I am not a Deplhi Developer. Looking at this problem from the .Net side and doing some basic Google searches brought me to the a possible answer. I cannot gaurentee any of this will work for Cardspace, however it has worked for other technologies in our environment which is still prodimanatly Delphi. For example the interoperatibility parts.