Hello! I'm building an app that will authenticate users using Azure AD. The app consists of a frontend React application and a backend NestJS application (Library built on Node and Express). I am using this Azure-Samples github repo as a guide,
https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/3-Authorization-II/1-call-api
In essence the repo guides you through authenticating a user on the frontend using SSO, then passing a Bearer token to the backend. Eventually I would like to get to the point where users are persisted and can have information stored in a database on the backend, but for now just authentication.
In the README the guide instructs me to make two separate Azure AD applications. I am wondering, for the sake of maintainability and dealing with the IT team I'm working with is it possible to have both the frontend and backend share a same Azure AD Application. It seems weird to have to create two applications for what is essentially just one application. If it is possible, how can I achieve it