astral-api/Astral.Services/Interfaces/IIdentityProvider.cs
2024-12-11 20:36:30 +00:00

17 lines
509 B
C#

// <copyright file="IIdentityProvider.cs" company="alveus.dev">
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
namespace Astral.Services.Interfaces;
/// <summary>
/// Identify who the requesting user is.
/// </summary>
public interface IIdentityProvider
{
/// <summary>
/// Get the user id of the requester.
/// </summary>
/// <returns>String representing the user id, or null if none.</returns>
string GetRequestingUserId();
}