Open Closed

Blazor WebApp login issues with tenant resolution and Wasm #9431


User avatar
0
simix.markus created

Hello, The Blazor WebApp template isn't working with tenant resolution and WebAssembly. My problem seems very like this one, but I'm not using tiered. None of the suggestions worked. https://github.com/abpframework/abp/issues/19965

Steps to reproduce the issue

  • Run the solution https://www.dropbox.com/t/DELETED
  • Create a tenant t1
  • Login in tenant: https://t1.localhost:44334/
  • The login works and keep logged for 2 seconds, after the page is reloaded (WebAssembly) and isn't authenticated anymore.

Solution configuration:

  • Template: app
  • Created ABP Studio Version: 0.9.26
  • Current ABP Studio Version: 0.9.26
  • Tiered: No
  • Multi-Tenancy: Yes
  • UI Framework: blazor-webapp
  • Theme: leptonx
  • Theme Style: system
  • Theme Menu Placement: side
  • Run Install Libs: Yes
  • Database Provider: ef
  • Database Management System: postgresql
  • Separate Tenant Schema: No
  • Create Initial Migration: Yes
  • Run Db Migrator: Yes
  • Mobile Framework: none
  • Public Website: No
  • Social Login: Yes
  • Include Tests: Yes
  • Kubernetes Configuration: Yes
  • Distributed Event Bus: none
  • Use Local References: No
  • Optional Modules:
    • GDPR
    • TextTemplateManagement
    • LanguageManagement
    • AuditLogging
    • OpenIddictAdmin
  • Create Command: abp new DemoLogin -t app --ui-framework blazor-webapp --database-provider ef --database-management-system postgresql --theme leptonx --without-cms-kit --dont-run-bundling -no-file-management
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I removed your Dropbox download link. I will check your app.

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I use local.test as a domain and you need to change it below:

    test.local.test test is the tenant name.

    public class CookieHandler : DelegatingHandler, ITransientDependency
    {
        protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
        {
            request.SetBrowserRequestCredentials(BrowserRequestCredentials.Include);
            return base.SendAsync(request, cancellationToken);
        }
    }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    simix.markus created

    Working, thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.