Open Closed

How do I generate the login url with selected tenant and send email with url on new register user? #7009


User avatar
0
vipulbuoyancy created
  • ABP Framework version: v8.1.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: Hello

How to generate a login url with the tenant selected like below? "https://localhost:44387/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3DDemo_App%26state%3DZjVrWjh4ZT456978FaY34zd1dtR05Pd0JkVm0xVDkyZXZoUEY0empFeGVxNW8y;%25252F%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A4200%26scope%3Dopenid%2520offline_access%2520Demo%26code_challenge%3D35oANtgnbuoIhsr6542Hl52gEVvJkPKBuwVGxVyJMJ0%26code_challenge_method%3DS256%26nonce%3DZjVrWjh4ZTluSkFaY34zd1dt987450JkVm0xVDkyZXZoUEY0empFeGVxNW8y%26culture%3Den%26ui-culture%3Den%26returnUrl%3D%252F"

How can we send email with the above login url on add/register new user from application?

Thanks


3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    please check similar issue https://support.abp.io/QA/Questions/5012/Invite-user-to-login-OR-have-email-address-domains-related-to-tenancy if it helps you.

    Thanks

  • User Avatar
    0
    vipulbuoyancy created

    Hello,

    Thank you for support

    I need a login URL and send an email include the URL. Users should click on the login url from email and redirect to the login page with the selected tenant.

    Thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can use the URL:

    https://localhost:44387/Account/Login?returnUrl=http://localhost:4200/account/login&__tenant=test

    • https://localhost:44387 is the Authserver URl
    • http://localhost:4200 is the Angular URL
    • __tenant=test is your tenant name
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-rc.1. Updated on June 18, 2025, 12:26