Exemplo n.º 1
0
        public async Task <ClaimsIdentity> GenerateUserIdentityAsync(IMainUserManager manager, string authenticationType)
        {
            // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
            var userIdentity = await manager.CreateIdentityAsync(this, authenticationType);

            // Add custom user claims here
            return(userIdentity);
        }
Exemplo n.º 2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && _userManager != null)
            {
                _userManager.Dispose();
                _userManager = null;
            }

            base.Dispose(disposing);
        }
Exemplo n.º 3
0
 public PhoneBookController(IMainUserManager mainUserManager)
 {
     _mainUserManager = mainUserManager;
 }
Exemplo n.º 4
0
 public AccountController(IMainUserManager userManager,
                          ISecureDataFormat <AuthenticationTicket> accessTokenFormat)
 {
     UserManager       = userManager;
     AccessTokenFormat = accessTokenFormat;
 }
Exemplo n.º 5
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && _userManager != null)
            {
                _userManager.Dispose();
                _userManager = null;
            }

            base.Dispose(disposing);
        }
Exemplo n.º 6
0
 public AccountController(IMainUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat)
 {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
 }
Exemplo n.º 7
0
 public PhoneBookController(IMainUserManager mainUserManager)
 {
     _mainUserManager = mainUserManager;
 }