{{ template "layout" . }} {{ define "title" }}{{ .App.Config.ApplicationName }}{{ end }} {{ define "content" }} {{ template "header" . }}
Sign in with {{ $provider.Name }}
{{ end }} {{ $dividerNeeded = true }} {{ end }} {{ if .App.Config.AllowPasswordLogin }} {{ if $dividerNeeded }}Using {{ .App.Config.ApplicationName }} on the client requires a third-party launcher that supports custom API servers. Fjord Launcher, a fork of Prism Launcher, is recommended, but HMCL also works. Both are free/libre.
Use the authlib-injector URL {{ .App.AuthlibInjectorURL }}.
Or, if your launcher supports custom API servers but not via authlib-injector, use the following URLs:
Authentication Server: | {{ .App.AuthURL }} |
Account Server: | {{ .App.AccountURL }} |
Session Server: | {{ .App.SessionURL }} |
Services Server: | {{ .App.ServicesURL }} |
-Dminecraft.api.env=custom -Dminecraft.api.auth.host={{ .App.AuthURL }} -Dminecraft.api.account.host={{ .App.AccountURL }} -Dminecraft.api.session.host={{ .App.SessionURL }} -Dminecraft.api.services.host={{ .App.ServicesURL }}For example, the full command you use to start the server might be:
java -Xmx1024M -Xms1024M \ -Dminecraft.api.env=custom \ -Dminecraft.api.auth.host={{ .App.AuthURL }} \ -Dminecraft.api.account.host={{ .App.AccountURL }} \ -Dminecraft.api.session.host={{ .App.SessionURL }} \ -Dminecraft.api.services.host={{ .App.ServicesURL }} \ -jar server.jar nogui
Refer to the authlib-injector documentation on setting up a server: https://github.com/yushijinhun/authlib-injector/blob/develop/README.en.md#deploy.
Alternatively, you can patch your server to use a newer version of Mojang's authlib that supports the arguments for custom API servers. Replace the files under com/mojang/authlib
in your server.jar
with the files in authlib-1.6.25.jar.
Use OnlineModeFix and start the server with the -Dminecraft.api.*.host
arguments described above. For example, the full command you use to start the server might be:
java -Xmx1024M -Xms1024M \ -Dminecraft.api.env=custom \ -Dminecraft.api.auth.host={{ .App.AuthURL }} \ -Dminecraft.api.account.host={{ .App.AccountURL }} \ -Dminecraft.api.session.host={{ .App.SessionURL }} \ -Dminecraft.api.services.host={{ .App.ServicesURL }} \ -Djava.protocol.handler.pkgs=gg.codie.mineonline.protocol \ -cp server.jar:OnlineModeFix.jar \ net.minecraft.server.MinecraftServer \ nogui{{ template "footer" . }} {{ end }}