Open Closed

Email link #10494

epicadmin created


Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? -- .NET 5.0 v10.3.0
  • What is your product type (Angular or MVC)? ASP.NET CORE & Angular
  • What is product framework type (.net framework or .net core)? .net core

We have a functionality where we send an email with the application link to multiple users that will allow them to access the application. We do not want them to go to the login but to the page directly. Could you help us by providing the code to generate the link or any sample which can be used as reference.

1 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi @epicadmin

    Unfortunately we don't have such a sample but you can create a token (and an encryptedAccessToken) for the user just like the app does when user tries to login in TokenAuthController.cs and include this token to link in your email.

    Then, you can retrieve this token in your related page (Angular component) and write it to local storage (or cookies) using