astral-api/Astral.Services/Interfaces/IIdentityProvider.cs

18 lines
509 B
C#
Raw Normal View History

2024-12-11 21:36:30 +01:00
// <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();
}