/// <summary> /// Configures per-tenant authentication behavior. /// </summary> /// <param name="config">Authentication options config</param> /// <returns>The same MultiTenantBuilder passed into the method.</returns> public static FinbuckleMultiTenantBuilder <TTenantInfo> WithPerTenantAuthentication <TTenantInfo>(this FinbuckleMultiTenantBuilder <TTenantInfo> builder, Action <MultiTenantAuthenticationOptions> config) where TTenantInfo : class, ITenantInfo, new() { builder.WithPerTenantAuthenticationCore(config); builder.WithPerTenantAuthenticationConventions(); builder.WithRemoteAuthenticationCallbackStrategy(); return(builder); }