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?


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
    

  • User Avatar
    0
    Sergei.Gorlovetsky created

    Thank you. It works.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Good news.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11