I'm using custom authentication with Azure Mobile App based on following this article.
Client application is Cordova App
Steps I did:
- Turn on App Service Authentication
- Add Microsoft.Azure.Mobile.Server.Login NuGet package
- Create custom authentication endpoint
- Configure service to require authentication
- Use token on client
And it works fine with [Authorize] attribute on action methods/controllers.
But Username/password authentication is not enough for me. What I want is make sure that only my mobile application (client) can use Mobile App hosted on Azure endpoint and no one else from the web (in addition to username/password). So some sort of app_id need to be verified on both side, probably based on some sort of hash-based message authentication.
All articles I found describes either custom authentication with username/password or via Azure AD tenant. But one breaks other, moreover I don't need Azure AD.
How I can achieve this? Is there some built-in methods?