Secure WCF service in Windows Azure
-
domenica 11 ottobre 2009 18:55Hello,
I want to create a secure wcf service which should be consumed from a Silverlight and Windows Mobile application.
I have to create user names and passwords with a specific role (admin or member) at runtime. When a WCF method is invoked, I have to know what the user name is, because depending on that, the result is different.
Can somebody help me?
Thanks,
Gerold Lechner- Spostato DanielOdievichModerator martedì 28 settembre 2010 21:32 forum migration (From:Windows Azure)
Tutte le risposte
-
domenica 11 ottobre 2009 20:04
You could use transport security: SSL or message security: X509. Either method is supported.
Pita.O:
http://www.arizentax.com/
http://www.cgi.com- Contrassegnato come risposta Yi-Lun LuoModerator venerdì 16 ottobre 2009 09:47
-
lunedì 12 ottobre 2009 06:50Moderatore
Hello, I don't know much about the Windows Mobile case. But as far as Silverlight is concerned, you can use forms authentication, and relies on ASP.NET to authenticate the user. You can use ASP.NET Authentication Service. As long as your WCF service is ASP.NET compatible, you will be able to get the user name via HttpContext.Current.User.Identity.Name. I think this should also work for Windows Mobile. For more information, please refer to http://msdn.microsoft.com/en-us/library/dd560704(VS.95).aspx.
For the WCF level security (transport and message), Silverlight currently only supports None, Transport, TransportWithMessageCredential, and TransportCredentialOnly. That is, the complete message security is not supported.
Regarding Windows Mobile, I'm not sure, but the WCF support in .NET Compact Framework 3.5 is very basic. For example, only None and Transport security mode are supported. But forms authentication should work fine...
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.- Contrassegnato come risposta Yi-Lun LuoModerator venerdì 16 ottobre 2009 09:47
-
sabato 17 ottobre 2009 17:26
Here is a video wich demonstrates it: http://www.silverlight.net/learn/videos/silverlight-videos/using-aspnet-secure-services-and-applications-services/.- Contrassegnato come risposta Gerold Lechner sabato 17 ottobre 2009 17:26

