How to OAuth 2.0 Authorization with Postman | Generate Google Access Token in Postman | Step By Step

Поділитися
Вставка
  • Опубліковано 11 жов 2024
  • #OAuth2 #APItesting #Postman
    In this video, you will learn how to implement OAuth 2.0 Authorization using Postman. OAuth 2.0 is a widely used authorization protocol that enables secure API access. Postman is a popular tool for testing APIs, and it can be used to generate access tokens for OAuth 2.0 authentication.
    In this tutorial, we will cover the basics of OAuth 2.0, including the authorization flow, grant types, and scopes. We will then walk through the steps to generate access tokens using Postman. You will learn how to create an OAuth 2.0 client, configure the authorization request, and obtain the access token. We will also cover best practices for working with OAuth 2.0 authentication in Postman.
    By the end of this video, you will have a solid understanding of OAuth 2.0 authorization and how to use Postman to generate access tokens. This knowledge will be valuable for anyone working with APIs, whether you are a developer, tester, or API consumer.
    Google Cloud Link:
    console.cloud....
    Google Auth URL:
    accounts.googl...
    Google Token URL:
    accounts.googl...
    if you like this video, please do subscribe now and press the bell icon to get latest video update from #CodeSagar
    / @code-sagar
    #OAuth2 #Postman #APIsecurity #APItesting #Authorization #AccessTokens #GrantTypes #Scopes #APIauthentication #WebDevelopment #APIconsumers #Developers #Testers #WebAPIs #RESTfulAPIs #APIdesign #APImanagement #APIintegration #APIeconomy #Cybersecurity

КОМЕНТАРІ • 77

  • @davidtrevor8967
    @davidtrevor8967 8 місяців тому +1

    Never really used Postman before and thanks to your video I was able to setup a test application in ADFS in a couple of minutes, thanks!

  • @Shyloo
    @Shyloo 7 місяців тому

    Thanks! I got the 403 error, and at 7:47 you showed me how to fix it! Thanks a lot man, you made my weekend

  • @Kalal_Motivation
    @Kalal_Motivation Рік тому +1

    Amzing Video sir it is so helpful for my work

    • @CodeSagarOfficial
      @CodeSagarOfficial  Рік тому

      Glad to hear that.
      Glad it helped.
      Subscribe channel for more videos: www.youtube.com/@code-sagar

  • @jaspreetsingh-hj2mv
    @jaspreetsingh-hj2mv Рік тому +2

    best video. Step by step explaination.

  • @JustPython
    @JustPython Рік тому +2

    very good video

    • @CodeSagarOfficial
      @CodeSagarOfficial  Рік тому

      Thanks for comment.
      Subscribe channel for more videos: www.youtube.com/@code-sagar

  • @EarningsNest
    @EarningsNest 7 місяців тому

    Perfect, I used u video and was no errors , good job , thk :)

  • @corinaskywalker
    @corinaskywalker 3 місяці тому +2

    Auth URL is not working anymore, it copies as a youtube redirect URL

  • @BloodHaZaRd666
    @BloodHaZaRd666 9 місяців тому

    thx that helped me on how o set an OAuth2 with postman

  • @Viperkill400
    @Viperkill400 23 дні тому

    Hi, I was wondering how would you generate a refresh token?

  • @phongtang2377
    @phongtang2377 2 місяці тому +1

    after we get the token. we can use it to verify in backend to get information of account? Please help me. I have issue wwith it.

  • @ginodejesus5698
    @ginodejesus5698 Рік тому +2

    Thanks for this really helpful! how can I access refresh token? so I can build something that can be scheduled?

    • @CodeSagarOfficial
      @CodeSagarOfficial  Рік тому

      In the response, you will receive an access token, token type, expires in, and a refresh token.

    • @pavelllamocca5242
      @pavelllamocca5242 Рік тому

      @@CodeSagarOfficial. Thanks for the video. In the response I receive: "access token", "token type", "expires in", "scope", "access tokern url", "client id", "client secret" and "timestamp".
      I dont receive the "refresh token". Do you know how to get it? I think the problem is the type of application "web application".
      .

    • @CodeSagarOfficial
      @CodeSagarOfficial  Рік тому

      Make sure you have included grant_type="refresh_token" the parameters in the request body
      grant_type=authorization_code
      OR
      grant_type=refresh_token
      The refresh token will be provided in the response alongside the access token when you request authorization or when you use a refresh token grant.
      Hope this will help.

  • @십시윤
    @십시윤 Рік тому

    인생 영 ㄱㅅㄱㅅ 상입니다. 다른 사람들도 꼭 봐야할 것 같아요.

  • @sandovalvaz6093
    @sandovalvaz6093 Місяць тому

    Hi, do you know why this error occur? "OAuth 2 parameters can only have a single value: scope"

  • @jorgealejandrocedenorojas9675

    Perfect, Thanks for supporting to me.

  • @krishnanayak8931
    @krishnanayak8931 Рік тому +1

    Thanks a Lots for helping 🤩

  • @ManuelRicoMolina
    @ManuelRicoMolina 6 місяців тому

    This video helped me. Thanks.

  • @testtest-c4z
    @testtest-c4z Рік тому +1

    Hello, how are you, there are applications that request a token, request that the client id and seceret key be sent, others an api token and a secret key, how is this different from, for example, sending user and pass?

  • @nwaformicah433
    @nwaformicah433 6 місяців тому

    Nice work, you are good. I want to know or ask if i need to make payment to use Oauth in my project?

    • @CodeSagarOfficial
      @CodeSagarOfficial  4 місяці тому

      No, you don't need to make any payment for using OAuth.

  • @마예원-p2e
    @마예원-p2e Рік тому

    마 👍👍 음에 걸려서 계속 봐요.

  • @eunheeiam2990
    @eunheeiam2990 6 місяців тому

    Thanks!

  • @Sagar-sq6kc
    @Sagar-sq6kc 4 місяці тому

    Hello, can I generate Authorization: Bearer . via postman.

  • @sandeepkaur-un3wy
    @sandeepkaur-un3wy Рік тому +1

    Helpful 👍 Thanks

  • @The_armistead
    @The_armistead Рік тому

    Helpful, thanks

    • @CodeSagarOfficial
      @CodeSagarOfficial  Рік тому

      Thanks for comment.
      Subscribe channel for more such videos.

  • @SeemaSharma-fv2yw
    @SeemaSharma-fv2yw Рік тому +1

    Helpful 👏

  • @alisahin583
    @alisahin583 6 місяців тому

    It doesnt work for me . i need that auto generate token without using login google account. Can you do this?

  • @ashutoshkumarpandey3307
    @ashutoshkumarpandey3307 11 місяців тому

    Is there a way to generate access token using service account ? If yes then please guide me .
    I am already done with the Google docs and its not working as expected.

    • @CodeSagarOfficial
      @CodeSagarOfficial  11 місяців тому

      You can use the Google Cloud SDK or libraries like "google-auth" in Python to generate access tokens.

  • @원진우-l4g
    @원진우-l4g Рік тому

    ^ㅂ^ 이 영상을 기다리고 있었습니다!

  • @sushantmore2299
    @sushantmore2299 Місяць тому

    Hi,
    Is there a way to capture the access token from auth2.0 into global variable through a script?

    • @CodeSagarOfficial
      @CodeSagarOfficial  Місяць тому

      You can use this code to automate the process.
      gist.github.com/CodeSagarOfficial/4fb18588625cb76b8e602a5c1cdb4f1c

    • @sushantmore2299
      @sushantmore2299 Місяць тому

      ​@@CodeSagarOfficial I have a sso auth for auth2.0 will this work

  • @마주아-r4d
    @마주아-r4d Рік тому

    ^.^ 이런 영상을 많이 올려주세요!

  • @tgonlinetechsolutions
    @tgonlinetechsolutions 4 місяці тому

    how to enable legacy people api ? its not coming in search

  • @Nobody-df7vn
    @Nobody-df7vn 11 місяців тому

    Is client secret required? Is it a security concern?

    • @CodeSagarOfficial
      @CodeSagarOfficial  11 місяців тому

      Yes, client secret is required. You have to store it securely on the client side and then use it.

  • @anushasreerama4683
    @anushasreerama4683 Рік тому

    It is showing me error as
    "This request is not authorized to call insights service. Developer token not enabled how to resolve this issue please help me

  • @priyamohapatra6525
    @priyamohapatra6525 2 місяці тому

    OAuth 2 parameters can only have a single value: scope Learn more about this error
    If you are a developer of login , see error details.
    Error 400: invalid_request

    • @sandovalvaz6093
      @sandovalvaz6093 Місяць тому

      do you solved that problem? I have the same issue 😓

  • @AbhishekSingh-gg9dj
    @AbhishekSingh-gg9dj Рік тому

    How to enable this directly on browser ?

    • @CodeSagarOfficial
      @CodeSagarOfficial  Рік тому

      I didn't get you. can you explain more? what you actually want to achieve?

  • @somethingmysterious58
    @somethingmysterious58 11 місяців тому

    and how to get refresh token using access token?

    • @CodeSagarOfficial
      @CodeSagarOfficial  10 місяців тому

      If you want to get refresh token then you have to add "offline_access" Scope in OAuth consent screen.
      Steps:
      - Navigate to your project.
      - In the left sidebar, click on "APIs & Services" > "Credentials."
      - Click on the "OAuth consent screen" tab
      - In the "Scopes for Google APIs" section, ensure that the "offline_access" scope is included.

  • @nopolioncollection
    @nopolioncollection Рік тому +1

    Not work give me blocked

    • @CodeSagarOfficial
      @CodeSagarOfficial  Рік тому

      you have to add test emails to login with google in test mode. Otherwise you have to publish your google project.

    • @nopolioncollection
      @nopolioncollection Рік тому +1

      @@CodeSagarOfficial how to do that

    • @sandovalvaz6093
      @sandovalvaz6093 Місяць тому

      @@nopolioncollection in the third sept form OAuth consent

  • @empiregood9225
    @empiregood9225 Місяць тому

    I WATCHED THE WHOLE VIDEO, AND IN THE VIDEO'S 6 MINUTES AND 40 SECONDS LENGTH, THE CREATOR OF THIS CONTENT MAKES A MONTAGE OF A SCENE AS IF THE RESPONSE FROM THE WEB WAS TRUE AND FUNCTIONAL.
    PEOPLE, THIS VIDEO WAS A SCAM OF VIEWS, I DO NOT RECOMMEND THIS CHANNEL. DISLIKE.
    THIS USER PROMOTED MISINFORMATION.

    • @CodeSagarOfficial
      @CodeSagarOfficial  Місяць тому

      Hi, Thanks for you comment.
      You can check all video and try at your end. you will get the same response in the video. It may be editing issue at that particular time.

  • @jaspreetsingh-ee1vr
    @jaspreetsingh-ee1vr Рік тому +1

    It helped a lot. Thanks