using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.BL.Entities; using Tango.BL.Enumerations; using Tango.MachineService.Gateway; namespace Tango.FSE.BL { /// /// Represents an simple authentication service that reports a global "CurrentUser". /// public interface IAuthenticationService { /// /// Gets the current environment configuration. /// EnvironmentConfiguration CurrentEnvironment { get; } /// /// Gets the global current user. /// User CurrentUser { get; } /// /// Throws an exception if the current user does not have the specified permission. /// /// The permission. /// Optional message. void ThrowIfNoPermission(Permissions permission, String message = null); } }