Starts in:
2 DAYS
6 HRS
57 MIN
32 SEC
Starts in:
2 D
6 H
57 M
32 S
Open Closed

OpenIdDict Passwordless Authentication #4299


User avatar
0
cangunaydin created

Hello, I have a case that i need to apply passwordless authentication for my project. I use seperated auth server with openiddict. What i want to do is,

  • get an email address from the user
  • check if that email address is in my database. (this is an email not stored in AbpUsers table)
  • if so create a code and send that code to user's email address.
  • Show a textbox for verification
  • if the user input is the same with the code sent, sign in the user.
  • Apply refreshtoken when the login is expired.

Is there any code sample so i can take a look or any resources that i can use? I was thinking to extend the Login page from Volo.Abp.Account.Pro.Public.Web. Is sth else needed like Extending authorize method of OpenIdDict module? Also how should i think about refreshtoken in this case?

I have blazor web assembly front end and .net maui app that will use this kind of auth.

Thanks in advance.


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

    hi

    There is an article and code.

    https://community.abp.io/posts/implementing-passwordless-authentication-with-asp.net-core-identity-c25l8koj https://github.com/abpframework/abp-samples/tree/master/PasswordlessAuthentication

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06