An Azure service that provides an event-driven serverless compute platform.
Hello Ranya Hassan (eHealth NSW),
Thanks for sharing those details this really helps clarify your setup. Based on your answers:
- Since users only communicate through the frontend Web App, the recommended approach is to enable SAML authentication on the Web App using Azure App Service Authentication (Easy Auth). This way, Azure handles the SAML handshake and token exchange, and your Web App receives a validated JWT.
- Your Function App can then rely on the frontend to pass the JWT in the Authorization header for all API calls. This avoids duplicating authentication logic in Python and keeps your backend lightweight.
- For added security, you can also enable App Service Authentication on the Function App, so Azure validates incoming tokens before your Python code executes. That way, you don’t need to manually handle SAML or JWT parsing inside the Function App.
- No significant code changes are needed in the Function App if you use Easy Auth just ensure the frontend forwards the token and that CORS is configured.
Documentation & References:
- Configure Microsoft Entra Authentication for Azure App Service
- Tutorial: Azure AD integration with SAML-based apps
- Secure Azure Functions with Azure AD
- Authentication and Authorization in Azure App Service
- Protect Azure Function with Microsoft Entra ID
Disclaimer: This Video content is not maintained by Microsoft. It is being shared solely for your convenience.
Hope this helps clarify the steps and flow! Please let us know how it goes or if you need more detailed guidance on any step. Thank you!