Open Closed

/connect/token #9668


User avatar
0
1198462239 created

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

Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • Exception message and full stack trace:
  • Steps to reproduce the issue:

4 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    To obtain a JWT token from an ABP-based application, you typically use the /connect/token endpoint, which is provided by IdentityServer or OpenIddict in ABP solutions. The endpoint expects a POST request with the appropriate parameters, such as grant_type, client_id, client_secret, username, password, and scope.

    Example request (using Resource Owner Password Credentials flow):

    POST https://<your-abp-app>/connect/token
    Content-Type: application/x-www-form-urlencoded
    
    grant_type=password
    &client_id=YourClientId
    &client_secret=YourClientSecret
    &username=admin
    &password=YourPassword
    &scope=YourApiScope
    

    Replace the placeholders with your actual values. The response will include an access_token if the credentials are valid.

    If you are using a development environment, make sure your API is running and accessible at the specified URL. Also, ensure that the client is configured in your IdentityServer/OpenIddict settings.

    No verified source available for this specific query.


    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Could you provide more information about your case?

    Thanks.

  • User Avatar
    0
    1198462239 created

    After logging in on the login page, if the '/connect/token' call is not made, the tenant ID cannot be obtained.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can pass the __tenant parameter to the HTTP request manually before getting an access token.

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 16, 2025, 10:35