OAuth 2.0 Authorization Flow using the Dropbox API and Postman

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024

ความคิดเห็น • 85

  • @vdespa
    @vdespa  4 ปีที่แล้ว +4

    👉 Want to learn more about Postman? Check my complete Postman online course.
    vdespa.com/courses/?q=TH-cam

    • @dev9033
      @dev9033 4 ปีที่แล้ว

      why not using permanent token from dropbox?

  • @mehanovicmahir2207
    @mehanovicmahir2207 4 ปีที่แล้ว +8

    I have not seen tutorials this good in awhile, thanks a lot!

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      Thanks for your appreciation!

  • @dawnabbott1805
    @dawnabbott1805 2 ปีที่แล้ว +2

    Thank you Valentin for these great postman tutorials! I have watched almost all of your postman videos and they have really helped me out.

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Thank you, Dawn. Much appreciated 😊

  • @ferdinandsteenkamp1333
    @ferdinandsteenkamp1333 4 ปีที่แล้ว +3

    Wish I had this tutorial when I started learning OAuth2 :D

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      I hope it still helps.

  • @rashmiambedkar5143
    @rashmiambedkar5143 4 ปีที่แล้ว +1

    You the ocean of knowledge in API

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      😂 thank you, I am still learning a few things.

  • @rishijain7265
    @rishijain7265 ปีที่แล้ว

    Awesome tutorial. Helped me a lot to get started with DropBox API!!

    • @vdespa
      @vdespa  ปีที่แล้ว

      Glad it helped! You are welcome. Thank you for leaving a comment.

  • @franksteinjan3827
    @franksteinjan3827 2 ปีที่แล้ว +1

    Good Video Valentin. Learned a lot from this Video. Hope to see more like this in the future, e.g. a second part maybe picking up some of the questions raised here. I would be also interesting how the refresh token process will work in your example scenario with Dropbox. Is this somehow an automated process in PM or does it need manual steps as well? Thanks!

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Thanks for the reminder, Frank. I will come back with an update.

  • @canuckchen
    @canuckchen ปีที่แล้ว

    Thanks for the video. It does help!

    • @vdespa
      @vdespa  ปีที่แล้ว

      Glad it helped! You are welcome. Thank you for leaving a comment.

  • @anutoshghosh5
    @anutoshghosh5 4 ปีที่แล้ว +2

    Hey this was an indepth analysis of Oauth2 and authorization, very good content, thanks a lot for this kind of content, would be helful if you can show the code how to achieve this in javascript.

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      Noted! I will look into creating a tutorial that shows this, maybe with Angular or React.

  • @madiharehman1820
    @madiharehman1820 2 ปีที่แล้ว

    I am not able to do the last step where you clicked open postman. I am using MacBook and using Chrome browser. It gives error as 403 and doesn’t redirect to postman desktop APP. Where exactly I need to give permission so chrome can open Postman?

  • @ShashankBabu-hy8sv
    @ShashankBabu-hy8sv ปีที่แล้ว

    the access token get expires after few hours how to get the refresh token in dropbox api and how to use the refresh token to automatically get the access token

  • @mahboobsiddiqui5398
    @mahboobsiddiqui5398 3 ปีที่แล้ว +1

    Thank you So much ! @Valentin Despa Loved your session you are Fab! sir, requesting you to create new series of UI-Path/Automation AnyWhere...

    • @vdespa
      @vdespa  3 ปีที่แล้ว

      Thanks for your suggestions. What are you trying to do with UI-Path/Automation AnyWhere. Please reach out with more details.

    • @mahboobsiddiqui5398
      @mahboobsiddiqui5398 3 ปีที่แล้ว

      @@vdespa just trying times learn and update my self... So I can automate even processes... I love doing automation project/process..

  • @krishnavadak
    @krishnavadak 4 ปีที่แล้ว +2

    Excellent explanation. Never seen such a practical demonstration of oauth in other sites

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      Thanks. I am glad it was useful.

  • @SunnyDeep
    @SunnyDeep 2 ปีที่แล้ว

    How to get token for implicit grant type in oauth2 authorization using a javascript code in postman

  • @praveensaravanan4629
    @praveensaravanan4629 2 ปีที่แล้ว

    Hey Valentin..Do you know how to connect Drop box with Dell Boomi?

  • @simpleedge
    @simpleedge 2 ปีที่แล้ว +1

    You saved me...I was stuck for a couple of hours...thank you so much! It was the 'send client credentials in body' that I didn't think of trying. Thank you! 🙏🏼

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Glad it helped! Your generosity is much appreciated.

  • @praveenlti
    @praveenlti 4 ปีที่แล้ว +2

    Wonderful tutorial on Oauth 2.0!

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      Thanks for watching 😊

  • @noahfatah9476
    @noahfatah9476 ปีที่แล้ว

    how long is the authorization access token valid for ?

  • @nitinzagade7334
    @nitinzagade7334 2 ปีที่แล้ว +1

    Super Info .
    Its first time that somebody has explained OAuth 2.0 precisely .
    Thanks a lot again.

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      You are most welcome

  • @ferdinandsteenkamp1333
    @ferdinandsteenkamp1333 4 ปีที่แล้ว +1

    Will using the PKCE flow change anything for this tutorial?

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      Not much. The PKCE flow is just an extension to what I have presented in the auth code flow. You just need to select PKCE in Postman.

  • @dilip987654321
    @dilip987654321 ปีที่แล้ว +1

    You have so soo nicely explained each and every step.Thankyou.

    • @vdespa
      @vdespa  ปีที่แล้ว

      My pleasure 😊. You are welcome. Thank you for leaving a comment.

  • @naveenkumarc4151
    @naveenkumarc4151 4 ปีที่แล้ว +1

    Great Tutorial , was really helpful to understand OAuth 2.0 using postman

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      Glad it was helpful!

  • @majidshah2253
    @majidshah2253 2 ปีที่แล้ว

    Sir in my case access token generate 138 characters and also shown expires_in 14400 but your case 64 characters and also not showing as expires_in token generate how help of me i want 64 characters token and want not expired then

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      It is hard to answer this with the given information. Consider posting your question in the Postman community (community.postman.com/) and share what you have tried so far and where did you get stuck. Include screenshots and as many details as possible. Feel free to tag me with @vdespa. Thanks!

  • @zaaboulla82
    @zaaboulla82 ปีที่แล้ว +1

    Thanks for the explanation, it is very useful

    • @vdespa
      @vdespa  ปีที่แล้ว

      Glad it was helpful! You are welcome. Thank you for leaving a comment.

  • @karangupta_DE
    @karangupta_DE ปีที่แล้ว

    Hi Valentin, great video. I recently completed a oauth 2.0 authentication for box api. The first step they mention in their documentation is to generate an authorization URL . This url, when hit using a browser generates an alpha numeric code, which is then used as a key value pair in the body of x-www-form-urlencoded, which would then generate an access-token and a refresh-token.
    Is it possible to automate the redirect_url step in airflow or python? or this needs to be done manually, only one time?

  • @PeterTrapasso
    @PeterTrapasso 4 ปีที่แล้ว +1

    Hi Valentin! Thank you for doing this video. It looks like Dropbox has changed their scoping which breaks your app demo. When you click Request Token in Postman the browser returns Error (400) No scope requested can be granted for this app. Do you have an update we can follow to fix this? Thank you!

    • @vdespa
      @vdespa  4 ปีที่แล้ว +1

      Hi Peter, thanks for your report. It is hard to know what the problem is in this case. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.

    • @ravikafle4494
      @ravikafle4494 4 ปีที่แล้ว +1

      @@vdespa Yes, same thing happened to me when I tried doing the "request Token" step at 14:45 and got a 400 Error. Any input will be highly appreciated.

    • @vdespa
      @vdespa  3 ปีที่แล้ว

      I have added some screenshots on how to fix this issue here: github.com/vdespa/Postman_Dropbox_API_Auth2.0

  • @christopherburke7042
    @christopherburke7042 ปีที่แล้ว +1

    Well done, dude. Cheers.

    • @vdespa
      @vdespa  ปีที่แล้ว

      Glad you enjoyed it! You are welcome. Thank you for leaving a comment.

  • @mrr4181
    @mrr4181 4 ปีที่แล้ว +1

    very nicely explained

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      Thank you so much 🙂

  • @dja781
    @dja781 2 ปีที่แล้ว

    Could please make a video on automation of oauth 2.0 pkce , in postman ? Thanks

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Thanks for your suggestion. Which API are you trying to use with PKCE?

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Thanks for your suggestion. Which API are you trying to use with PKCE?

  • @yassinechahidksabi7500
    @yassinechahidksabi7500 3 ปีที่แล้ว +1

    Thank u

    • @vdespa
      @vdespa  3 ปีที่แล้ว

      Welcome

  • @chrisgousset8673
    @chrisgousset8673 2 ปีที่แล้ว

    Can anyone possibly help me replicate this flow in a react/flask app?
    Obviously I'd like to trigger the Oauth process from the front end, but I'd rather handle the actual auth & subsequent api call from flask.
    I can't seem to find any good examples that show where to start.
    Any help at all would be greatly appreciated!

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      OAuth2 is a specification and it works relatively similar regardless of which technology implements the flow. What have you tried and where did you get stuck?

  • @tenminutetokyo2643
    @tenminutetokyo2643 4 ปีที่แล้ว

    See Nat Sakamura’s channel.

  • @fredrikpejcinovskisvensson8658
    @fredrikpejcinovskisvensson8658 3 ปีที่แล้ว

    Hi Valentin
    The access token I am given is expiring after some hours. How can I automate generating a new one, like from running with Newman? Do you need to manually click the Get new access token button?

    • @vdespa
      @vdespa  3 ปีที่แล้ว

      You can't automatically click on buttons from Postman. If you have a refresh token, you can try refreshing it.

    • @fredrikpejcinovskisvensson8658
      @fredrikpejcinovskisvensson8658 3 ปีที่แล้ว

      @@vdespa Not following what you mean with "If you have a refresh token, you can try refreshing it".

    • @vdespa
      @vdespa  3 ปีที่แล้ว

      In OAuth2, a refresh token allows you to get a new access token.

  • @franklyn4426
    @franklyn4426 4 ปีที่แล้ว

    I am generating a dropbox toI am generating a dropbox token from an account in which I am a publisher.
    My plan is Dropbox Basic, I am using 1.5GB from 2GB
    Does that influence the fact that said token expires?
    In principle, I received a token of 142 characters,
    but then I generated a 64 character token and it still expires.
    What could be influencing the expiration of the token?

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      Tokens expire for security reasons. When you get a token, you also get the expiration. I hope this helps. Let me know if you have any other questions related to this.

  • @thephamthanh
    @thephamthanh 4 ปีที่แล้ว

    I follow your guide but I got an Error: [object Object] ?error=invalid_request&error_description=Invalid+scopes%3A+&state= . From your example, you leave the State and Scope empty. But I it looks like It does not work for my case. Could you help me to explain?

    • @vdespa
      @vdespa  4 ปีที่แล้ว

      It is hard to know what the problem is in this case. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.

    • @vdespa
      @vdespa  3 ปีที่แล้ว

      I have added some screenshots on how to fix this issue here: github.com/vdespa/Postman_Dropbox_API_Auth2.0

  • @kvidkvid5847
    @kvidkvid5847 2 ปีที่แล้ว

    Did everything as shown in the video including the January 2021 update from the description, managed to get the Auth Key but I am getting this when trying to send the request. Could you help, please?
    Error in call to API function "files/list_folder
    ": Unknown API function: /2/files/list_folder

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Did you check the API documentation to see if this endpoint still exists?

    • @kvidkvid5847
      @kvidkvid5847 2 ปีที่แล้ว

      @@vdespa i checked the API documentation and the endpoint is still present

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      @@kvidkvid5847 Please join the Discord server are share more details there.

  • @davidpurvis4616
    @davidpurvis4616 3 ปีที่แล้ว

    Hello Valentin. Is it possible to automate OAuth 2.0 when receiving code through SMS and if so could you produce a tutorial on how to achieve this please.

    • @vdespa
      @vdespa  3 ปีที่แล้ว

      Hi David,
      it is possible. I have described the steps in a blog post: medium.com/apis-with-valentine/automated-api-testing-strategy-for-services-using-sms-based-two-factor-authentication-2fa-in-264b7ce81892

    • @davidpurvis4616
      @davidpurvis4616 3 ปีที่แล้ว

      @@vdespa Many thanks Valentin. A very interesting and all encompassing solution to 2fa automation. Thank you.

  • @jayachandraB
    @jayachandraB 2 ปีที่แล้ว

    how to get long lived token

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      This depends on your application, some don't support it. Sometimes you may need to create one manually in the database.

    • @Zakaria.Enabi1
      @Zakaria.Enabi1 ปีที่แล้ว

      @@vdespa How can i create one manually in the database?

  • @Snozcumber
    @Snozcumber 3 ปีที่แล้ว +1

    Hi valentine, this is great thank you. One question. When we use implicit flow, why don't we need to send client secret? How does the server know the client is really the client if the client doesnt provide the secret?

    • @vdespa
      @vdespa  3 ปีที่แล้ว +1

      This flow is for clients who can't keep secrets. Obviously, it is less secure.

  • @axmedcalicilmifaaraxaxmefcalic
    @axmedcalicilmifaaraxaxmefcalic หลายเดือนก่อน

    Acmedcalicilmifaarax full nam

  • @lickmeup6921
    @lickmeup6921 2 ปีที่แล้ว

    I have troubles to make an Oauth 2.0 with twitter.. sitting on that one for quite long time now, could you please explain auth_url and access token URL for tweeter ?

    • @vdespa
      @vdespa  2 ปีที่แล้ว

      Consider posting your question in the Postman community (community.postman.com/) and share what you have tried so far and where did you get stuck. Include screenshots and as many details as possible. Feel free to tag me with @vdespa. Thanks!