aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Images/injection.png
blob: af1b3d5754432100a70dfccef3aa42362fe23bfb (plain)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.MachineStudio.Common.Web;

namespace Tango.MachineStudio.Common.Authentication
{
    /// <summary>
    /// Represents the Machine Studio user authentication provider responsible for the current logged-in user.
    /// </summary>
    public interface IAuthenticationProvider
    {
        /// <summary>
        /// Occurs when the current logged-in user has changed.
        /// </summary>
        event EventHandler<User> CurrentUserChanged;

        /// <summary>
        /// Gets the current logged-in user.
        /// </summary>
        User CurrentUser { get; }

        /// <summary>
        /// Performs a user login by the specified email and password.
        /// </summary>
        /// <param name="email">The email.</param>
        /// <param name="password">The password.</param>
        /// <returns></returns>
        AuthenticationLoginResult Login(String email, String password, LoginMethod method, bool bypassVersionCheck = false, Action<String> logAction = null);

        /// <summary>
        /// Logs-out the current logged-in user.
        /// </summary>
        void Logout();
    }
}
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 20 00 00 00 20 08 03 00 00 00 44 a4 8a .PNG........IHDR.............D..
0020 c6 00 00 00 03 73 42 49 54 08 08 08 db e1 4f e0 00 00 00 09 70 48 59 73 00 00 02 25 00 00 02 25 .....sBIT.....O.....pHYs...%...%
0040 01 c1 ec 97 81 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 00 77 77 77 2e 69 6e 6b 73 63 61 .........tEXtSoftware.www.inksca
0060 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 01 56 50 4c 54 45 ff ff ff 6d db db 80 bf df 5b c8 c8 70 bf pe.org..<....VPLTE...m.....[..p.
0080 cf 75 ca d5 70 cc d6 71 cc d7 64 c2 cd 65 bf ca 73 cb d9 64 c4 cd 64 c2 ce 74 cd d8 73 cc d8 74 .u..p..q..d..e..s..d..d..t..s..t
00a0