Alternative Authentication NeoForge
Alternative Authentication NeoForge 是 Alternative Authentication 的非官方 NeoForge 1.21.1 移植版,原版由 GGSkyOne 制作。
此模组允许 Minecraft 服务器使用多种身份验证提供商对玩家进行认证,包括 Mojang 和 Ely.by 等第三方服务,而无需替换或干扰 Mojang 的身份验证机制。
它专为使用 NeoForge 的 Minecraft 1.21.1 设计。
这是原版 Alternative Authentication 模组的移植版本。
原始项目面向 Fabric 和 Quilt。此版本面向 NeoForge 1.21.1。
要求
此模组要求服务器运行在以下配置下:
online-mode=true
这是确保身份验证流程正常工作的必要条件。
还建议设置:
enforce-secure-profile=false
这将禁用 Mojang 安全聊天配置的强制要求,因为使用第三方身份验证提供商的玩家通常无法提供该配置。
重要提示
这是一个 仅限服务端 的模组。
玩家无需在客户端安装此模组。但是,想要通过第三方身份验证提供商加入服务器的玩家需要使用兼容的启动器或 authlib-injector 设置。
只要配置中启用了 Mojang 提供商,Microsoft/Mojang 玩家仍可以正常加入。
功能
- ⚙️ 可配置的身份验证提供商。
- ? 支持第三方身份验证服务器。
- ? 玩家加入服务器时的提供商回退机制。
- ? 支持来自第三方皮肤服务器的玩家纹理。
- ? 支持在登录期间获取额外的玩家属性。
- ? 支持第三方身份验证提供商的白名单。
- ? 已移植至 NeoForge 1.21.1。
默认提供商
默认情况下,配置中包含:
您可以在配置文件中添加、删除或重新排序提供商。
加入流程说明
当玩家加入服务器时,模组会按顺序检查配置好的身份验证提供商。
默认情况下,首先检查 Mojang。如果玩家无法通过 Mojang 进行身份验证,模组随后会检查 Ely.by 或其他任何配置的提供商。
您可以在配置中更改提供商的顺序。例如,您可以先检查 Ely.by,再检查 Mojang。
如果玩家无法被任何配置的提供商认证,他们将不允许加入服务器。
白名单支持
此模组扩展了白名单处理功能,使得来自第三方身份验证提供商的玩家可以被解析并添加到白名单中。
当将玩家添加到白名单时,模组会按顺序检查配置的提供商。
如果在某个提供商处找到了该玩家,其资料可以被添加到白名单中。
如果无法在任何提供商处找到该玩家,则无法自动将其添加。
如果同一用户名存在于多个提供商怎么办?
如果同一用户名存在于多个身份验证提供商中,将使用配置顺序中第一个匹配的提供商。
要处理这种情况,您可以临时更改提供商顺序或手动编辑白名单条目。
配置
配置文件位于:
/config/alternative-auth.json
示例配置:
{
"debug": false,
"providers": [
{
"name": "Mojang",
"check_url": "https://sessionserver.mojang.com/session/minecraft/hasJoined",
"profiles_url": "https://api.mojang.com/profiles/minecraft"
},
{
"name": "Ely.by",
"check_url": "https://authserver.ely.by/session/hasJoined",
"profiles_url": "https://authserver.ely.by/api/profiles/minecraft",
"property_url": "http://skinsystem.ely.by/textures/signed/{0}"
}
]
}
配置选项
debug
启用身份验证和白名单操作期间的额外日志记录。
默认值:
false
在排查身份验证问题时请将其设置为 true。
providers
服务器使用的身份验证提供商列表。
提供商从上到下进行检查。
每个提供商可以定义以下字段:
name
提供商的显示名称。
示例:
"name": "Ely.by"
check_url
用于在玩家加入服务器时验证玩家的 URL。
示例:
"check_url": "https://authserver.ely.by/session/hasJoined"
profiles_url
用于在从白名单中添加或删除玩家时解析玩家资料的 URL。
此端点必须支持使用数组检查多个用户名。
示例:
"profiles_url": "https://authserver.ely.by/api/profiles/minecraft"
property_url
可选 URL,用于获取额外的玩家属性,如皮肤和披风纹理。
您可以使用:
{0} 表示玩家用户名
{1} 表示玩家 UUID
示例:
"property_url": "http://skinsystem.ely.by/textures/signed/{0}"
常见问题
这是原版模组吗?
不是。这是 Alternative Authentication 的非官方 NeoForge 1.21.1 移植版。
原版模组由 GGSkyOne 制作,可在 Modrinth 上找到。
这支持 Fabric 或 Quilt 吗?
不支持。此移植版仅针对 NeoForge 1.21.1。
如果您需要 Fabric 或 Quilt 支持,请使用原始的 Alternative Authentication 模组。
这支持 Forge 吗?
不支持。此版本仅针对 NeoForge 1.21.1。
这是客户端模组吗?
不是。这是一个服务端模组。
玩家无需安装它,但第三方身份验证用户需要一个兼容的启动器或 authlib-injector。
Mojang 和 Ely.by 玩家可以加入同一个服务器吗?
可以。
只要配置了这两个提供商,Mojang 和 Ely.by 玩家就可以加入同一个服务器。
Microsoft/Mojang 玩家还能加入吗?
可以。
如果启用了 Mojang 提供商,Mojang 身份验证仍可正常工作。
为什么 online-mode=true 必须保持启用状态?
本模组扩展了 Minecraft 的在线身份验证流程,而非将其替换为离线模式。
保持 online-mode=true 可在支持第三方提供者的同时,确保 Mojang 身份验证正常工作。
为什么推荐设置 enforce-secure-profile=false?
第三方身份验证提供者通常无法提供 Mojang 安全聊天配置文件。
将 enforce-secure-profile=false 可防止因缺少签名聊天数据而导致这些玩家被拒绝。
鸣谢
原始模组:Alternative Authentication
原作者:GGSkyOne
此 NeoForge 版本是 Minecraft 1.21.1 的非官方移植版。
Alternative Authentication NeoForge
Alternative Authentication NeoForge is an unofficial NeoForge 1.21.1 port of Alternative Authentication, originally created by GGSkyOne.
This mod allows a Minecraft server to authenticate players using multiple authentication providers, including Mojang and third-party services such as Ely.by, without replacing or interfering with Mojang authentication.
It is designed for Minecraft 1.21.1 using NeoForge.
This is a port of the original Alternative Authentication mod.
The original project targets Fabric and Quilt. This version targets NeoForge 1.21.1.
Requirements
This mod requires the server to run with:
online-mode=true
This is required for the authentication flow to work correctly.
It is also recommended to set:
enforce-secure-profile=false
This disables Mojang secure chat profile enforcement, which players using third-party authentication providers usually cannot provide.
Important notice
This is a server-side only mod.
Players do not need to install this mod on their client. However, players who want to join using a third-party authentication provider need to use a compatible launcher or an authlib-injector setup.
Microsoft/Mojang players can still join normally as long as the Mojang provider is enabled in the configuration.
Features
- ⚙️ Configurable authentication providers.
- ? Support for third-party authentication servers.
- ? Provider fallback when a player joins the server.
- ? Support for player textures from third-party skin servers.
- ? Support for fetching additional player properties during login.
- ? Whitelist support for third-party authentication providers.
- ? Ported to NeoForge 1.21.1.
Default providers
By default, the configuration includes:
You can add, remove, or reorder providers in the configuration file.
How joining works
When a player joins the server, the mod checks the configured authentication providers in order.
By default, Mojang is checked first. If the player cannot be authenticated through Mojang, the mod then checks Ely.by or any other configured provider.
You can change the provider order in the configuration. For example, you can check Ely.by first and Mojang second.
If the player cannot be authenticated by any configured provider, they will not be allowed to join the server.
Whitelist support
This mod extends whitelist handling so that players from third-party authentication providers can be resolved and added to the whitelist.
When adding a player to the whitelist, the mod checks the configured providers in order.
If the player is found on one of the providers, their profile can be added to the whitelist.
If the player cannot be found on any provider, they cannot be added automatically.
What if the same username exists on multiple providers?
If the same username exists on multiple authentication providers, the first matching provider in the configuration order will be used.
To handle this, you can temporarily change the provider order or manually edit the whitelist entry.
Configuration
The configuration file is located at:
/config/alternative-auth.json
Example configuration:
{
"debug": false,
"providers": [
{
"name": "Mojang",
"check_url": "https://sessionserver.mojang.com/session/minecraft/hasJoined",
"profiles_url": "https://api.mojang.com/profiles/minecraft"
},
{
"name": "Ely.by",
"check_url": "https://authserver.ely.by/session/hasJoined",
"profiles_url": "https://authserver.ely.by/api/profiles/minecraft",
"property_url": "http://skinsystem.ely.by/textures/signed/{0}"
}
]
}
Configuration options
debug
Enables additional logs during authentication and whitelist operations.
Default:
false
Set this to true when troubleshooting authentication issues.
providers
List of authentication providers used by the server.
Providers are checked from top to bottom.
Each provider can define the following fields:
name
Display name of the provider.
Example:
"name": "Ely.by"
check_url
URL used to verify a player when they join the server.
Example:
"check_url": "https://authserver.ely.by/session/hasJoined"
profiles_url
URL used to resolve player profiles when adding or removing players from the whitelist.
This endpoint must support checking multiple usernames using an array.
Example:
"profiles_url": "https://authserver.ely.by/api/profiles/minecraft"
property_url
Optional URL used to fetch additional player properties, such as skin and cape textures.
You can use:
{0} for the player username
{1} for the player UUID
Example:
"property_url": "http://skinsystem.ely.by/textures/signed/{0}"
FAQ
Is this the original mod?
No. This is an unofficial NeoForge 1.21.1 port of Alternative Authentication.
The original mod was created by GGSkyOne and is available on Modrinth.
Does this support Fabric or Quilt?
No. This port targets NeoForge 1.21.1.
Use the original Alternative Authentication mod if you need Fabric or Quilt support.
Does this support Forge?
No. This version targets NeoForge 1.21.1 only.
Is this client-side?
No. This is a server-side mod.
Players do not need to install it, but third-party authentication users need a compatible launcher or authlib-injector.
Can Mojang and Ely.by players join the same server?
Yes.
As long as both providers are configured, Mojang and Ely.by players can join the same server.
Can Microsoft/Mojang players still join?
Yes.
Mojang authentication still works normally if the Mojang provider is enabled.
Why does online-mode=true need to stay enabled?
This mod extends Minecraft’s online authentication flow instead of replacing it with offline mode.
Keeping online-mode=true allows Mojang authentication to keep working correctly while also supporting third-party providers.
Why is enforce-secure-profile=false recommended?
Third-party authentication providers usually cannot provide Mojang secure chat profiles.
Setting enforce-secure-profile=false prevents those players from being rejected because of missing signed chat data.
Credits
Original mod: Alternative Authentication
Original author: GGSkyOne
This NeoForge version is an unofficial port for Minecraft 1.21.1.
评论 0
登录后参与评分
还没有评论,来抢沙发吧