/// <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; }
public ApplicationUserManager(IUserStore <ApplicationUser> store, MembershipProviderMigrationStore <string> migrationStore, CrmIdentityErrorDescriber identityErrors) : base(store, migrationStore, identityErrors) { }
public ApplicationInvitationManager(IInvitationStore <ApplicationInvitation, string> store, CrmIdentityErrorDescriber identityErrors) : base(store, identityErrors) { }
public ApplicationUserManager(IUserStore <ApplicationUser> store, CrmIdentityErrorDescriber identityErrors) : base(store, identityErrors) { }