diff --git a/machines/gerd/services/drasl.nix b/machines/gerd/services/drasl.nix index 0f4a1bd..52faaf7 100644 --- a/machines/gerd/services/drasl.nix +++ b/machines/gerd/services/drasl.nix @@ -34,10 +34,24 @@ in { ) (v: v.mail); in admins); + # allow importing players + ImportExistingPlayer = { + Allow = true; + Nickname = "Mojang"; + AccountURL = "https://api.mojang.com"; + SessionURL = "https://sessionserver.mojang.com"; + SetSkinURL = "https://www.minecraft.net/msaprofile/mygames/editskin"; + RequireSkinVerification = false; # TODO: should maybe be changed to true in the future + }; + + RegistrationExistingPlayer.Allow = true; + + # only allow loging using OIDC CreateNewPlayer.Allow = true; RegistrationNewPlayer.Allow = true; AllowPasswordLogin = false; + # configure OIDC RegistrationOIDC = [{ Name = draslOIDCName; Issuer = "https://${config.mine.shared.settings.authelia.domain}";