File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
protocols/jmap/src/main/java/org/apache/james/jmap/http Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ max.size.attachments.per.mail=100M
23
23
# tls.secret=james72laBalle
24
24
# view.email.query.enabled=true
25
25
# authentication.strategy.draft=BasicAuthenticationStrategy
26
-
26
+ user.provisioning.enabled = false
27
27
#
28
28
# If you wish to use OAuth authentication, you should provide a valid JWT public key.
29
29
# The following entry specify the link to the URL of the public key file,
Original file line number Diff line number Diff line change 446
446
<image >eclipse-temurin:11-jre-jammy</image >
447
447
</from >
448
448
<to >
449
+ <<<<<<< HEAD
449
450
<image >ghcr.io/appscode/inbox-server</image >
450
451
<tags >
451
452
<tag >latest</tag >
453
+ =======
454
+ <image >sami7786/distributed-james-test</image >
455
+ <tags >
456
+ <tag >disable-user-provisioning</tag >
457
+ >>>>>>> ae975b8150 (Force JMAP endpoints to check for user existence.)
452
458
</tags >
453
459
</to >
454
460
<container >
Original file line number Diff line number Diff line change @@ -70,6 +70,11 @@ public Mono<MailboxSession> createMailboxSession(HttpServerRequest httpRequest)
70
70
throw new UnauthorizedException ("Invalid username" , e );
71
71
}
72
72
73
+ //TODO: Implement this behavior using an extension-jar instead
74
+ if (!usersRepository .contains (username )) {
75
+ throw new UnauthorizedException ("User does not exist" );
76
+ }
77
+
73
78
return username ;
74
79
}).subscribeOn (ReactorUtils .BLOCKING_CALL_WRAPPER ))
75
80
.map (Throwing .function (user -> mailboxManager .authenticate (user ).withoutDelegation ()));
You can’t perform that action at this time.
0 commit comments