Azure Container Apps provides built-in authentication and authorization features (sometimes referred to as Easy Auth), to secure your external ingress-enabled container app with minimal or no code.
Up until now we have allowed anonymous access to the application. Let's protect the Dashboard App web application with Azure AD authentication using the Easy Auth service built into Container Apps.
The following image illustrates the steps in this challenge
- Enable Azure AD Authentication on Container App
- Log in to Container App
- Configure Azure AD identity provider for Dashboard App
- Verify authentication by accessing Dashboard App with browser.
- Configured Azure AD authentication for Dashboard App Container App
- Browse Dashboard App and verify you are prompted for login
- Performed a successful login to view Dashboard App (https://dashboardapp.[your container app environment domain])
- Authentication and authorization in Azure Container Apps (learn.microsoft.com)
- Enable authentication and authorization in Azure Container Apps with Azure Active Directory (learn.microsoft.com)
- View the solution here: Challenge 7 - Solution
- Challenge 1: Setup the environment
- Challenge 2: Deploy Container Apps Environment and troubleshoot Container Apps
- Challenge 3: Split traffic for controlled rollout
- Challenge 4: Scale Container Apps
- Challenge 5: Configure CI/CD for Container Apps
- Challenge 6: Protect Container App with API Management
- Challenge 7: Enable Container App authentication