Fawad Khalil
Fawad Khalil

Reputation: 367

Authenticate app users from Azure Cloud database

I am developing an application that requires user to login before using the application. The app would authenticate the user's email address from Azure database. I have worked with local database systems and know the working of database, but I am new to cloud database and haven't worked with cloud database yet. I wanna ask if there is a way to run some authenticating code at Azure database that would return true or false to the android app through internet after receiving credentials entered by the user. Or suggest me if there is any other better and efficient way of authenticating the user from Azure cloud database.

Upvotes: 0

Views: 171

Answers (2)

Alex Belotserkovskiy
Alex Belotserkovskiy

Reputation: 4062

If you develop the mobile app, then Azure Mobile Apps should be a great option for you. Very simple still powerful development model, authentication included. Shortly, authentication using AMA looks like that:

  1. You create the account of AMA
  2. You set up the connection between the AMA account and Google (to establish the trust)
  3. You download the sample code and play with that - authentication looks like a few lines of code
  4. When user log into your app, he will be redirected to the authentication provider, then enters his credentials, then, after provider check, the auth token will be issued and returned to your app with some data about user.

So, no password or whatever is going to AMA, only the auth token. If you want to create a custom database for the auth, then AMA can be the solution as well.

Upvotes: 2

lindydonna
lindydonna

Reputation: 3875

You can use Azure Mobile Apps with the Authentication/Authorization feature. See Authentication and Authorization in Azure Mobile Apps and Add authentication to your Android app.

Note that Azure Mobile Apps is the new version of the service Azure Mobile Services. New projects should not use Azure Mobile Services, as it is the older technology and will not be getting new enhancements.

For the actual username and password store for your users, consider Azure Active Directory B2C or use a third party provider like Facebok or Google authentication.

Upvotes: 2

Related Questions