Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
As part of looking to migrate site(s) to D8, it would be useful to have a situation where parts of the site are D6 and parts are D8. It would be ideal to be able to have the bakery SSO option available to allow this to be done as seamlessly as possible.
This means at least the “client” side of bakery would be useful in a D8 module.
Proposed resolution
I’m very happy to work on creating a D8 bakery, with help, but initially want to know who else is interested or has already made a start?
Remaining tasks
Build a D8 version of the bakery module that works against bakery masters running in D6 and D7 sites.
User interface changes
none
API changes
none
Data model changes
none.
Comment | File | Size | Author |
---|---|---|---|
#21 | 2699683-21-d8port-continued.patch | 33.05 KB | thtas |
#17 | 2699683-17.patch | 1.88 KB | andypost |
Comments
Comment #2
rachel_norfolkComment #3
geerlingguy CreditAttribution: geerlingguy commentedCreated #2700717: [bakery] Bakery Single Sign-On System to track in the contrib tracker.
Comment #4
neilt17 CreditAttribution: neilt17 commentedJust to say I am interested - and will be in a mixed D6/D8 situation!
Comment #5
kathyq CreditAttribution: kathyq commented+1
Comment #6
rodtatham CreditAttribution: rodtatham commented+1
Comment #7
fuzzy76 CreditAttribution: fuzzy76 commentedI guess the blocker here is finding a new maintainer (as the project page states the need for one). But TBH, I would suggesting getting off the island and look at the https://www.drupal.org/project/cas and https://www.drupal.org/project/cas_server projects.
Comment #8
rachel_norfolkDo note, though, that there is no 6.x release for CAS.
Comment #9
neilt17 CreditAttribution: neilt17 commentedEr, yes there is /was - https://www.drupal.org/project/cas/releases?api_version%5B%5D=87
Comment #10
unnikrishnan CreditAttribution: unnikrishnan as a volunteer commentedHi,
I have ported this module to Drupal 8, it's tested and working fine. How I can contribute it to Drupal.
Can I upload here? please advice.
Thanks,
Unnikrishnan B.
Comment #11
fuzzy76 CreditAttribution: fuzzy76 commentedI think the best way would be to apply for co-maintainership and get commit rights, so you could commit it to a D8 branch directly. Could be that the current maintainers would like to see your code first, though.
Comment #12
unnikrishnan CreditAttribution: unnikrishnan as a volunteer commentedThank you @fuzzy76!,
How do I apply for co-maintainership? May be I will attached the code here so people can review it.
Thanks,
Unnikrishnan B.
Comment #13
DamienMcKennaStandardized the issue title.
Comment #14
DamienMcKennaHere's unnikrishnan's file in patch format.
Comment #15
drummThanks for getting this port started. I committed it as-is; I haven’t tested it. Followups are best in separate issues, marking this fixed.
Testing should be automated with something like https://github.com/drumm/Bakery-Chef. I wasn’t able to get that running since it tracks the current release of Chef and apparently a lot has changed. Starting from scratch with DrupalVM might be the way to go today.
We’ve been running #2659992: Make subsite registration and login optional on Drupal.org for quite awhile and should be ported. It is still missing some functionality, but works well. I’d go as far as removing subsite login completely on D8.
Comment #16
drummhttps://www.drupal.org/sandbox/msajko/2877610 is a good place to look for followup issues.
Comment #17
andypostContrib tracker #2700717: [bakery] Bakery Single Sign-On System points to this issue but module does not work (port incomplete)
Maybe keep the issue open to allow others to follow?
Patch to fix config usage
Comment #19
drummLooks okay, committed.
Separate issues are better:
In general, contrib tracker isn’t canonical. Maybe it should link to https://www.drupal.org/project/issues/bakery?text=&status=Open&prioritie... ?
Comment #21
thtas CreditAttribution: thtas commentedSorry to post a mega-patch.. but there was just too many inter-connected issues for me to get my head around how to separate things in to different parts. I wasn't sure where else to post..
Anyway, this was everything required to get Bakery functional between two d8 sites (running 8.4) based on
8.x-dev commit 1f909ed87b5fe59049acd80aed6d3d9b4fd14dd6 and the attached patch.
In addition to this patch you will also need to install the phpseclib/mcrypt_compat library when running under php 5.6+ via composer
This patch includes these other patches in the queue
P.S.
This module seems to have stagnated a fair bit. If you're considering Bakery as a SSO solution for drupal 8, also take a look at the CAS https://www.drupal.org/project/cas which seems to be in much better shape.
Sponsored by GamePress
https://gamepress.gg/