Skip to content

Commit 23387aa

Browse files
sh1pt-actions-fleet[bot]ralyodioclaude
authored
dev2 webmail googlecal: OAuth via the registered mynaposter relay (state wm.*); image cal3 (#234)
The shared Google client is a Web-app client with only mynaposter.com's callback registered; its page relays state wm.* to webmail's callback (mynaposter PR). Co-authored-by: Anthony Ettinger <anthony@profullstack.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 85f80ea commit 23387aa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎dev2/sites.d/webmail.profullstack.com.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"service": "webmail.profullstack.com",
44
"repo": null,
55
"branch": null,
6-
"image": "profullstack/webmail:1.7.5-cal2",
6+
"image": "profullstack/webmail:1.7.5-cal3",
77
"start_command": "apache2-foreground",
88
"port_var": "80",
99
"domains": [

‎dev2/webmail/googlecal/googlecal.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public function connect()
7171
$this->rc->output->redirect(['_task' => 'settings', '_action' => 'edit-prefs', '_section' => 'googlecal']);
7272
return;
7373
}
74-
$_SESSION['googlecal_state'] = $state = bin2hex(random_bytes(16));
74+
// "wm." routes the reply through the registered mynaposter.com relay page
75+
// (apps/web/assets/oauth-callback.js) back to this server's callback.
76+
$_SESSION['googlecal_state'] = $state = 'wm.' . bin2hex(random_bytes(16));
7577
$url = self::AUTH_URL . '?' . http_build_query([
7678
'client_id' => $this->rc->config->get('googlecal_client_id'),
7779
'redirect_uri' => $this->redirect_uri(),

0 commit comments

Comments
 (0)