打开 关闭

Postman and OpenIdDict authentication #3978


User avatar
0
ianbaddock 创建

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v6.0.0
  • UI type: MVC
  • DB provider: EF Core

With the migration from identity server to OpenIdDict, how do we perform the postman authentication flow. If we wish to allow external clients to connect to our API, what is the auth method we use. With identity server, it would be the client_id/client_secret.

what do we use now?


4 答案
  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    Identityserver and OpenidDict both implemented OAuth , so you can still use the client_id/client_secret

  • User Avatar
    0
    ianbaddock 创建

    Could you provide some screenshots of a working postman with login returning a bearer token and then using that in postman for a simple get request.

    I managed to create an OpenIdDict login which returned a token. I tried to use the token as a bearer token on the next request but it is returning a 401.

  • User Avatar
    1
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    I managed to create an OpenIdDict login which returned a token. I tried to use the token as a bearer token on the next request but it is returning a 401.

    What's the error log?

    BTW, don't forget to add scope

  • User Avatar
    0
    ianbaddock 创建

    Perfect, thanks. It is working.

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