Esempio 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);
        }
Esempio n. 2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && _userManager != null)
            {
                _userManager.Dispose();
                _userManager = null;
            }

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

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