Files
UnrealEngine/Engine/Source/Developer/Horde/Public/Server/ServerMessages.h
2025-05-18 13:04:45 +08:00

45 lines
1.1 KiB
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Serialization/JsonSerializerMacros.h"
/** Server Info */
struct FGetServerInfoResponse : FJsonSerializable
{
/** Server version info */
FString ServerVersion;
/** The current agent version string */
FString AgentVersion;
/** The operating system server is hosted on */
FString OsDescription;
FGetServerInfoResponse();
virtual ~FGetServerInfoResponse() override;
virtual void Serialize(FJsonSerializerBase& Serializer, bool bFlatObject) override;
};
/** Describes the auth config for this server */
struct FGetAuthConfigResponse : FJsonSerializable
{
/** Issuer for tokens from the auth provider */
FString Method;
/** Issuer for tokens from the auth provider */
FString ServerUrl;
/** Client id for the OIDC authority */
FString ClientId;
/** Optional redirect url provided to OIDC login for external tools (typically to a local server) */
TArray<FString> LocalRedirectUrls;
FGetAuthConfigResponse();
virtual ~FGetAuthConfigResponse() override;
virtual void Serialize(FJsonSerializerBase& Serializer, bool bFlatObject) override;
};