namespace ApiOPE.Security;

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class OpeAuthenticatedAttribute : Attribute
{
    public OpeAuthenticatedAttribute(string resource, bool versionOptional = false)
    {
        Resource = resource;
        VersionOptional = versionOptional;
    }

    public string Resource { get; }

    public bool VersionOptional { get; }
}
