0
Spospisil created
- ABP Framework version: v7.3.0
- UI Type: Blazor WASM
- Database System: EF Core (PostgreSQL, etc..)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
Using a tiered solution architecture generated from ABP, I would like to put a login button on the public web site that when the user successfully logs on will redirect to the Blazor WASM url instead of going back to the public web site as is currently the case with the out of box generated solution from ABP.
How can I accomplish this?
2 Answer(s)
-
0
Hi,
You can try:
Update the Public website's
appsettings.json
to addRedirectAllowedUrls
"App": { "SelfUrl": "https://localhost:44304", "DisablePII": false, "RedirectAllowedUrls": "https://localhost:44307" // your blazor website URL },
Open the
YourProjectNameWebPublicModule
to configure theAppUrlOptions
Configure<AppUrlOptions>(options => { options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"]; options.RedirectAllowedUrls.AddRange(configuration["App:RedirectAllowedUrls"]?.Split(',') ?? Array.Empty<string>()); // add this line });
Finally, add the login button to the page
<a class="btn btn-primary" href="/Account/Login?returnUrl=https://localhost:44307">login to blazor</a>
-
0
Thank you. That was the solution to my issue.