Open Closed

LoginAs functionality in API #9208


User avatar
0
viswajwalith created

ABP Framework version: v7.3.2 UI Type:MVC Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB Tiered (for MVC) or Auth Server Separated (for Angular): yes

We intend to implement a "Login As" functionality in an external application (not a traditional web UI). We require an API that can generate an impersonation token, allowing us to access user-specific data (such as organization details, property settings, and other personalized configurations).

All authentication and impersonation processes must be handled entirely via APIs, with no dependency on browser-based or UI interactions.


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

    hi

    You can add a new OpenIddict grant type.

    Pass your current user access token and generate a specific user access token.

    https://abp.io/community/articles/how-to-add-a-custom-grant-type-in-openiddict.-6v0df94z

    Download the Account.Pro source code to check the ImpersonationExtensionGrant.

    Thanks,.

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.3.0-preview. Updated on May 12, 2025, 05:22