Skip to content

Incorrect behavior of perform.login when switching between velocity servers #3076

@seansolovev

Description

@seansolovev

What behaviour is observed?

When a player switches from an auth server to another backend server that also has AuthMe installed, AuthMe on the destination server asks for the password again instead of recognizing the player as already authenticated.

AuthMe Velocity does NOT send perform.login to lobby when the player switches there. The Velocity log shows no authmevelocity output at all during the switch to lobby. AuthMe on lobby receives no login signal and kicks the player after the auth timeout.

Expected behaviour

Player switches from survival to lobby without being asked for a password again. AuthMe Velocity should send perform.login to lobby so the player is automatically authenticated.

To Reproduce

  • Velocity proxy with AuthMe Velocity plugin
  • survival — auth server (listed in authServers), AuthMe installed
  • lobby — non-auth server (not in authServers), AuthMe installed

plugins/authmevelocity/config.yml:

authServers:
  - survival
allServersAreAuthServers: false
autoLogin: true
proxySharedSecret: "<same secret on all servers>"

AuthMe config.yml on every backend server:

Hooks:
  bungeecord: true
  proxySharedSecret: "<same secret as proxy>"

/config/paper-global.yml:

proxies:
  bungee-cord:
    online-mode: true
  proxy-protocol: false
  velocity:
    enabled: true
    online-mode: false
    secret: "<secret>"

Plugin list

velocity

[05:48:25 INFO]: Plugins: velocity, authmevelocity, luckperms, minimotd-velocity, skinsrestorer, viaversion, sonar, viabackwards

survival

[05:45:04 INFO]: ℹ Server Plugins (21):
[05:45:04 INFO]: Paper Plugins (2):
[05:45:04 INFO]:  - BlueSlimeCore, ToolStats
[05:45:04 INFO]: Bukkit Plugins (19):
[05:45:04 INFO]:  - AuthMe, Chunky, DeluxeMenus, Essentials, EssentialsChat, EssentialsSpawn, HoloMobHealth, HoloMobHealth-PacketEvents, InteractionVisualizer, LuckPerms
[05:45:04 INFO]:  packetevents, PlaceholderAPI, SkinsRestorer, Vault, ViaBackwards, ViaVersion, VillagerInABukkit, WorldEdit, WorldGuard

lobby

[05:46:19 INFO]: ℹ Server Plugins (10):
[05:46:19 INFO]: Bukkit Plugins:
[05:46:19 INFO]:  - AuthMe, Essentials, EssentialsChat, EssentialsSpawn, FastAsyncWorldEdit, LuckPerms, SkinsRestorer, ViaBackwards, ViaVersion, WorldGuard

Server Implementation

Velocity, Paper

Database Implementation

MariaDB

AuthMe Version

AuthMeReloaded v6.0.0 (build: 2734)

Console log

https://gist.github.com/seansolovev/85319ed56e04592cba6a4903f67d42bc

Configuration

https://gist.github.com/seansolovev/6252bd95c923d4141da28afe6757f0e7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions