Skip to content

Add social authentication using django-allauth#289

Merged
Xpirix merged 6 commits intoqgis:masterfrom
Xpirix:add_social_auth
Apr 17, 2026
Merged

Add social authentication using django-allauth#289
Xpirix merged 6 commits intoqgis:masterfrom
Xpirix:add_social_auth

Conversation

@Xpirix
Copy link
Copy Markdown
Collaborator

@Xpirix Xpirix commented Apr 1, 2026

Closes #275

image

Changes summary

  • This will allow users to log in with their Google/GitHub account.
  • At first login, users are prompted to choose their user name.
  • If the same username or email already exists in the DB (local or LDAP users), it will generate an error notification accordingly
  • Keep the login from LDAP and local account (username + password)

Requirements

  • This requires setting up OAuth keys on Google and GitHub and pasting them into the app to work correctly.
  • A new image build is also needed.

@Xpirix Xpirix requested a review from timlinux April 1, 2026 13:47
@timlinux
Copy link
Copy Markdown
Member

timlinux commented Apr 7, 2026

This is great let's aim to add codeberg, gitlab, osm, microsoft, apple, linked in.

Do bluesky and mastodon have oauth providers too?

@Xpirix
Copy link
Copy Markdown
Collaborator Author

Xpirix commented Apr 8, 2026

This is great let's aim to add codeberg, gitlab, osm, microsoft, apple, linked in.

Do bluesky and mastodon have oauth providers too?

Codeberg, Bluesky, and Mastodon are not supported by django-allauth yet. I've added other providers and a doc on how to set them up: https://github.com/Xpirix/QGIS-Plugins-Website/blob/a7bb9ddc9d499a8f758bd624cba2aaab9c1e3115/docs/oauth-setup.md

image

@Xpirix Xpirix changed the title Add social authentication (Google and GitHub) using django-allauth Add social authentication using django-allauth Apr 10, 2026
@saifeldinkhedir-coder
Copy link
Copy Markdown

saifeldinkhedir-coder commented Apr 16, 2026

Hi @Xpirix, I wanted to gently follow up on this PR request. All CI checks are passing and there are no merge conflicts. Whenever you have a moment to review, I would greatly appreciate your feedback. Thank you for your time and for maintaining QGIS!

@Xpirix
Copy link
Copy Markdown
Collaborator Author

Xpirix commented Apr 16, 2026

Hi @saifeldinkhedir-coder , please note that we still need to set up each provider alongside the deployment of this PR. We will probably do that later this week or next week.

@saifeldinkhedir-coder
Copy link
Copy Markdown

Thank you @Xpirix for the update! I appreciate you letting me know. I will wait and I am available whenever you are ready. 🙏

Copy link
Copy Markdown
Member

@timlinux timlinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Xpirix Xpirix merged commit ad0cd09 into qgis:master Apr 17, 2026
2 checks passed
@saifeldinkhedir-coder
Copy link
Copy Markdown

Thank you so much @timlinux and @Xpirix! 🙏

I am truly honored to have my contribution accepted into the official QGIS Plugins repository. Your time, effort, and guidance throughout this review process means a great deal to me.

Thank you for maintaining such an incredible open-source project that serves researchers and communities worldwide. I hope to continue contributing and giving back to the QGIS ecosystem. 🌍

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.

Add Django social authentication to the plugins

3 participants