Testing with OAuth2 and Postman
Asked Answered
H

1

5

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

So far I can get the following to work:

  1. Call the API and get a token

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

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

I am just not sure how to go about doing this with PostMan?

Halfbound answered 13/2, 2015 at 10:59 Comment(0)
P
10

Click on Headers

then add

Authorization

as Header

and

Bearer 62f6109dcbce42b38f9117b21529faf30fc0ee86

as Value

enter image description here

Pemba answered 13/2, 2015 at 11:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.