Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing with OAuth2 and Postman

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?

like image 610
HappyCoder Avatar asked Feb 13 '15 10:02

HappyCoder


1 Answers

Click on Headers

then add

Authorization

as Header

and

Bearer 62f6109dcbce42b38f9117b21529faf30fc0ee86

as Value

enter image description here

like image 157
Purple Hexagon Avatar answered Sep 21 '22 02:09

Purple Hexagon