Hello PythonAnywhere Support,
I am using PythonAnywhere with the username sdoruksezer.
I am hosting a Django demo application for the International Olive Council. The application needs to authenticate with Microsoft Entra ID to use the Microsoft Graph sendMail API for Microsoft 365 email notifications.
The app can already reach: https://graph.microsoft.com
But token authentication fails because this domain is blocked from my PythonAnywhere free account: https://login.microsoftonline.com
Test result from PythonAnywhere Bash console: https://login.microsoftonline.com FAILED URLError(OSError('Tunnel connection failed: 403 Forbidden')) https://graph.microsoft.com/v1.0/$metadata OK 200
Could you please allowlist the following domain for outbound HTTPS access from my account?
Domain: login.microsoftonline.com
API documentation: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow https://learn.microsoft.com/en-us/graph/api/user-sendmail
Purpose: Authenticate with Microsoft Entra ID and call the Microsoft Graph sendMail API to notify IOC staff when a new applicant submits an application.
Thank you.