18 lines
509 B
C#
18 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();
|
||
|
}
|