Starts in:
1 DAY
21 HRS
12 MIN
39 SEC
Starts in:
1 D
21 H
12 M
39 S
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.

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