I'm confused on 'where' (as in which layer, if not both) I am to implement authentication with Azure AD in my app.
So I have a Vue JS front end, and I've read about how I can leverage ADAL JS to help with auth from the client.
However, I need calls to my web API to also be secured, and that's obviously not done with ADAL JS.
Question
How can I restrict calls to my web api to only users that are authenticated (they will need to login via the vue js app) using Azure AD? And then, similarly, allow web api to authenticate with Azure AD in order to retrieve things from blob storage?
Further Context (If Necessary)
One example flow will be that a user logs in (in the vue js app), posts a file to my web api, which puts it in blob storage (azure). An authenticated user can then later request this file (which needs to be restricted in azure to auth'd users only) and then return it to the authenticated client.
EDIT
Am I over-thinking this? Is it a simple case of the web API authenticating with AD in Azure, receiving a token and forwarding that token onto the client to pass about?