From 765f1a9d8f4fef5314418c08a497bbe1ecbf92b7 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Thu, 25 Apr 2024 02:06:44 +0700 Subject: [PATCH] [FEATURE] SQLCoreProvider --- .../launchserver/auth/core/AuthCoreProvider.java | 1 + .../launchserver/auth/core/SQLCoreProvider.java | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/SQLCoreProvider.java diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AuthCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AuthCoreProvider.java index 806b657d..cef6f749 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AuthCoreProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AuthCoreProvider.java @@ -55,6 +55,7 @@ public static void registerProviders() { providers.register("memory", MemoryAuthCoreProvider.class); providers.register("merge", MergeAuthCoreProvider.class); providers.register("openid", OpenIDAuthCoreProvider.class); + providers.register("sql", SQLCoreProvider.class); registredProviders = true; } } diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/SQLCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/SQLCoreProvider.java new file mode 100644 index 00000000..cff1ffd6 --- /dev/null +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/SQLCoreProvider.java @@ -0,0 +1,12 @@ +package pro.gravit.launchserver.auth.core; + +import pro.gravit.launchserver.auth.HikariSQLSourceConfig; +import pro.gravit.launchserver.auth.SQLSourceConfig; + +public class SQLCoreProvider extends AbstractSQLCoreProvider { + public HikariSQLSourceConfig holder; + @Override + public SQLSourceConfig getSQLConfig() { + return holder; + } +}