How to setup users for desktop app with SQL Azure as backend?

Posted by Manuel on Programmers See other posts from Programmers or by Manuel
Published on 2012-03-20T18:58:04Z Indexed on 2012/03/21 23:39 UTC
Read the original article Hit count: 199

Filed under:
|
|

I'm considering SQL Azure as DB for a new application I'm developing. The reason I want to go with Azure is because I don't want to have to maintain yet another database(s) and I want my users to be able to access the data from anywhere. The problem is that I'm not clear regarding how to users will connect. The application is a basic CRUD type of windows app.

I've read that you need to add your IP to SQL Azure's firewall to connect to it, but I don't know if it's only for administration purposes only. Can anyone clarify if anyone (anywhere) can access the data with the proper credentials?

Which of the following scenarios would work best (if at all)?

A) Add each user to SQL Azure and have the app connect directly to Azure as if it was connecting to SQL Server

B) Add an anonymous user SQL Azure and pass the real user's password/hash with every call so the Azure database can service the requests accordingly.

C) Put a WCF service in between so that it handles the authentication stuff. The service will only serve the appropriate information to the user given his/her authentication and SQL Azure would be open to the service exclusively.

D) - ideas are welcomed -

This is confusing because all Azure examples I see are for websites. I have a hard time believing SQL Azure wouldn't handle the case of desktop apps connecting to it. So what's the best practice?

© Programmers or respective owner

Related posts about architecture

Related posts about Azure