[100% Working Demo!!!] HowTo Requesting OAuth2 Access Token Using Postman Tool

preview_player
Показать описание
A vlog to demonstrate how to request for access token from the OAuth2 server.

I am using Django OAuth2 Server.

Below is the sample URL and header I used.... save you typing :)

grant_type=password&
username=xybernetics&
password=password123&
client_id=AAAAbbbbCCCCddddEEEEffffGGGGhhhhIIIIjjjj&
client_secret=qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMpoiuytrewqlkjhgfdsamvcxz&

Accept
application/json

Content-Type
application/x-www-form-urlencoded

COMMON QUESTIONS
What is OAuth 2.0 and how it works?
The OAuth (open authorization) protocol was developed by the Internet Engineering Task Force and it lets an application access a resource that is controlled by someone else (end user). To put in basic terms, if you are trying to access Epic webpage (as an example), and you had decided to use your Google account for login (as Oauth2 authorization and validation), your username would be Gmail email address and the password would be your Gmail account password to log into the Epic website.

What is oauth2 used for?
The OAuth 2.0 authorization framework is a protocol that allows a user to grant a third-party web site or application access to the user's protected resources, without necessarily revealing their long-term credentials or even their identity.

What is difference between OAuth and oauth2?
OAuth 1.0 only handled web workflows, but OAuth 2.0 considers non-web clients as well. Better separation of duties.
Рекомендации по теме
Комментарии
Автор

hello sir iam not geeting the concept can you please explain how i get oauth2 server url and also please provide me the source code of this auth project

shreyshukla
Автор

Is there anything to fill in the 'Body' section? As my response is 200 OK but I'm not getting any token?

kiranadhinakarraj
Автор

Can also be do same for SharePoint 2013(http)?

alkaprakash
Автор

It didnt work for me, the only difference was that I sent the client credentials on the body not in parameters

jesuseugenio
Автор

Very helpful video... however I can't get the refresh token do you have any idea why?

arnaudlouis
Автор

Sir, my access token is going to be expired soon, can you please tell me how to extend the expiry or renew it?

bindumohan
Автор

doesnt work at all unfortunately got 401 error

Ruffguard
Автор

how to automate this whole process with some script or something????

Ash-kurz
Автор

I have only client id and secret. How can i get the token then.

MrPant-UK
Автор

what is oauth2 username and password pls tell me bro?

asharudheenk