Fill up the values as shown in the image. A new panel will open up with different values.Select Get New Access Token from the same panel.Select Oauth 2.0 authorization from the drop-down.Go to your Postman application and open the authorization tab.To learn more please refer OAuth 2.0 tutorial. Note: Remember these are confidential values and should not be shared. Hit Submit and you will receive a Client Id and Client Secret.This is the registered server address of the application from which you will be calling. This should be same in both application and the server. Note: Callback URL is used to know the registered address of the application from which you will be calling the imgur api. Fill the boxes with appropriate inputs as shown below.Make sure you are logged in to imgur using your username and password. For registration, first sign up to imgur website and then go to the following URL to register your application. In this section we will generate the token using OAuth in Postman.We will be following the same flow here too. But to hit the authorization server, your application must be registered. Remember in the last tutorial about the OAuth 2.0 Authorization flow we discussed that an access token can be generated through the authorization server. How To Generate Access Token using OAuth 2 in Postman? Let's see then how to generate an Access token. This means that this endpoint requires Authentication to access the resource. Note: This is the endpoint for fetching your images from your account in imgur.Ģ.Authentication error will occur and 401 Unauthorized status will be returned. You can also use any other company's API which uses OAuth 2 flow.īut before that lets just see what happens when we hit the secured endpoint without authorization. For this, we will use imgur website API which is an online image sharing community. In this tutorial we will be using Postman to see the workflow of OAuth 2.0. This tutorial is designed to make you completely understand the concept along with the practical example. OAuth 2.0 Authorization with Postman OAuth 2.0 Authorization with Postman? In the last tutorial we learnt everything about OAuth 2.0 Authorization, its's advantages, meaning and workflow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |