Open Closed

Postman and OpenIdDict authentication #3978


User avatar
0
ianbaddock created

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 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

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

  • User Avatar
    0
    ianbaddock created

    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 created
    Support Team 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 created

    Perfect, thanks. It is working.

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