Testing with OAuth2 and Postman

I am using ZF2 Apigility and am working on setting up the OAuth2 workflow for the API I am writing.

So far, I can make the following work:

  • Call API and get token

    {
    
    "access_token": "62f6109dcbce42b38f9117b21529faf30fc0ee86",
    "expires_in": 3600,
    "token_type": "Bearer",
    "scope": null
    }
    

Now I know that I need to use this token in the headers of my next request in order to access my API.

I'm just not sure how to do this with PostMan?

+4
source share
1 answer

Click title

then add

Login

as a title

and

Media 62f6109dcbce42b38f9117b21529faf30fc0ee86

as value

enter image description here

+9
source

All Articles