/* * SPDX-License-Identifier: AGPL-3.0-or-later * Copyright (C) 2025 Sergej Görzen * This file is part of OmiLAXR. */ using System; namespace OmiLAXR.Endpoints { /// /// Represents configuration for Bearer token authentication. /// Stores endpoint URL and authentication token. /// [Serializable] public struct BearerAuth { // Stores the endpoint URL for the authentication service public string endpoint; // Stores the authentication bearer token public string token; /// /// Initializes a new instance of BearerConfig with the specified endpoint and token. /// /// The URL of the authentication endpoint /// The bearer authentication token public BearerAuth(string endpoint, string token) { this.endpoint = endpoint; this.token = token; } public override string ToString() { return $"[BearerAuth endpoint={endpoint}, token={token}]"; } } }