mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FEATURE] SQLCoreProvider
This commit is contained in:
parent
9bd65c797b
commit
765f1a9d8f
2 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue