Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Extending linked accounts ? #9179


User avatar
0
tapio.muikku created

Hi, We have a specific need with linked accounts to mark one of them as preferred account. Currently userAcciount class is in Abp.Zero.Common library, and not as asbtract. i could change this, but it would cause probably some merging issues with new releases coming from Zero side, right ?

**Background to question

Our solution is multitenant application, but this should shall invisible to users. Thus there is no tenant selection during login. Login is allowed only thru an external provider; which is a strong authentication provider. This cannot be associated to any tenant either.

Login flow:

  1. User comes to application main page; and performs login in external provider
  2. Application receives unique identifier (social security number)
  3. With this identifier we search all users and useraccounts from the database.

I would like to have an option that user can mark (from UI) which of the accounts is the preferred one.

Any thoughts on your side ?

  • Useraccount as an abstract class ?
  • IsDefault flag on UserAccount class ?

Do you forsee that any of these might be doable on Zero platfrom directly

Regards, Tapio


1 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @tapio.muikku

    Since our system is not designed to get tenant information from external login it need some more changes. You can follow that to implement it. But yes you may have merge conflicts when you update zero's version. https://support.aspnetzero.com/QA/Questions/9046/DefaultExternalAuthenticationSource---How-to-change-the-Tenant#answer-b1d83e07-6437-69c8-0f11-39f5a64d52e9