Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add django-allauth for Azure authentication (SSO) and email verification #4163

Merged
merged 115 commits into from
Jan 9, 2023

Conversation

bufke
Copy link
Contributor

@bufke bufke commented Nov 28, 2022

Description

  • Migrate to django-allauth accounts framework
  • Require email verification when changing an email
  • Require POST for logout.
  • Make email field of Current User ViewSet (/me/) read-only
  • Provide new /me/emails/ ViewSet to add/list/delete unconfirmed emails, in order to change the user's primary email.
  • Add Microsoft Graph (Azure) OAuth provider
  • Change user interface for editing user settings and security settings. Move email and change password to security page.

Implementation Details

django-allauth was deemed the best option for it's support of many oauth clients. Drawbacks include a lack of true multi-tenant configuration and lack of proper OIDC support. We could add both features in theory, ourselves.

  • Port django registration templates/logic to allauth
  • Make logout require a POST (best practice) frontend was modified to support this
  • Add Microsoft Azure Active Directory authentication via django-allauth package but disabled by default

Renamed branch #4034

Docs change

@p2edwards p2edwards self-assigned this Dec 24, 2022
@bufke bufke mentioned this pull request Jan 5, 2023
Slightly lightens $kobo-mid-blue globally (not used very often)
@bufke bufke merged commit 380ce7b into beta Jan 9, 2023
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.

5 participants