17 lines
642 B
C#
17 lines
642 B
C#
// Copyright (c) StellaOps. Licensed under the BUSL-1.1.
|
|
|
|
namespace StellaOps.Timeline.WebService.Security;
|
|
|
|
/// <summary>
|
|
/// Named authorization policy constants for the Timeline service.
|
|
/// Policies are registered via AddStellaOpsScopePolicy in Program.cs.
|
|
/// </summary>
|
|
internal static class TimelinePolicies
|
|
{
|
|
/// <summary>Policy for reading timeline events and replay status. Requires timeline:read scope.</summary>
|
|
public const string Read = "Timeline.Read";
|
|
|
|
/// <summary>Policy for exporting and triggering replay operations. Requires timeline:write scope.</summary>
|
|
public const string Write = "Timeline.Write";
|
|
}
|