aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/MainModule.java
diff options
context:
space:
mode:
authorDan <djr2468@gmail.com>2023-04-01 22:41:36 +0100
committerDan <djr2468@gmail.com>2023-04-01 22:41:36 +0100
commit92ebe0adba132bed5499bc1624620afeea34e347 (patch)
tree90be8f16ba7a187e178d7c29b572313e32b32ff0 /src/main/java/org/traccar/MainModule.java
parentf8339b4ca0ca7440854f759b32b821afe19f458b (diff)
downloadtrackermap-server-92ebe0adba132bed5499bc1624620afeea34e347.tar.gz
trackermap-server-92ebe0adba132bed5499bc1624620afeea34e347.tar.bz2
trackermap-server-92ebe0adba132bed5499bc1624620afeea34e347.zip
Initial implementation
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r--src/main/java/org/traccar/MainModule.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java
index 417844f50..7def97657 100644
--- a/src/main/java/org/traccar/MainModule.java
+++ b/src/main/java/org/traccar/MainModule.java
@@ -87,6 +87,7 @@ import org.traccar.storage.DatabaseStorage;
import org.traccar.storage.MemoryStorage;
import org.traccar.storage.Storage;
import org.traccar.web.WebServer;
+import org.traccar.api.security.LoginService;
import org.traccar.api.security.OpenIDProvider;
import javax.annotation.Nullable;
@@ -173,9 +174,9 @@ public class MainModule extends AbstractModule {
@Singleton
@Provides
- public static OpenIDProvider provideOpenIDProvider(Config config) {
+ public static OpenIDProvider provideOpenIDProvider(Config config, LoginService loginService, Storage storage) {
if (config.getBoolean(Keys.OIDC_ENABLE)) {
- return new OpenIDProvider(config);
+ return new OpenIDProvider(config, loginService, storage);
}
return null;
}