mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2026-01-11 23:58:15 +01:00
12 lines
368 B
C#
12 lines
368 B
C#
using Phantom.Controller.Services.Agents;
|
|
using Phantom.Utils.Rpc;
|
|
using Phantom.Utils.Rpc.Runtime.Server;
|
|
|
|
namespace Phantom.Controller.Services.Rpc;
|
|
|
|
sealed class AgentClientAuthProvider(AgentManager agentManager) : IRpcServerClientAuthProvider {
|
|
public Task<AuthSecret?> GetAuthSecret(Guid agentGuid) {
|
|
return agentManager.GetAgentAuthSecret(agentGuid);
|
|
}
|
|
}
|