Open Closed

How can be redirect to angular with user auto login after confirm email using ABP Commercial Microservice Template #4725


User avatar
0
Abhishek_Sharma created

Hi Support,

I'm Abhishek and i'm working on ABP Commercial Microservice Template

I have a requirement

  1. Create account that is done,
  2. Once account is created user get Confirmation Email in their inbox,
  3. Once user click on email confirmation link he just redirect to Auth server where we have Email Confirmation method working,

Now what I need that I need that user to login in this method Login is completed with Password Less Authentication and user is logged in Auth server and what I need is I need to redirect back That User in Angular with logged in state,

So I'm Confused at this point that how do I set my return URL and where do I set , How do I redirect back that user from my SSO to Angular How do I attach return URL once user is successfully login.

How can be redirect to angular with user auto login after confirm email????

I hope someone help me asap as I'm really looking solution for this on a priority.

Thanks. :)


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

    hi

    You can override the SendEmailConfirmationLinkAsync method of AccountEmailer(account/src/Volo.Abp.Account.Pro.Public.Application/Volo/Abp/Account/Emailing/AccountEmailer.cs)

    Implementing Passwordless Authentication in ASP.NET Core Identity

    You can pass an access_token to angular, and then complete the login. The angular team will reply to you.

    eg: http://localhost:4200?token=abcedfg

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