Skip to content

Add MS Graph API integration for email notifications in GeoNode - #12907

Closed
kishkumar96 wants to merge 1 commit into
GeoNode:4.3.xfrom
kishkumar96:4.3.x
Closed

kishkumar96 wants to merge 1 commit into
GeoNode:4.3.xfrom
kishkumar96:4.3.x

Conversation

@kishkumar96

Copy link
Copy Markdown

Overview

This pull request integrates Microsoft Graph API as an alternative email backend for GeoNode, replacing or complementing the existing SMTP-based email system. This enhancement improves email security, reliability, and authentication using OAuth2.

Checklist

Reviewing is done by project maintainers, mostly on a volunteer basis. Please help by completing these items where possible.

For all pull requests:

  • I have read the contribution guidelines.
  • If required, I have sent a Contribution License Agreement (CLA).
  • The first PR targets the master branch unless fixing an issue in a specific branch.
  • I have verified that my changes are not breaking existing functionalities.

For core and extension modules:

  • There is an issue in GeoNode Issues describing this change.
  • The issue linked to this PR has appropriate labels and milestones.
  • This PR consists of a single commit (or well-organized multiple commits).
  • The commit message follows GeoNode’s format: [Fixes #<issue_number>] Title of the Issue.
  • The PR title follows GeoNode’s format: [Fixes #<issue_number>] Title of the PR.
  • New unit tests have been added to validate this change.
  • This PR passes all existing tests (Travis CI will report test results after submission).
  • Code formatting passes QA checks:
    black geonode && flake8 geonode

@cla-bot

cla-bot Bot commented Feb 13, 2025

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @sopac on file. In order for us to review and merge your code, please contact the project maintainers to get yourself added.

@codecov

codecov Bot commented Feb 13, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 13.33333% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.11%. Comparing base (d296f7a) to head (343c745).
⚠️ Report is 13 commits behind head on 4.3.x.

Additional details and impacted files
@@            Coverage Diff             @@
##            4.3.x   #12907      +/-   ##
==========================================
- Coverage   64.14%   64.11%   -0.03%     
==========================================
  Files         872      873       +1     
  Lines       52328    52342      +14     
  Branches     6478     6479       +1     
==========================================
- Hits        33564    33558       -6     
- Misses      17275    17294      +19     
- Partials     1489     1490       +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mattiagiupponi

Copy link
Copy Markdown
Contributor

Hi @kishkumar96 please update the target branch to master. GeoNode 4.3.x is not mantained anymore

@Luke-Sanborn

Copy link
Copy Markdown

Hi all,
Is there an interest in continuing with this PR? I have a GeoNode instance where I'd like to use Microsoft Graph API for the email backend. Since Microsoft 365 is phasing out Basic SMTP authentication, this looks like exactly what would be needed to continue sending emails with 365.

I'd be very interested to see this move forward and would be happy to help test it if needed. Thanks for your work on this!

@mattiagiupponi

Copy link
Copy Markdown
Contributor

Hi @Luke-Sanborn
The PR is old, and is targetting a branch which is no longer maintained. As i already mentioned before should target the master branch and not 4.3.x, plus looks like the creator of the PR does not have any intention to update it

Plus it contain files that are not related to the PR itself in my opinion, so the PR should be re-done again.
If you are willing to open a PR with the changes is welcome, but for now i'm closing this PR

@kishkumar96

Copy link
Copy Markdown
Author

Hi, i can stiil work on this if you guys still need it.

@mattiagiupponi

Copy link
Copy Markdown
Contributor

Hi @kishkumar96 if you are willing to participate in the development, is always appreciated.
Please keep in mind that:

  • The target version should always be master branch
  • from your PR i see that many unrelated files where proposed (which are not needed in geonode)
  • from 4.3.x to master, the django version has been updated, so some change might be required

If you are willing to open a PR with an updated PR we will really happy. Thanks!

@giohappy

giohappy commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Honestly, this is quite a specific backend. As usual, the goal is to keep the core as lean as possible, because anything that goes in the core must be maintained over time. In the past, a lot of work has been done to remove unmaintained utilities and modules from GeoNode.

My suggestion @kishkumar96 is to create a dedicated repo for this module, with instructions to allow projects to import and configure it in a standard GeoNode.

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