Open Closed

Multiple Applications using single Identity Server #1801


User avatar
0
abpdeveloper@dbizsolution.com created

We are facing issue in establishing multiple applications setup with ABP Module Template.

1)How to Authenticate Multiple ABP.io Commercial Applications (Main App [with Auth], App1[Auth Redirec to Main App], App2 [Auth Redirec to Main App]..) with single Main Application and return to Original Application via Angular UI 2) While generating App 2 using Application Template , it is additionally generating the User,Permission tables as well in the App 2 which actually has to be maintained in the Main Application. How to avoid this getting generated,Pls refer screen shot. 3) Also How to verify the User Permissions in the App 2 which is authenticated from the Main Application.


48 Answer(s)
  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Hi

    I am creating a new tenant from the Main App and trying to login using the tenant user credentials it is not logging in and says invalid username or email address.When I verified the table AbpUsers it is not having the user entry for the created tenant but SaaStenant has tenant details.

    Why the user is not created automatically for the new tenant created. Also how to access rights to the new users.

    Any update on this as well pls its urgent

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I am creating a new tenant from the Main App and trying to login using the tenant user credentials it is not logging in and says invalid username or email address.When I verified the table AbpUsers it is not having the user entry for the created tenant but SaaStenant has tenant details.

    How reprodice it? I use ABP CLI to create a new project and it works fine. could you provide steps? thanks.

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Hi,

    I am creating a new tenant from the Main App and trying to login using the tenant user credentials it is not logging in and says invalid username or email address.When I verified the table AbpUsers it is not having the user entry for the created tenant but SaaStenant has tenant details.

    How reprodice it? I use ABP CLI to create a new project and it works fine. could you provide steps? thanks.

    Hi Can we do a screen sharing session, so it will be better to show you.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    OK, we can, please send email to me.

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Hi,

    OK, we can, please send email to me.

    I don't have your email. https://meet.google.com/zng-kneo-ron

    Pls suggest a time for the call today. This is the meeting link

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    shiwei.liang@volosoft.com

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Hi

    The Authorization check for MultiTenant and mobile based login, which you have suggested is not working. Need your help to address it. It is of high priority.

    Sent a mail to your mailid a screen sharing session

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can you share some screenshots and logs?

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Can you share some screenshots and logs?

    Hi It is very difficult to explain in screenshots and logs. Pls suggest a time for a screen sharing tomorrow morning. This is urgent.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Okay,

    No problem, please send email to me.

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Hi

    The Following points were discussed with Shiwei Liang and it seems he is on vacation. Need support from anyother person.

    These are the points which needs to be resolved on high priority.

    1. Tenant based login - AbpUsers, AbpUserRoles - StoreManager,Admin,HR - High level people
    2. Tenant based Token Generation for Login (API)- Mobile App
    3. To Configure Roles in BIMS with BDairy Feature list.(Screen Permissions)
    4. How to remove the Additional tables like AbpUsers in BIMS BDairy
    5. How to do Redis Configuration
    6. HTTPS in deployment
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please create some new questions, Explain your question in detail separately.

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    hi

    Please create some new questions, Explain your question in detail separately.

    The Architecture is configured as per the points listed below.

    Step1: We have split the applications with common Identity Server. Step2: BIMS is one main application which handled users and their accesses Step3: BIMS_BDairy is another application which uses the Identity Server of BIMS

    We need solution for addressing these points.

    1)Tenant based login - AbpUsers, AbpUserRoles - StoreManager,Admin,HR - High level people

    Step1: We will have tenants created in our main application (BIMS) Step2: We will have users created logins created against these tenants, Step3: At the Service level we need to validate this user with his credentials and allow access to the Service with the approriate tenant and user details set in the context.

    This is not working now, it works only for Host login and not for Tenant Login. This needs to be addressed

    2)Tenant based Token Generation for Login (API)- Mobile App

    Step1: We are having a Mobile Application in which these tenant users will login using the mobile App using say EmployeeID and not his/her username or password Step2: We need to validate the user against the credentials and generate token to access the Services.

    3)To Configure Roles in BIMS with BDairy Feature list.(Screen Permissions)

    Step1: We have split the applications with common Identity Server. Step2: BIMS is one main application which handled users and their accesses Step3: BIMS_BDairy is another application which uses the Identity Server of BIMS Step4: How do i get the permission of BDairy in BIMS for the user to set access in the BIMS Application using the permissions tab

    4)How to remove the Additional tables like AbpUsers in BIMS BDairy

    Step1: We have split the applications with common Identity Server. Step2: BIMS is one main application which handled users and their accesses Step3: The same users,login,clients etc tables are created also in BDairy how to avoid this as this has to be at BIMS level and not in BDairy

    5)How to do Redis Configuration

    Step1:How to do Redis Configuration in Windows server for Production. Need documentations for the same.

    6)HTTPS in deployment

    Step1: When we deploy the AppServices BIMS and BDairy in IIS and configure https for these service, it throws as invalid uri exception. It works when we provide only Http. Step2: We have cross refernence calls like from BDairy AppService we will call a method in the BIMS AppService for fetching some data

  • User Avatar
    0
    alper created
    Support Team Director

    this is a consultancy topic and not direclty related to ABP code base. if you face a concrete problem in ABP code we would like to help you.

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    this is a consultancy topic and not direclty related to ABP code base. if you face a concrete problem in ABP code we would like to help you.

    Hi

    this is related to ABP Framework, shiwei.liang@volosoft.com was looking into it and he acknowledged to help out in resolving these issues. Unfortunately he is on vacation.

    This on the framework that the Common Identity server is unable to Login with Tenant Login and No Proper Document is provided

    No Documentation to Configure or Setup Another Application which uses Common ABP Identity server to setup roles for the Consumer App

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    this is a consultancy topic and not direclty related to ABP code base.
    if you face a concrete problem in ABP code we would like to help you.

    Hi

    this is related to ABP Framework, shiwei.liang@volosoft.com was looking into it and he acknowledged to help out in resolving these issues. Unfortunately he is on vacation.

    This on the framework that the Common Identity server is unable to Login with Tenant Login and No Proper Document is provided

    No Documentation to Configure or Setup Another Application which uses Common ABP Identity server to setup roles for the Consumer App

    Do we have any Updates on this Issues?

    its been 5days. we are in release mode and need to conclude ASAP

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    1)Tenant based login - AbpUsers, AbpUserRoles - StoreManager,Admin,HR - High level people

    See https://docs.abp.io/en/abp/latest/Multi-Tenancy#determining-the-current-tenant You need to pass the tenant argument, like:

    var tokenResponse = await client.RequestPasswordTokenAsync(new PasswordTokenRequest
    {
        Address = disco.TokenEndpoint + "?__tenant=....",
        ClientId = _configuration["IdentityClients:Default:ClientId"],
        ClientSecret = _configuration["IdentityClients:Default:ClientSecret"],
        UserName = _configuration["IdentityClients:Default:UserName"],
        Password = _configuration["IdentityClients:Default:UserPassword"],
        Scope = _configuration["IdentityClients:Default:Scope"]
    });
    

    2)Tenant based Token Generation for Login (API)- Mobile App

    You can check : https://stackoverflow.com/questions/44172221/generate-access-token-with-identityserver4-without-password

    3)To Configure Roles in BIMS with BDairy Feature list.(Screen Permissions)

    You need reference the applicllation.contarct project to load prmission definitions

    4)How to remove the Additional tables like AbpUsers in BIMS BDairy

    You just need to unintall the module you don't want and create&apply migration file

    5)How to do Redis Configuration

    You just need to install redis server and configure connection string.

    6)HTTPS in deployment

    What is the error log?

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    1)Tenant based login - AbpUsers, AbpUserRoles - StoreManager,Admin,HR - High level people

    See https://docs.abp.io/en/abp/latest/Multi-Tenancy#determining-the-current-tenant You need to pass the tenant argument, like:

    var tokenResponse = await client.RequestPasswordTokenAsync(new PasswordTokenRequest 
    { 
        Address = disco.TokenEndpoint + "?__tenant=....", 
        ClientId = _configuration["IdentityClients:Default:ClientId"], 
        ClientSecret = _configuration["IdentityClients:Default:ClientSecret"], 
        UserName = _configuration["IdentityClients:Default:UserName"], 
        Password = _configuration["IdentityClients:Default:UserPassword"], 
        Scope = _configuration["IdentityClients:Default:Scope"] 
    }); 
    

    2)Tenant based Token Generation for Login (API)- Mobile App

    You can check : https://stackoverflow.com/questions/44172221/generate-access-token-with-identityserver4-without-password

    3)To Configure Roles in BIMS with BDairy Feature list.(Screen Permissions)

    You need reference the applicllation.contarct project to load prmission definitions

    4)How to remove the Additional tables like AbpUsers in BIMS BDairy

    You just need to unintall the module you don't want and create&apply migration file

    5)How to do Redis Configuration

    You just need to install redis server and configure connection string.

    6)HTTPS in deployment

    What is the error log?

    You need reference the applicllation.contarct project to load prmission definitions

    Can you please provide some instructions or document to perform this?

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Hi

    Point 1,2 & 3 are not working. Pls need urgent help.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We are facing issue in establishing multiple applications setup with ABP Module Template.

    I think your initial problem has been solved, please create a new question, thanks.

  • User Avatar
    0
    alper created
    Support Team Director

    hi,

    please provide us more logs and details. what did go wrong?

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    hi,

    please provide us more logs and details. what did go wrong?

    can u pls check the ticket #2048. explaind in detail.

    need urgent help

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Discuss in: https://support.abp.io/QA/Questions/2048/Framework-not-supporting-the-listed-items-Need-urgent-help

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