Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .horde.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ dependencies:
horde/notification: ^3
horde/pack: ^2
horde/perms: ^3
horde/sasl: ^1
horde/spellchecker: ^3
horde/stream: ^2
horde/stream_filter: ^3
Expand Down
11 changes: 11 additions & 0 deletions config/conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
<case name="shown" desc="Shown" />
<case name="hidden" desc="Hidden" />
</configswitch>
<configswitch name="app_auth_mode" desc="How does IMP participate in
authentication? 'traditional' preserves classic behaviour: IMP can drive
Horde login and authenticates against the primary IMAP backend.
'federated' means Horde authentication happens by some other mechanism
(e.g. OIDC, GitHub, Gmail); IMP does not provide application authentication
and performs no eager primary-IMAP connection. Mailboxes are supplied by
account providers, so the canvas starts empty except for manually-added
external mailboxes.">traditional
<case name="traditional" desc="Traditional (IMP drives login / primary IMAP auth)" />
<case name="federated" desc="Federated (external auth; no eager mailbox connect)" />
</configswitch>
</configsection>
</configtab>

Expand Down
18 changes: 17 additions & 1 deletion config/routes.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<?php

// Empty default routes file. Put custom routes into var/config/imp/routes.local.php and run composer horde:reconfigure
// Default routes file. Put custom routes into var/config/imp/routes.local.php and run composer horde:reconfigure


namespace Horde\Imp;

use Horde\Core\Middleware\DefaultStack;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;


// Test route for password credential system
$mapper->buildRoute(uri: '/mailboxes/authtest', name: 'ImpAuthTest')
->withController(\Horde\Imp\Mailboxes\AuthTestController::class)
->withDefaults(['HordeAuthType' => 'authenticate'])
->withMiddleware(DefaultStack::get())
->add();

Loading
Loading