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,.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 08, 2025, 09:55