/// <summary>
        /// Initializes a new instance of the <see cref="RegistrationManager" /> class.
        /// </summary>
        /// <param name="httpContext">The context.</param>
        public RegistrationManager(HttpContextBase httpContext)
        {
            this.loginManager = new LoginManager(httpContext);
            var isLocal = httpContext.IsDebuggingEnabled && httpContext.Request.IsLocal;
            var website = httpContext.GetWebsite();

            this.Settings = website.GetAuthenticationSettings(isLocal);
            this.AzureAdOrExternalLoginEnabled = this.Settings.ExternalLoginEnabled || this.loginManager.StartupSettingsManager.AzureAdOptions != null;
            this.loginManager.IdentityErrors   = this.IdentityErrors = website.GetIdentityErrors(httpContext.GetOwinContext());
            this.IsExternalRegistrationEnabled = this.loginManager.StartupSettingsManager.ExternalRegistrationEnabled;
        }
Ejemplo n.º 2
0
 public ApplicationUserManager(IUserStore <ApplicationUser> store, MembershipProviderMigrationStore <string> migrationStore, CrmIdentityErrorDescriber identityErrors)
     : base(store, migrationStore, identityErrors)
 {
 }
Ejemplo n.º 3
0
 public ApplicationInvitationManager(IInvitationStore <ApplicationInvitation, string> store, CrmIdentityErrorDescriber identityErrors)
     : base(store, identityErrors)
 {
 }
Ejemplo n.º 4
0
 public ApplicationUserManager(IUserStore <ApplicationUser> store, CrmIdentityErrorDescriber identityErrors)
     : base(store, identityErrors)
 {
 }