Base solution for your next web application
Open Closed

How to create magic link in our application #11262


User avatar
0
shedspotter created

What is your product version? 11.0.0

What is your product type (Angular or MVC)? Angular

What is product framework type (.net framework or .net core)? .NET 6

Hi, we want to create magic link with unique URL per user basis, so that if user clicks on that link the user will be directly login to our application with outentering email address and password

Thanks


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shedspotter

    This feature is on our roadmap for this year. But, for now, you may use https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp/Runtime/Security/SimpleStringCipher_NetStandard.cs class to encrypt UserId and TenantId and check that values from the magic link's redirected controller on your app and login the user if those values are decrepyted correctly.

    But, please consider the risks of the implementation on your own.

  • User Avatar
    0
    shedspotter created

    Hi @ismcagdas thanks for the info can you please let me know when will this feature is available in this year or is there any specifc date for this feature release date ? can you please explain what are the risk of implementing this feature if I am going to implement it using the git hub link which you have shared

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    As long as you don't expose your key, using SimpleStringCipher is safe. Our first gaol is to upgrade AspNet Zero to .NET 7. Then, we will decide to implement this feature or not but if we implement it, it will be end of this year.

  • User Avatar
    0
    nexgenvisibility created

    Hi,

    As long as you don't expose your key, using SimpleStringCipher is safe. Our first gaol is to upgrade AspNet Zero to .NET 7. Then, we will decide to implement this feature or not but if we implement it, it will be end of this year.

    Did this feature ever get implemented? If not do you have a guide or workaround on how it can be implemented?

    We would like to be able to generate a unique magic link for a user to allow a user to sign into the app directly without username or password credentials.

    @ismcagdas