I have a .NET Core Web API hosted in Azure as an app service, I also have developed a Xamarin Forms mobile application which calls on the API to add and remove data from an Azure hosted SQL Server. This works fine, however you can also make API calls via the browser or with with a tool like Postman, although the data isn't confidential, this feels a bit unsecure.
Can anyone recommend the best way to ensure that the API can only be accessed by the mobile application? The mobile app is hosted in Azure and already authenticates with Azure Active Directory, I'm not sure if there is a setting in Azure to prevent access to everything but this app, or if I can pass the Azure AD user to the API to authenticate? I'm just not sure of the best method as I am fairly new to .NET Development.
Thanks.