Open Closed

"Log in with this user" button not visible #8023


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

I created a new ABP project and ran it without making any configuration changes, but the "Log in with this user" button is not visible. I would appreciate your assistance in identifying what settings or configurations I should check to resolve this issue.


17 Answer(s)
  • User Avatar
    0
    serhatuysal created

    The logged-in user is an admin, and the 'Impersonation' permission appears to be active in the role settings.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    When you logged in as an admin then it doesn't show that option

    In this example I have created new user and set admin role to new user Anjali

    I get that option for new user

    It means when you create new users you will get 'Log in with this user' option. I hope you understand the flow. Please let me know if anything else needed. Thanks,

  • User Avatar
    0
    serhatuysal created

    Yes, I know it won't appear for the admin user, but in the scenario you mentioned, it's not appearing either. I forgot to mention that earlier.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    Oh ok is that the case, let me check again.

    Thanks

  • User Avatar
    0
    serhatuysal created

    I tried the Layered Authentication Server in both a separated and a non-separated project, but the same issue occurred. :(

  • User Avatar
    0
    serhatuysal created

    I think I noticed something: when I included the source code of the module in the Angular project with 'abp add-module Volo.Identity.Pro', the 'log in with this user' button appeared, but when I installed the original '@volo/abp.ng.identity': '~8.3.0', it doesn't show up. I'm not sure if there's an issue with the library.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    This issue is already resolved. You may check here https://abp.io/docs/commercial/latest/abp-framework-vs-abp-commercial Impersonation feature is provided for Pro modules only

    Thanks,

  • User Avatar
    0
    serhatuysal created

    We are already commercial members, so why wasn't the project created with the *.pro versions when we generated it through ABP Studio?

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Hello, this problem should have been solved by this release with this PR.

  • User Avatar
    0
    serhatuysal created

    Seems like we opened a ticket for nothing, huh?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    Thanks for your findings I will close the issue and will refund your ticket.

    :)

  • User Avatar
    0
    serhatuysal created

    But the projects created are still 8.3.0 and not using volo/abp.ng.identity Pro.

  • User Avatar
    0
    serhatuysal created

    My issue still persists even after upgrading the ABP version to 8.3.1.

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Can you try adding this

    impersonation: {
        userImpersonation: true,
        tenantImpersonation: true,
    },
    

    for your oAuthConfig that is in environment.ts

  • User Avatar
    0
    serhatuysal created

    import { Environment } from '@abp/ng.core';

    const baseUrl = 'http://localhost:4200';

    const oAuthConfig = { issuer: 'https://localhost:44331/', redirectUri: baseUrl, clientId: 'AbpSolution7_App', responseType: 'code', scope: 'offline_access AbpSolution7', requireHttps: true, impersonation: { userImpersonation: true, tenantImpersonation: true, }, };

    export const environment = { production: false, application: { baseUrl, name: 'AbpSolution7', }, oAuthConfig, apis: { default: { url: 'https://localhost:44331', rootNamespace: 'AbpSolution7', }, AbpAccountPublic: { url: oAuthConfig.issuer, rootNamespace: 'AbpAccountPublic', }, }, } as Environment; Is it like this?

  • User Avatar
    0
    serhatuysal created

    Yes, it worked this way. Are there any other similar features we should be aware of? I couldn't find any information about this in the documentation. In previous versions, we didn’t have to configure it like this.

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    This would be enough for this newly added feature. The documentation will be updated accordingly.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 17, 2025, 10:38