Skip to content

feat: add Microsoft Azure AD login via allauth#3

Merged
Grandvizir merged 1 commit intomainfrom
feat/azure-ad-login
Mar 23, 2026
Merged

feat: add Microsoft Azure AD login via allauth#3
Grandvizir merged 1 commit intomainfrom
feat/azure-ad-login

Conversation

@Grandvizir
Copy link
Copy Markdown
Collaborator

Enable SSO with Azure AD by uncommenting the allauth socialaccount providers, configuring the Microsoft provider with AZURE_CLIENT_ID, AZURE_CLIENT_SECRET and AZURE_TENANT_ID env vars, and adding a "Login with Microsoft" button to the login page.

  • Uncomment allauth.socialaccount and microsoft provider in INSTALLED_APPS
  • Add SOCIALACCOUNT_PROVIDERS config and auto-signup/connect settings
  • Add Microsoft login button (shown only when provider is configured)
  • Update CSP middleware to allow login.microsoftonline.com
  • Add Azure AD env vars to .env.example

Summary

Brief description of what this PR does.

Changes

Test Plan

  • Tests pass (pytest)
  • Linting passes (ruff check .)
  • Manual testing done (describe below)

Related Issues

Closes #

Enable SSO with Azure AD by uncommenting the allauth socialaccount
providers, configuring the Microsoft provider with AZURE_CLIENT_ID,
AZURE_CLIENT_SECRET and AZURE_TENANT_ID env vars, and adding a
"Login with Microsoft" button to the login page.

- Uncomment allauth.socialaccount and microsoft provider in INSTALLED_APPS
- Add SOCIALACCOUNT_PROVIDERS config and auto-signup/connect settings
- Add Microsoft login button (shown only when provider is configured)
- Update CSP middleware to allow login.microsoftonline.com
- Add Azure AD env vars to .env.example
@Grandvizir Grandvizir merged commit 9895ec9 into main Mar 23, 2026
2 checks passed
@Grandvizir Grandvizir deleted the feat/azure-ad-login branch April 8, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant