[FEATURE] SQLCoreProvider

This commit is contained in:
Gravita 2024-04-25 02:06:44 +07:00
parent 9bd65c797b
commit 765f1a9d8f
2 changed files with 13 additions and 0 deletions

View file

@ -55,6 +55,7 @@ public static void registerProviders() {
providers.register("memory", MemoryAuthCoreProvider.class); providers.register("memory", MemoryAuthCoreProvider.class);
providers.register("merge", MergeAuthCoreProvider.class); providers.register("merge", MergeAuthCoreProvider.class);
providers.register("openid", OpenIDAuthCoreProvider.class); providers.register("openid", OpenIDAuthCoreProvider.class);
providers.register("sql", SQLCoreProvider.class);
registredProviders = true; registredProviders = true;
} }
} }

View file

@ -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;
}
}