WordPress REST API Authentication: Application Passwords

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 80

  • @LearnWebCode
    @LearnWebCode  Месяц назад

    My recommendation for hosting your WordPress website is DreamHost and specifically their "Shared Unlimited" yearly plan (the exact plan I've used for 19 years). If you use my link to DreamHost it helps support my RUclips channel and costs you nothing extra: click.dreamhost.com/aff_c?offer_id=8&aff_id=17231

  • @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 2 года назад

      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

  • @FF7824
    @FF7824 2 года назад +3

    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.

  • @TomaszHofdun
    @TomaszHofdun Год назад

    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 :)

  • @ozgursar5386
    @ozgursar5386 2 месяца назад

    Hi Brad, thanks for sharing how it is easy to authenticate with the REST API using application password. Your videos and courses are just top notch!

  • @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 RUclips 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!

  • @C-T-m8b
    @C-T-m8b Год назад

    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

  • @richgab8525
    @richgab8525 5 месяцев назад

    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. :)

  • @shahriarparvezshuvo4760
    @shahriarparvezshuvo4760 2 года назад

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

  • @ShakeelAhmad-pp7ct
    @ShakeelAhmad-pp7ct 2 года назад

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

  • @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 😆

  • @alexkey9372
    @alexkey9372 2 года назад

    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!

  • @flavioguzman
    @flavioguzman 2 года назад +2

    Autthentication with application starts at 9:19

  • @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 года назад +5

      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 :)

    • @edism
      @edism 2 месяца назад

      If WordPress CMS were central to a client's (or my) setup and I'm trying to keep existing hosting (like HostGator), I think Next.js would do the job for sure. It would allow you to treat WordPress as a headless CMS while handling the React frontend, fetching content dynamically via the WordPress REST API or GraphQL.
      With Static Site Generation (SSG), you can pre-build pages, which reduces API calls and boosts performance. If you opt for Server-Side Rendering (SSR), Next.js will fetch content at runtime, but it still keeps things efficient. This approach keeps WordPress in place for content management while modernising the frontend with minimal complexity or added hosting costs.
      @LearnWebCode I really (bloody fking) like the creative thinking behind embedding JSX into PHP! It's a brilliant exercise in blending two worlds that rarely meet over tea. It could open up fresh ways to unify frontend and backend development. As much as I'd love to dive into it, the practical challenges might outweigh the thrill. The performance issues alone would have me cursing the heavens, though not before burning a day fiddling with PHP-V8, likely resulting in something I’d have to name PHrankenstein’s Monster (an apt description for both its creation and maintenance).
      Just as I'm eyeing a new Prime video in the corner of my screen, I’m now thinking: why not throw Deno into the mix? Picture it: Deno running serverless functions to handle JSX/TSX rendering, neatly isolating the task from PHP’s domain. It could manage SSR with the elegance of a well-bred Afghan Hound, without the clunkiness of Node.js trailing behind. Deno’s secure-by-default approach neatly dodges the security quirks that come with forcing JSX into PHP’s world. This way, PHP can focus on the data wrangling, while Deno quietly handles the SSR grunt work. Hmm...
      Re: deployment/OP: Next.js is likely your best bet. It manages React’s SSR gracefully while keeping WordPress as the content source, offering a streamlined option. If you prefer to keep everything within the WordPress ecosystem, Human Made’s Block Editor SSR could be an elegant solution for bringing React into WordPress, staying true to that exploration of server-side rendering without straying too far from home.

  • @martinkaspar5095
    @martinkaspar5095 2 года назад

    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! ❤

  • @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.

  • @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 😎

  • @DEW-Automatisation
    @DEW-Automatisation Год назад

    Thanks, that help a lot

  • @andrewa8649
    @andrewa8649 2 года назад +2

    Thanks for sharing.

  • @OussamaArban
    @OussamaArban 9 месяцев назад

    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 ?

  • @chrisder1814
    @chrisder1814 4 месяца назад

    hello and thank you very much for this video, however I had some ideas and I would have liked you to tell me what you think about them, I'm not sure if I could use them with the applications that I use and APIs

  • @VikNov
    @VikNov 2 года назад

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

  • @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?

  • @rts-design
    @rts-design 2 года назад +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.

  • @syedkazimalishah6232
    @syedkazimalishah6232 2 года назад +1

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

  • @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?

  • @DanielFrostable
    @DanielFrostable 4 месяца назад

    Thanks Brad

  • @gambomaster
    @gambomaster 2 года назад +1

    Thank you sir. I respect you a lot. 🙏

  • @LittleMopeHead
    @LittleMopeHead 7 месяцев назад

    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?

  • @AndrewKwabula
    @AndrewKwabula Год назад

    Brad has a serious cat 😾 addiction 🤣

  • @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?

  • @SuperPlex99339
    @SuperPlex99339 5 месяцев назад

    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

  • @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

  • @visualmodo
    @visualmodo 2 года назад

    TOP!

  • @viewfavorites
    @viewfavorites 11 месяцев назад

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

  • @chrisder1814
    @chrisder1814 3 месяца назад

    hello, can I use it with the g.sheet api connector module?

  • @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.

  • @taxiblogfr
    @taxiblogfr 2 года назад

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

  • @sachintaware
    @sachintaware 2 года назад

    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.

  • @cosanostraytc1030
    @cosanostraytc1030 2 года назад

    Awesome tutorial. Thank you!!!

  • @vanbayor11
    @vanbayor11 Год назад

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

  • @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?

  • @guitarpracticewithnate
    @guitarpracticewithnate 2 года назад

    Great video! Thank!

  • @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.

  • @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.

  • @betterhumans1752
    @betterhumans1752 8 месяцев назад

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

  • @_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?

  • @sean-h
    @sean-h 10 месяцев назад

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

  • @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.

  • @paullopez_ai
    @paullopez_ai 11 месяцев назад

    Awesome great content!

  • @tochukwuokafor1251
    @tochukwuokafor1251 2 года назад

    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

  • @atirah14
    @atirah14 2 года назад

    Would you consider doing a tutorial on svelte?

  • @trongnhanle7658
    @trongnhanle7658 2 года назад

    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

  • @georgenessem2351
    @georgenessem2351 2 года назад

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

    • @LearnWebCode
      @LearnWebCode  2 года назад +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/

  • @SAzharRahim
    @SAzharRahim 2 года назад

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

  • @jejidyanjackson2868
    @jejidyanjackson2868 Год назад

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

  • @Shuaigede
    @Shuaigede 2 года назад

    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?

  • @wisdomeispower
    @wisdomeispower 2 года назад

    Nice keyboard :D

  • @yearoflinux
    @yearoflinux 2 года назад

    Very cool! 👍

  • @machperiod6784
    @machperiod6784 2 года назад

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

  • @sugy9310
    @sugy9310 2 года назад

    i have question how to use user authentication in wordpress

  • @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.

  • @elabinnovations
    @elabinnovations 2 года назад

    Pease upload a video about WP_List_Table

  • @onelook1870
    @onelook1870 2 года назад

    Can you do a PHP course on udemy??

  • @Coder-Daju
    @Coder-Daju 2 года назад

    😀

  • @TechMatebuddy
    @TechMatebuddy Год назад

    Where is next lesson for WordPress block theme

  • @MMovelPlanejado
    @MMovelPlanejado 2 месяца назад

    Hello, I tried to do this and unfortunately I'm getting the feedback below, I'm a beginner on the subject. However, I believe it is something very simple that I am not configuring, I was already trying to do this with n8n, but it didn't work, so I tried to do a test outside the tool and I received the same message. If you can give me a tip on how to solve it, I will be grateful.
    { "code": "rest_cannot_create", "message": "No permission to create posts with this user.", "date": { status: 401 } }