Open Closed

How to get User Token from regulaer ABP Application #3370


User avatar
0
oshabani created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi,

i am trying to consume an API of an abp commercial application (which is not API application) from a ASP.NET API Application (not ABP)

i have try to "use /api/account/login" api to get the token using Postman but no luck at all , here are the result from Postman

i have try to use Restsharp library to consume the API but all the time i got HTML in my response which is the Login Page of the ABP application

any suggestions?


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

    hi

    I suggest you use the Identity Server to get the access token, then call the API.

    The template already included the Identity server by default.

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 25, 2025, 11:10