WordPress REST API Authentication: Application Passwords

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • Join my premium WordPress course learnwebcode.teachable.com/p/...
    Let's learn about the two most common ways to make authenticated requests to the WordPress REST API.
    GitHub example code shown in this video: github.com/LearnWebCode/wordp...
    0:00 Intro
    1:00 Cookie / Browser Approach
    4:34 Application Passwords
    10:15 Node.js Example
    11:47 Extra Info
    Follow me for updates on new videos or projects:
    Instagram: / javaschiff
    Twitter: / learnwebcode
    Facebook: / brad-schiff-1542576316...
    Twitch: / learnwebcode

КОМЕНТАРІ • 73

  • @user-rd8wc5eu3c
    @user-rd8wc5eu3c 8 місяців тому

    Thanks for this video! Was searching everywhere for how to set up the auth for HTTP POST requests for WP API. Exactly what I was looking for

  • @FF7824
    @FF7824 2 роки тому +2

    Hi Brad, This video just helped me a bunch! I have taken both your Wordpress course and your REACT course and have loved them and found them very useful. Since then, however, I have been trying to figure out how to use libcurl in my free standing C application to log in to my web site through the normal admin interface so I can then use my REST API's. Although I might have eventually succeeded, this approach is just head and shoulders above that in terms of simplicity. Thanks a million! You are a very good teacher. I appreciate your dedication to the subjects you teach, the depth you go into them and the way you make them clear.

    • @LearnWebCode
      @LearnWebCode  2 роки тому

      Thanks so much! I really appreciate that. It's a great feeling when you find the perfect tool for a job.

  • @OstonCodeCypher
    @OstonCodeCypher 2 роки тому +3

    Brad you changed my life with the recent WORDPRESS COURSE. Hope to get some woo commerce from you reason being you explain process by process. LONG LIVE

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

      Hello Oston. Just shooting my shot if you could help out by sharing this WordPress course as I am unable to purchase one myself. cheers

  • @naeemx1823
    @naeemx1823 2 роки тому

    Hi Brad! First of all thank you for uploading these tutorials for free. (I've also purchased all your premium courses on udemy! )
    After watching your UA-cam coding bootcamp series and coding along with you, I decided to join online coding bootcamp, and I have to say this, after attending the bootcamp(part-time) for 6 weeks, I couldn't take it anymore, as we were being introduced new topic to cover every single week, whether we actually understood anything or not! So I decided to quit 6 weeks in. We were expected to read through study material and work on a project with only written instructions and almost little to NO video explanations/instructions. If I was stuck on a topic or code we were asked to just google/youtube it. I found more value in your videos then the bootcamp and therefore I'm just going to start the continue studying from your courses and the self taught route. Thanks again Brad!!!

    • @LearnWebCode
      @LearnWebCode  2 роки тому +2

      Thanks for the support and for sharing! That bootcamp sounds super stressful and not at all conducive to learning; I would have stopped going as well. Glad the courses are helpful!

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

    Thank you so much. that's exactly what i needed! Took them a while to add this feature. Before we had to inject plugins to do this!

  • @user-zh1qr1kt4z
    @user-zh1qr1kt4z 8 місяців тому

    No doubt, you're the best teacher ever. I've bought 5 of your courses and all of them deserve 5 stars. Btw around 6:17, your cat is saying something :)

  • @ShakeelAhmad-pp7ct
    @ShakeelAhmad-pp7ct Рік тому

    thank you so much, i am still using a third-party plugin but now i will try this

  • @richgab8525
    @richgab8525 12 днів тому

    I appreciate this video very much. I was able to resolve one of the bugs that I've been struggling in the past few days. Thank you, you've earned a subscriber. :)

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

    Brad -Brilliant introduction into all REST API things: - thanks. Your videos are a great resource for any one just starting out in all things REST API; Would you do some vids about the new Version 6.1 Keep rocking! ❤

  • @gambomaster
    @gambomaster 2 роки тому +1

    Thank you sir. I respect you a lot. 🙏

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

    Exactly what I looked for!👍👍👍👍🙌🙌

  • @cosanostraytc1030
    @cosanostraytc1030 2 роки тому

    Awesome tutorial. Thank you!!!

  • @flavioguzman
    @flavioguzman 2 роки тому +2

    Autthentication with application starts at 9:19

  • @DeanWinchester-qs1ck
    @DeanWinchester-qs1ck 2 роки тому +3

    Hey there! I've been following your videos since 2018 and they're wonderful, you're such a good teacher. You always makes the experience fun even to confusing things, thanks Brad.
    Just wanted to ask a question, how did you make your cursor display dimensions when you drag on the screen? been trying to find this on the Internet for quite a while now, thanks again looking forward to your response 😎

  • @andrewa8649
    @andrewa8649 2 роки тому +2

    Thanks for sharing.

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

    Great video! Thank!

  • @shahriarparvezshuvo4760
    @shahriarparvezshuvo4760 2 роки тому

    Hey Brad. Hope you are doing well. Enjoyed the video. Hope your lovely kitty doing good as well. 💖

  • @marcoantoniorettoremattes3784
    @marcoantoniorettoremattes3784 2 роки тому

    Thanks from Argentina! Tomorrow i have to show my progress at my first work as developer and this video saved my ass 😆

  • @DEW-Automatisation
    @DEW-Automatisation Рік тому

    Thanks, that help a lot

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

    Awesome great content!

  • @pixelnthings
    @pixelnthings 2 роки тому +4

    Hi Brad. Yesterday, I bought your WordPress developer course. And thank you very much for all your efforts. I like your way of teaching🙂 I also want to buy HTML & CSS course so will you update it in the future?

  • @yearoflinux
    @yearoflinux 2 роки тому

    Very cool! 👍

  • @DrWebDev
    @DrWebDev 2 роки тому +3

    Awesome Content. Thank You.
    Can you bring some more content abiut gatsby with wordpress or nextjs with wordpress as headless CMS.

  • @Kat-co6gn
    @Kat-co6gn 2 роки тому

    Hey! I love your channel. I made a study group in discord so that people can work through your tutorials together. Can you please tell your audience about it so more people can see it?

  • @SykoSilver
    @SykoSilver 2 роки тому +9

    I'd love some content on creating a full stack React application that uses WordPress CMS, including how to deploy if we already have hosting for WordPress like through HostGator etc. Even if it were just a conversion within your Udemy course that would be cool.

    • @LearnWebCode
      @LearnWebCode  2 роки тому +4

      I've brainstormed similar ideas before; glad to know there'd be interest for something like that! When you mention "full stack React" are you thinking Next.js with server-side-rendering via JSX - so we'd have to host the proxy / Next.js app somewhere else and it would dynamically pull data from the HostGator WP installation; or full stack in the sense that we're actually letting the HostGator WP still be the direct host for the site? Lately, I feel like the coolest thing ever (it would never happen) would be if PHP itself added some sort of JSX interpreter so that we could render JSX server-side in WordPress. It feels like the one missing piece from a dream setup with modern blocks. Anyways, sorry, just thinking out loud.

    • @andrewa8649
      @andrewa8649 2 роки тому

      @@LearnWebCode what about humanmade github repo block editor ssr ? If you want to build custom blocks that render in React on the front end, and then have them also render server-side with hydration, this is the library for you.

    • @SykoSilver
      @SykoSilver 2 роки тому +1

      @@LearnWebCode I think I'd defer to your judgment on this one - but if it helps I'd prefer avoiding added costs.

    • @piotrszymanski8325
      @piotrszymanski8325 2 роки тому +1

      You have just pulled it from my mouth - i have bought Beads Udemy full course about developing wordpress (Fictional Academy with Dr. Barksalot :D) and the material is great but at the end i didint fint what i am was looking for. I am React Developer and i would like to simply write a plugin which would display react front and back app with permissions and so on but not maintaining this in sorry freaking php files :)

  • @visualmodo
    @visualmodo 2 роки тому

    TOP!

  • @romankovalchik307
    @romankovalchik307 2 роки тому

    Hi Brad. Don't you consider to use the in-built vs code API client plugin? I forgot about the Postman and happy about that.

  • @SpawnEmdee
    @SpawnEmdee 2 роки тому +1

    Hi Guys, when do Brad release coupon codes for his courses in udemy? I already have his full stack javascript course and I'm impressed with his teaching style. I'm on a budget so I can't afford to buy the full price.

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

    Hey Brad great quick tutorial, also bought your "Wordpress Developer" course on Udemy.
    I followed this example and it works fine. I'd like to generate WP pages from a Filemaker DB, where/how do I add the the Auth key in the URL?

  • @machperiod6784
    @machperiod6784 2 роки тому

    Sir we need more content about css and html see when you last upload tutorials about them plz

  • @wisdomeispower
    @wisdomeispower 2 роки тому

    Nice keyboard :D

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

    Thanks for this video; exactly what I was looking for! One issue that I'm running into though is our WordPress site only seems to accept API requests when NOT logged into WordPress, which seems very strange. Anything you can think of for why it would be doing that? I'm using the WordPress application password authentication method through an external Vue app.

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

    Hello Brad, the videos have been super helpful. Needed your inputs on a specific use case wherein I am trying to load my wordpress website in webview on our android app. I dont want the user to be reauthenticate as they are already logged into app. The documentation for above API says user needs to be logged in. Is there a way I can achive logging in user to the wordpress site when he click to open the wordpress webbsite in the app in webview. Hope I am clear.

  • @taxiblogfr
    @taxiblogfr 2 роки тому

    0:36 be careful not to get your coffee everywhere 😂

  • @user-sz8me7pw1d
    @user-sz8me7pw1d 4 місяці тому

    Thank you for your video.
    What if we don't use mail and password for connexion to Wordpress and we use "continue with Gmail" instead ?

  • @AndreDike
    @AndreDike 2 роки тому +1

    Hi Brad, how possible is it for my users to still make use of their WordPress username and passwords on my new Mobile Application?

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

    Brad has a serious cat 😾 addiction 🤣

  • @rts-design
    @rts-design Рік тому +1

    Hi Brad, I have tried this nice feature and it is working fine. I do have a question though, can you also disable that feature again? I'm using postman and for some reason, I can't access the WP REST API anymore as soon as create an application password.
    The error message is: 401 Unauthorized - Unknown username. Check again or try your email address.

  • @atirah14
    @atirah14 2 роки тому

    Would you consider doing a tutorial on svelte?

  • @antuncrnja
    @antuncrnja 2 роки тому +1

    Hey this is great :) Thank you!
    But how can we handle images? For example adding featured image into post?

    • @LearnWebCode
      @LearnWebCode  2 роки тому +2

      You're welcome! You can use "/wp-json/wp/v2/media" to send an image through the REST API; it should return with info about the image (its media number id) - then when you create a post you can provide a property named "featured_media" and give it the media id number you want.

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

    Hi Brad I want to upload the image using wp API with JSON code can you please create a tutorial for it ? Thanks

  • @syedkazimalishah6232
    @syedkazimalishah6232 2 роки тому +1

    How can we authenticate application password in custom rest api route?

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

    I am creating an android app to go alongwith my wordpress site. I want to authenticate users based username/password entered in the app. Is there a way to do it?

  • @bacon37460
    @bacon37460 2 роки тому

    Very interesting video. Can we use this approach to sign in and sign up to wordpress from third party application? Thanks Brad for your effort.

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

    I wonder in your course if you cover multi user, its bit hard to get the 20 char password

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

    Hi!
    Is it possible to create the application password automatically inside a plugin?
    Lets say i want to have a button "create app pw" that the user does not to do that manually?
    Thanks in advance

  • @SuperPlex99339
    @SuperPlex99339 24 дні тому

    Is there a way to make a User login system with application passwords????
    Like I want any user to login from my node app???? So for only plugins like jwt seems to be able to do that

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

    I have an API endpoint /wp-json/test/v1/update that I want to protect with basic authentication. I want to be able do BOTH of the following:
    - After logging in as admin via /wp-admin, I want to go to the endpoint on a browser and run it manually.
    - An external client calls the endpoint and run it nightly via Application Passwords.
    How can I achieve this?

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

    hey, what if I need to use this for Custom Content Type , in ACF or Pods, if anyone knows this plz help me

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

    hello teacher, my customer need to login wordpress by using gmail and facebook account and they can add post with that account. Then, they can display posts belong the account when they login in their website. Can you give me some solutions, please ?. Thanks teacher

  • @elabinnovations
    @elabinnovations 2 роки тому

    Pease upload a video about WP_List_Table

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

    Hello, I have a question please. How do I register and sign in users using the REST API?

  • @sean-h
    @sean-h 5 місяців тому

    Can Application Passwords be used for login/signup workflows? If so, how?

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

    Thank you for this good video. But how can I upload image from to the WordPress media

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

      Check out this and other similar StackOverflow threads: wordpress.stackexchange.com/questions/325776/add-media-with-wp-rest-api-v2-ii - Basically, this is the endpoint, but the problem is that the official WP Documentation page doesn't give any example on how to actually attach the file to the request, so Stack Overflow is needed: developer.wordpress.org/rest-api/reference/media/

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

    hey i tried this and still get the message: "Sorry, you are not allowed to create posts as this user." Any idea why?

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

    Good day, pls I need help on how to authenticate that the current user is logged in in wp rest API permission callback. can the application password be used to achieve that? if so how will that be done and if not how can I achieve such a goal? pls if there is any code u have that I will appreciate it. thank you

  • @betterhumans1752
    @betterhumans1752 3 місяці тому

    How can I use the wordpress api for customers to login to my app?

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

    i have question how to use user authentication in wordpress

  • @Coder-Daju
    @Coder-Daju 2 роки тому

    😀

  • @onelook1870
    @onelook1870 2 роки тому

    Can you do a PHP course on udemy??

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

    bad tutorial

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

    Where is next lesson for WordPress block theme