{"id":26,"date":"2018-10-17T23:34:00","date_gmt":"2018-10-17T23:34:00","guid":{"rendered":""},"modified":"2020-07-25T21:51:32","modified_gmt":"2020-07-25T19:51:32","slug":"oauth-2-0-authorization-processcode-grant-flow","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/blog\/oauth-2-0-authorization-processcode-grant-flow\/","title":{"rendered":"OAuth 2.0 Authorization Process(Code Grant Flow)"},"content":{"rendered":"<p>Hello, as you already know, I&#8217;m Kindson The Genius and I&#8217;m here to help you understand tech concept very easily. You let me know what you would like to learn.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/2.bp.blogspot.com\/-m1bp74CCJ8w\/W8fHEGD-q9I\/AAAAAAAACbc\/nWTIT7TRqYA1sLV3WiJYxUYLnZBn0l8ZACLcBGAs\/s640\/OAuth%2BAuthorization%2BFlow.jpg\" width=\"640\" height=\"364\" border=\"0\" data-original-height=\"609\" data-original-width=\"1069\" \/><\/p>\n<p>Today I would just outline the OAuth 2.0 Authorization Process, that is the steps and the flow diagram. No much details though.<\/p>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: transparent; color: #555555; font-family: &amp;quot; font-size: 18px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-decoration: none; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; margin: 0px;\">Find more details here:\u00a0<a href=\"https:\/\/kindsonthegenius.com\/blog\/what-is-oauth-an-introduction-to-oauth-and-openid\/\" target=\"_blank\" rel=\"noopener\">What is OAuth and OpenID<\/a><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: transparent; color: #555555; font-family: &amp;quot; font-size: 18px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-decoration: none; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; margin: 0px;\">Video explanation:\u00a0<a href=\"https:\/\/youtu.be\/mWbfDF14LVo\" target=\"_blank\" rel=\"noopener\">Video explanation<\/a><\/div>\n<p>&nbsp;<\/p>\n<p><b>OAuth 2.0 Authorization Steps<\/b><br \/>\n<b>Step 1: <\/b>User visits a websit eg. kindsonthegenius.blogspot.com (App)<br \/>\n<b>Step 2: <\/b>App asks user for authentication though Facebook<br \/>\n<b>Step 3:<\/b> A consent screen is displayed to the user and user accepts to allow access<br \/>\n<b>Step 4:<\/b> IdP sends a code to the user (IdP stands for Identity Provider)<br \/>\n<b>Step 5:<\/b> User sends to code to the App via a redirect link<br \/>\n<b>Step 6:<\/b> App request for access token from the IdP using the code it has received<br \/>\n<b>Step 7: <\/b>The IdP checks the access code is valid and then send the access token to the App.<br \/>\n<b>Step 8: <\/b>App then requests access to restricted resources in the resource server by presenting its access token.<br \/>\n<b>Step 9:<\/b> Resource server checks with the IdP to make sure access token is valid and then grants access to the resources.<\/p>\n<p><b>Notes<\/b><\/p>\n<ul>\n<li>The flow may\u00a0 have some variations depending on the particular implementation<\/li>\n<li>The IdP is also known as the Authorization Server<\/li>\n<li>The IdP and the Resource Server are sometimes in the same place.<\/li>\n<\/ul>\n<p>Find more details here:\u00a0<a href=\"https:\/\/kindsonthegenius.com\/blog\/what-is-oauth-an-introduction-to-oauth-and-openid\/\" target=\"_blank\" rel=\"noopener\">What is OAuth and OpenID<\/a>?<\/p>\n<p>Video explanation:\u00a0<a href=\"https:\/\/youtu.be\/mWbfDF14LVo\" target=\"_blank\" rel=\"noopener\">Vidoe explanation<\/a><br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/mWbfDF14LVo\" width=\"100%\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello, as you already know, I&#8217;m Kindson The Genius and I&#8217;m here to help you understand tech concept very easily. You let me know what &hellip; <\/p>\n","protected":false},"author":1,"featured_media":329,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[69],"tags":[],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/26"}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":6,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":1099,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions\/1099"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media\/329"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}