Authentication in Astoria
Hi,
Is there much of a story/any guidelines around authentication yet in Astoria? I've got an embryonic idea about a potential use for Astoria and it will definately require the user to authenticate themselves. I'm also pondering enabling the user to authenticate themselves via Windows Live ID. Will this be possible on an Astoria service do you think?
Thanks
Jamie
Hi Jamie,
The CTP we shipped last May did not include a fully-baked security story. It had minimal support for authorization, but not an appropriate level of implementation and guidance for building production applications.
If you want to explore the space, for authentication you can use any ASP.NET authentication mechanism. All Astoria does is checks out the current principal from the request. From the authorization perspective, you can read some details in the "Using Astoria" doc, and also some notes in this blog entry:
http://blogs.msdn.com/pablo/archive/2007/05/21/security-in-data-services.aspx
It's still early in the design process, so we have work to do there. If you have specific scenarios in mind around security, I'd love to hear about them.
Pablo Castro
Technical Lead
Microsoft Corporation
Hi Kevin,
Actually, you can do that today. If you pass in extra parameters we'll ignore them if I remember correctly. I don't know if we'll keep that behavior exactly like that in future iterations, but in the current CTP bits it should work...
For example, this URI works fine:
http://astoria.sandbox.live.com/northwind/northwind.rse/Customers?$take=2&foo=bar
Pablo Castro
Technical Lead
Microsoft Corporation