打开 关闭

Unable to get access token in request response. #7044


User avatar
0
Sergei.Gorlovetsky 创建
  • 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 答案
  • User Avatar
    1
    maliming 创建
    支持团队 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 创建

    Thank you. It works.

  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    Good news.

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