Automagically connect Thundermail Calendar in FTUE#1544
Open
davinotdavid wants to merge 14 commits intomainfrom
Open
Automagically connect Thundermail Calendar in FTUE#1544davinotdavid wants to merge 14 commits intomainfrom
davinotdavid wants to merge 14 commits intomainfrom
Conversation
This was referenced Feb 26, 2026
577d577 to
f08d7ae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the Change
docker-compose.ymlcontainer ports not to clash withthunderbird-accountswhen running locallyTB_ACCOUNTS_CALDAV_URLenv var.POST '/caldav/oidc/auth'route to attempt to connect to the CalDAV through the OIDC token.ConnectYourCalendarThundermailStepas we don't need it anymore + related i18n and enum entries.Here's the flow:
POSTrequest to/caldav/oidc/authPOSTrequest to Account's Backend/appointment/caldav/setup/passing theAPPOINTMENT_CALDAV_SECRETand the current logged in user's OIDC tokenWarning
Requires thunderbird/thunderbird-accounts#616 to be merged in first for the best experience on testing this
How to test it
Alright, first of all, this is a joint effort with the
thunderbird-accountsrepo so make sure you are in the branchappointment-auto-setup-caldav(thunderbird/thunderbird-accounts#469) and you are able to run adocker compose upin boththunderbird-accountsand this branch inAppointment.Make sure you have the .env var
APPOINTMENT_CALDAV_SECRETset in boththunderbird-accountsand this branch to the same values.Accounts Prerequisites
http://localhost:8087/adminand login with useradmin@example.organd passwordadmin.http://localhost:8087/admin/subscription/plan/add/. None of the information here actually matter except for the Product which has to be an active product.http://localhost:8087/and you should be redirected to the/subscribepage.PS: This whole step is required because only then we will have the
authenticate.Usermodel created + the actual Stalwart account to create the App Password.Steps to test, now in Appointment-land
http://localhost:8090, if you are redirected to Keycloak, login with the sameadmin@example.org/adminas before.Thundermail CalendarBooking Pagestep with the Stalwart Calendar pre-selected. All that without manually creating an App Password!Benefits
Applicable Issues
Fixes #1352