We have created new controller called passwordless2
Please share code of passwordless2
hi
https://github.com/abpframework/abp-samples/pull/103
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Identity;
using Volo.Abp.Identity.AspNetCore;
namespace PasswordlessAuthentication.Web.Controllers
{
public class PasswordlessController : AbpController
{
protected IdentityUserManager UserManager { get; }
protected AbpSignInManager SignInManager { get; }
public PasswordlessController(IdentityUserManager userManager, AbpSignInManager signInManager)
{
UserManager = userManager;
SignInManager = signInManager;
}
public virtual async Task<IActionResult> Login(string token, string userId)
{
var user = await UserManager.FindByIdAsync(userId);
var isValid = await UserManager.VerifyUserTokenAsync(user, "PasswordlessLoginProvider", "passwordless-auth", token);
if (!isValid)
{
throw new UnauthorizedAccessException("The token " + token + " is not valid for the user " + userId);
}
await UserManager.UpdateSecurityStampAsync(user);
await SignInManager.SignInAsync(user, isPersistent: false);
return Redirect("/");
}
}
}
hi
This is fixed in 4.4.2. Can you try to upgrade?
https://zoom.us/j/97169875896?pwd=b2ZFRjc3VFZUTkZpeFE2TlN4NjZwdz09
hi
Can you share a simple project?
hi
Can you try another solution?
https://gist.github.com/ebicoglu/f7cd77069fa053cbe9cf9e9ffcc2f2d2
HI
Can you try to StartWithoutDebugging
instead of StartDebugging
?
https://docs.microsoft.com/en-us/visualstudio/containers/launch-profiles?view=vs-2019#create-a-launch-profile-that-uses-a-docker-compose-profile
Please share the error details.