{"id":6728,"date":"2019-09-30T09:15:30","date_gmt":"2019-09-30T09:15:30","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=6728"},"modified":"2021-11-16T09:57:09","modified_gmt":"2021-11-16T09:57:09","slug":"creating-a-oauth-2-0-protected-rest-api-in-laravel","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/creating-a-oauth-2-0-protected-rest-api-in-laravel\/","title":{"rendered":"Creating a OAuth 2.0 Protected REST API In Laravel"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Download and install WAMP or XAMPP Server<\/li><li>Download and install composer<\/li><li>Open Gitbash and Set the composer<\/li><li>composer global require &#8220;laravel\/installer&#8221;<\/li><li>Create a new Laravel Project<\/li><li>Refer following code<\/li><li><\/li><\/ul>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/1e7f30b16179078489bb76577aca7961.js\"><\/script>\n\n\n\n<p><strong>How to make a Machine to Machine call from one microservice to the other: Using Guzzle<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/07ce43cbca8f80606ae47b1d2ffa843b.js\"><\/script>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_99240\"><iframe loading=\"lazy\"  id=\"_ytid_86192\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_99240\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Download and install WAMP or XAMPP Server Download and install composer Open Gitbash and Set the composer composer global require &#8220;laravel\/installer&#8221; Create a new Laravel Project Refer following code How&#8230; <\/p>\n","protected":false},"author":1,"featured_media":7398,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5201],"tags":[5457,5203,5455,177,5456,213],"class_list":["post-6728","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-framework","tag-laravel","tag-oauth-2-0","tag-php","tag-rest-api","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=6728"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6728\/revisions"}],"predecessor-version":[{"id":25428,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/6728\/revisions\/25428"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/7398"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=6728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=6728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=6728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}