Skip to content

Commit

Permalink
🐛 Fix configuration exception from denyFilterOnUserPwd on standalone …
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
ujibang committed Nov 18, 2024
1 parent ca9f7af commit ce92a93
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
import org.restheart.plugins.InterceptPoint;
import org.restheart.plugins.MongoInterceptor;
import org.restheart.plugins.OnInit;
import org.restheart.plugins.PluginRecord;
import org.restheart.plugins.PluginsRegistry;
import org.restheart.plugins.RegisterPlugin;
import org.restheart.plugins.security.Authenticator;
import org.restheart.utils.HttpStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -58,8 +60,10 @@ public class DenyFilterOnUserPwd implements MongoInterceptor {

@OnInit
public void init() {
final var pr = registry.getAuthenticator("mongoRealmAuthenticator");
PluginRecord<Authenticator> pr;

try {
pr = registry.getAuthenticator("mongoRealmAuthenticator");
} catch (ConfigurationException ce) {
enabled = false;
return;
Expand Down

0 comments on commit ce92a93

Please sign in to comment.