hi
We currently can't implement the above functions in wasm due to the limitation of blazor.
HI
Is there any messages in the logs?
hi beuko
Can you share your full code about extending-data-transfer-objects?
hi
Can you check the tokenProvider and purpose?
https://github.com/dotnet/aspnetcore/blob/52eff90fbcfca39b7eb58baad597df6a99a542b0/src/Security/samples/Identity.ExternalClaims/Pages/Account/ConfirmEmail.cshtml.cs#L34
https://github.com/dotnet/aspnetcore/blob/af9bb41d623b17eec946029815db5554b73be156/src/Identity/Extensions.Core/src/UserManager.cs#L1495
@m.duecker Many thanks. 👍
hi @hansmogren
Please create a demo project and send it to me, I will change it just like the free template. liming.ma@volosoft.com
hi hansmogren
You should use MyProjectNameMigrationsDbContext in CreateDatabaseAndGetConnection method.
I'm using the free template, What is your app type? tiered or separate-tenant-schema?
hi pvaz
I think you can redirect user to any page.
if (!CurrentUser.IsAuthenticated)
{
//redirect to /Account/Login
}
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.controllerbase.redirect?view=aspnetcore-5.0
hi pvaz
You can call ChallengeAsync in yourOnGetAsync method of IndexModel for MVC tiered application.
public class IndexModel : MyProjectNamePageModel
{
public async Task OnGetAsync()
{
if (!CurrentUser.IsAuthenticated)
{
await HttpContext.ChallengeAsync("oidc");
}
}
public async Task OnPostLoginAsync()
{
await HttpContext.ChallengeAsync("oidc");
}
}