Camunda 7 - securing webapps and REST APIs with Azure AD

Hello Experts,
We are using Camunda 7.18 version and built the engine project with springboot. We are trying to secure the webapps and rest api for the engine with Azure AD.

We are able to secure Camunda WebApps and RestAPIs in 2 different Springboot projects. Do you have any example to secure both Webapps and RestAPIs in the same Springboot project.
WebApps need to be redirected to a login page for authorization and RestAPIs need to be authenticated with a bearer token.
Please help pointing to any existing project for reference.