Open Closed

Unable to get access token in request response. #7044


User avatar
0
Sergei.Gorlovetsky created
  • ABP Framework version: 8.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)

I am using the [Authorize] attribute as mentioned here: https://docs.abp.io/en/abp/latest/Authorization

With that, I want to test the APIs via Postman and to do that, I need to get an Access Token for authorization.

I am using the /api/account/login endpoint and I see that the token is being stored in cookies. But I want to get that in the request response.

Please can someone direct me to its documentation or any samples?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    hi

    You can get an access token from the /connect/token endpoint.

    client_id:MyProjectName_App
    grant_type:password
    username:admin
    password:1q2w3E*
    scope:MyProjectName  offline_access
    

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Sergei.Gorlovetsky created

    Thank you. It works.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Good news.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.