{"id":3322,"date":"2021-07-02T03:10:50","date_gmt":"2021-07-02T03:10:50","guid":{"rendered":"https:\/\/www.liainfraservices.com\/blog\/?p=3322"},"modified":"2022-08-26T07:46:30","modified_gmt":"2022-08-26T07:46:30","slug":"how-to-authenticate-application-users-using-the-jwt-authentication-mechanism","status":"publish","type":"post","link":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/","title":{"rendered":"How to authenticate application users using the JWT Authentication mechanism?"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">min read<\/span><\/span><div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 3,560<\/span><\/div>\n<p class=\"wp-block-paragraph\">LIA Infraservices &#8211; the technical development expert from the leading<span class=\"has-inline-color has-vivid-cyan-blue-color\"> <strong>Mobile App Development Company in Chennai<\/strong><\/span> brings you details about &#8220;<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">How to authenticate application users using the JWT Authentication mechanism<\/span><\/strong>?&#8221; in simple steps. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An authentication procedure is meant to confirm that the persons claiming to be the users are really the users they claim to be. This step is vital to any security process.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a class=\"https:\/\/www.liainfraservices.com\/contact\" href=\"https:\/\/www.liainfraservices.com\/contact\" target=\"_blank\" rel=\"https:\/\/www.liainfraservices.com\/contact noopener\"><img decoding=\"async\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/02\/Are-You-Looking-For-The-Best-Application-Development-Company-2.jpg\" alt=\"Different between Android - Java -Lia Infraservices\" class=\"wp-image-667\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><br>JWT Authentication mechanism:<br><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u2981 JSON Web Token&nbsp;<br>\u2981 A&nbsp;method&nbsp;for securely transmitting information between parties&nbsp;using&nbsp;a JSON object.<br>\u2981 Information Exchange: JWTs are a good way&nbsp;to&nbsp;secure&nbsp;information&nbsp;transfer&nbsp;between parties because they can be signed, which makes&nbsp;it&nbsp;easier&nbsp;to&nbsp;verify&nbsp;that&nbsp;they&nbsp;came&nbsp;from&nbsp;the&nbsp;right&nbsp;person.&nbsp;Furthermore,&nbsp;their&nbsp;structure&nbsp;allows you to verify that the content&nbsp;has&nbsp;not&nbsp;been&nbsp;modified.<br>\u2981 A&nbsp;JWT&nbsp;could&nbsp;theoretically be more&nbsp;secure, but&nbsp;at the same time,&nbsp;it would be&nbsp;less secure than&nbsp;a&nbsp;session-based authentication. For example,&nbsp;a&nbsp;JWT is more vulnerable to hijacking,&nbsp;so&nbsp;it&nbsp;should&nbsp;be designed to&nbsp;protect&nbsp;against&nbsp;hijacking.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">To Add JWT authentication in your API\u2019s using php codeigniter;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u2981 Add BD_Controller.php in Your proj-&gt;Application-&gt;core<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2981 Add Auth.php(signup and login functions alone) and Key.php in&nbsp; Your proj-&gt;Application-&gt;Controller<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2981 Add JWT.php,REST_Controller.php, BeforeValidException.php, ExpiredException.php, &nbsp; &nbsp; &nbsp; &nbsp; SignatureInvalidException.php&nbsp; &nbsp; in Your proj-&gt;Application-&gt;libraries<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2981 Add &nbsp; &nbsp; $config[&#8216;thekey&#8217;]=&#8217;ValarMorghulis!&#8217;;&nbsp; in config.php<br>\u2981 Change&nbsp; $config[&#8216;subclass_prefix&#8217;] = &#8216;MY_&#8217;;&nbsp; to &nbsp; $config[&#8216;subclass_prefix&#8217;] = &#8216;BD_&#8217;;<br>\u2981 change Controller with<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;?php<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">defined(&#8216;BASEPATH&#8217;) OR exit(&#8216;No direct script access allowed&#8217;);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">use \\Firebase\\JWT\\JWT;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">class Admin extends BD_Controller {<br>&nbsp;&nbsp;&nbsp;&nbsp;function __construct()<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/ Construct the parent class<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct();<br>&nbsp;&nbsp;&nbsp;}<br>}<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">And the BD_controller file contains<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><br>methods[&#8216;users_get&#8217;][&#8216;limit&#8217;] = 500;<br>$this-&gt;methods[&#8216;users_post&#8217;][&#8216;limit&#8217;] = 100;<br>$this-&gt;methods[&#8216;users_delete&#8217;][&#8216;limit&#8217;] = 50;<br>\/\/JWT Auth middleware<br>$headers = $this-&gt;input-&gt;get_request_header(&#8216;Authorization&#8217;);<br>$kunci = $this-&gt;config-&gt;item(&#8216;thekey&#8217;); \/\/secret key for encode and decode<br>$token= &#8220;token&#8221;;<br>if (!empty($headers)) {<br>if (preg_match(&#8216;\/Bearer\\s(\\S+)\/&#8217;, $headers , $matches)) {<br>$token = $matches[1];<br>try {<br>$decoded = JWT::decode($token, $kunci, array(&#8216;HS256&#8217;));<br>$this-&gt;user_data = $decoded;<br>} catch (Exception $e) {<br>$invalid = [&#8216;status&#8217; =&gt; $e-&gt;getMessage()]; \/\/Response if credential invalid<br>$this-&gt;response($invalid, 401);<br>}<br>}<br>}<br>}<br>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>\u2981 HS256 (HMAC with SHA-256)&nbsp;is a symmetric algorithm, with only one (secret) key that is shared between the two parties. Since the same key is used for both&nbsp;to&nbsp;generate&nbsp;the signature and to&nbsp;verify&nbsp;it,&nbsp;the key&nbsp;cannot&nbsp;be&nbsp;compromised..<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/06\/JWT-Authentication-mechanism-Lia-Infraservices-Mobile-App-Development-Company-in-Chennai.png\" alt=\"JWT Authentication mechanism - Lia Infraservices Mobile App Development Company in Chennai\" class=\"wp-image-869\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Conclusion:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To know &#8220;how to authenticate application users using the JWT Authentication mechanism?&#8221;&nbsp;contact<span class=\"has-inline-color has-vivid-cyan-blue-color\">&nbsp;<a href=\"https:\/\/www.liainfraservices.com\/\">LIA Infraservices<\/a><\/span><a href=\"https:\/\/www.liainfraservices.com\/\">&nbsp;<\/a>the leading&nbsp;<span class=\"has-inline-color has-vivid-cyan-blue-color\"><a href=\"https:\/\/www.liainfraservices.com\/mobile-app-development-company-in-chennai\" target=\"_blank\" rel=\"noreferrer noopener\">Mobile App Development Company in Chennai<\/a><\/span>,&nbsp;<span class=\"has-inline-color has-vivid-cyan-blue-color\"><a href=\"https:\/\/www.liainfraservices.com\/web-app-development-company-in-chennai\" target=\"_blank\" rel=\"noreferrer noopener\">Web Development<\/a><\/span>, DevOps, Digital Marketing, Graphics &amp; UI\/UX Design,&nbsp;<span class=\"has-inline-color has-vivid-cyan-blue-color\"><a href=\"https:\/\/www.liainfraservices.com\/cloud-migration-services\" target=\"_blank\" rel=\"noreferrer noopener\">Cloud Migration Services<\/a><\/span>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you like this blog on&nbsp;<strong>\u201cHow to authenticate application users using the JWT Authentication mechanism?\u201d<\/strong>&nbsp;please comment below or<a href=\"https:\/\/www.liainfraservices.com\/contact\" target=\"_blank\" rel=\"noreferrer noopener\">&nbsp;<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">Contact LIA Infraservices<\/span><\/strong><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a class=\"https:\/\/www.liainfraservices.com\/contact\" href=\"https:\/\/www.liainfraservices.com\/#contact\" target=\"_blank\" rel=\"https:\/\/www.liainfraservices.com\/contact noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"181\" src=\"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2018\/09\/cta-lia....jpg\" alt=\"Lia Infraservices the leading Mobile App Development company in Chennai, Web Development, DevOps, Digital Marketing, Graphics &amp; UI\/UX Design, Cloud Migration Services\" class=\"wp-image-3238\" srcset=\"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2018\/09\/cta-lia....jpg 803w, https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2018\/09\/cta-lia...-300x68.jpg 300w, https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2018\/09\/cta-lia...-768x173.jpg 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/a><\/figure>\n\n\n<div class=\"taxonomy-post_tag wp-block-post-terms has-medium-font-size\"><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/android-app-development\/\" rel=\"tag\">Android App Development<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/android-app-development-company-in-chennai\/\" rel=\"tag\">android app development company in chennai<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/android-app-development-in-saudi-arabia\/\" rel=\"tag\">android app development in saudi arabia<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/hmac-with-sha-256\/\" rel=\"tag\">HMAC with SHA-256<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/ios-app-development\/\" rel=\"tag\">iOS App Development<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/ios-app-development-company-in-chennai\/\" rel=\"tag\">ios app development company in chennai<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/ios-app-development-in-saudi-arabia\/\" rel=\"tag\">iOS App Development in Saudi Arabia<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/json\/\" rel=\"tag\">JSON<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/mobile-app-development\/\" rel=\"tag\">Mobile App Development<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/mobile-app-development-company-in-chennai\/\" rel=\"tag\">mobile app development company in chennai<\/a><span class=\"wp-block-post-terms__separator\">|<\/span><a href=\"https:\/\/www.liainfraservices.com\/blog\/tag\/mobile-app-development-in-saudi-arabia\/\" rel=\"tag\">Mobile App Development in Saudi Arabia<\/a><\/div>\n\n\n<p class=\"wp-block-paragraph\">Blog Contributed by: <a href=\"https:\/\/www.linkedin.com\/in\/bhuvaneshwari-y-9618971ab\/\"><span class=\"has-inline-color has-luminous-vivid-orange-color\">Bhuvaneshwari Y<\/span> &#8211; <strong>Senior Technical Developer, Lia <\/strong><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">min read<\/span><\/span>3,560 LIA Infraservices &#8211; the technical development expert from the leading Mobile App Development Company in Chennai brings you details about &#8220;How to authenticate application users using the JWT Authentication<\/p>\n","protected":false},"author":1,"featured_media":3323,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[698],"tags":[758,886,944,759,760,887,943,761,763,826,941],"class_list":["post-3322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mobile-application-development","tag-android-app-development","tag-android-app-development-company-in-chennai","tag-android-app-development-in-saudi-arabia","tag-hmac-with-sha-256","tag-ios-app-development","tag-ios-app-development-company-in-chennai","tag-ios-app-development-in-saudi-arabia","tag-json","tag-mobile-app-development","tag-mobile-app-development-company-in-chennai","tag-mobile-app-development-in-saudi-arabia"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to authenticate application users using the JWT Authentication mechanism? - Blog | Liainfraservices<\/title>\n<meta name=\"description\" content=\"How to authenticate application users using the JWT Authentication mechanism? Lia Infraservices Mobile App Development Company in Chennai.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to authenticate application users using the JWT Authentication mechanism? - Blog | Liainfraservices\" \/>\n<meta property=\"og:description\" content=\"How to authenticate application users using the JWT Authentication mechanism? Lia Infraservices Mobile App Development Company in Chennai.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog | Liainfraservices\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-02T03:10:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-26T07:46:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2021\/07\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"315\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Partho\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Partho\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/\"},\"author\":{\"name\":\"Partho\",\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/#\\\/schema\\\/person\\\/b5a729cb152dd3bc7f07550ca9d223e4\"},\"headline\":\"How to authenticate application users using the JWT Authentication mechanism?\",\"datePublished\":\"2021-07-02T03:10:50+00:00\",\"dateModified\":\"2022-08-26T07:46:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/\"},\"wordCount\":598,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg\",\"keywords\":[\"Android App Development\",\"android app development company in chennai\",\"android app development in saudi arabia\",\"HMAC with SHA-256\",\"iOS App Development\",\"ios app development company in chennai\",\"iOS App Development in Saudi Arabia\",\"JSON\",\"Mobile App Development\",\"mobile app development company in chennai\",\"Mobile App Development in Saudi Arabia\"],\"articleSection\":[\"Mobile Application Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/\",\"url\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/\",\"name\":\"How to authenticate application users using the JWT Authentication mechanism? - Blog | Liainfraservices\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg\",\"datePublished\":\"2021-07-02T03:10:50+00:00\",\"dateModified\":\"2022-08-26T07:46:30+00:00\",\"description\":\"How to authenticate application users using the JWT Authentication mechanism? Lia Infraservices Mobile App Development Company in Chennai.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg\",\"contentUrl\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg\",\"width\":512,\"height\":315,\"caption\":\"How to authenticate application user using JWT Authentication mechanism - Lia Infraservices Mobile App Development Company in Chennai\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mobile Application Development\",\"item\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/category\\\/mobile-application-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to authenticate application users using the JWT Authentication mechanism?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/\",\"name\":\"Blog | Liainfraservices\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/#organization\",\"name\":\"Blog | Liainfraservices\",\"url\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/lia-logo-b-e1635340384244.png\",\"contentUrl\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/lia-logo-b-e1635340384244.png\",\"width\":308,\"height\":96,\"caption\":\"Blog | Liainfraservices\"},\"image\":{\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.liainfraservices.com\\\/blog\\\/#\\\/schema\\\/person\\\/b5a729cb152dd3bc7f07550ca9d223e4\",\"name\":\"Partho\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6c5fc8918cc5dbc844eccbeaaf854eef27d2c79ab17ff0022304f712805d6959?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6c5fc8918cc5dbc844eccbeaaf854eef27d2c79ab17ff0022304f712805d6959?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6c5fc8918cc5dbc844eccbeaaf854eef27d2c79ab17ff0022304f712805d6959?s=96&d=mm&r=g\",\"caption\":\"Partho\"},\"description\":\"Partho Das, founder of Lia Infraservices, has 15+ years of expertise in cloud solutions, DevOps, and infrastructure security. He provides consultation on architecture planning, DevOps setup, Kubernetes, and cloud migrations. Partho holds multiple AWS and Azure certifications, along with CISCO CCNA &amp; CCNP. Connect on LinkedIn\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/partho-dev\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to authenticate application users using the JWT Authentication mechanism? - Blog | Liainfraservices","description":"How to authenticate application users using the JWT Authentication mechanism? Lia Infraservices Mobile App Development Company in Chennai.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/","og_locale":"en_US","og_type":"article","og_title":"How to authenticate application users using the JWT Authentication mechanism? - Blog | Liainfraservices","og_description":"How to authenticate application users using the JWT Authentication mechanism? Lia Infraservices Mobile App Development Company in Chennai.","og_url":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/","og_site_name":"Blog | Liainfraservices","article_published_time":"2021-07-02T03:10:50+00:00","article_modified_time":"2022-08-26T07:46:30+00:00","og_image":[{"width":512,"height":315,"url":"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2021\/07\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg","type":"image\/jpeg"}],"author":"Partho","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Partho","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/#article","isPartOf":{"@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/"},"author":{"name":"Partho","@id":"https:\/\/www.liainfraservices.com\/blog\/#\/schema\/person\/b5a729cb152dd3bc7f07550ca9d223e4"},"headline":"How to authenticate application users using the JWT Authentication mechanism?","datePublished":"2021-07-02T03:10:50+00:00","dateModified":"2022-08-26T07:46:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/"},"wordCount":598,"commentCount":0,"publisher":{"@id":"https:\/\/www.liainfraservices.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/#primaryimage"},"thumbnailUrl":"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2021\/07\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg","keywords":["Android App Development","android app development company in chennai","android app development in saudi arabia","HMAC with SHA-256","iOS App Development","ios app development company in chennai","iOS App Development in Saudi Arabia","JSON","Mobile App Development","mobile app development company in chennai","Mobile App Development in Saudi Arabia"],"articleSection":["Mobile Application Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/","url":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/","name":"How to authenticate application users using the JWT Authentication mechanism? - Blog | Liainfraservices","isPartOf":{"@id":"https:\/\/www.liainfraservices.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/#primaryimage"},"image":{"@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/#primaryimage"},"thumbnailUrl":"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2021\/07\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg","datePublished":"2021-07-02T03:10:50+00:00","dateModified":"2022-08-26T07:46:30+00:00","description":"How to authenticate application users using the JWT Authentication mechanism? Lia Infraservices Mobile App Development Company in Chennai.","breadcrumb":{"@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/#primaryimage","url":"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2021\/07\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg","contentUrl":"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2021\/07\/How-to-authenticate-application-user-using-JWT-Authentication-mechanism.jpg","width":512,"height":315,"caption":"How to authenticate application user using JWT Authentication mechanism - Lia Infraservices Mobile App Development Company in Chennai"},{"@type":"BreadcrumbList","@id":"https:\/\/www.liainfraservices.com\/blog\/how-to-authenticate-application-users-using-the-jwt-authentication-mechanism\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.liainfraservices.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Mobile Application Development","item":"https:\/\/www.liainfraservices.com\/blog\/category\/mobile-application-development\/"},{"@type":"ListItem","position":3,"name":"How to authenticate application users using the JWT Authentication mechanism?"}]},{"@type":"WebSite","@id":"https:\/\/www.liainfraservices.com\/blog\/#website","url":"https:\/\/www.liainfraservices.com\/blog\/","name":"Blog | Liainfraservices","description":"","publisher":{"@id":"https:\/\/www.liainfraservices.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.liainfraservices.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.liainfraservices.com\/blog\/#organization","name":"Blog | Liainfraservices","url":"https:\/\/www.liainfraservices.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.liainfraservices.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2021\/10\/lia-logo-b-e1635340384244.png","contentUrl":"https:\/\/www.liainfraservices.com\/blog\/wp-content\/uploads\/2021\/10\/lia-logo-b-e1635340384244.png","width":308,"height":96,"caption":"Blog | Liainfraservices"},"image":{"@id":"https:\/\/www.liainfraservices.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.liainfraservices.com\/blog\/#\/schema\/person\/b5a729cb152dd3bc7f07550ca9d223e4","name":"Partho","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6c5fc8918cc5dbc844eccbeaaf854eef27d2c79ab17ff0022304f712805d6959?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6c5fc8918cc5dbc844eccbeaaf854eef27d2c79ab17ff0022304f712805d6959?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6c5fc8918cc5dbc844eccbeaaf854eef27d2c79ab17ff0022304f712805d6959?s=96&d=mm&r=g","caption":"Partho"},"description":"Partho Das, founder of Lia Infraservices, has 15+ years of expertise in cloud solutions, DevOps, and infrastructure security. He provides consultation on architecture planning, DevOps setup, Kubernetes, and cloud migrations. Partho holds multiple AWS and Azure certifications, along with CISCO CCNA &amp; CCNP. Connect on LinkedIn","sameAs":["https:\/\/www.linkedin.com\/in\/partho-dev\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/posts\/3322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/comments?post=3322"}],"version-history":[{"count":5,"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/posts\/3322\/revisions"}],"predecessor-version":[{"id":5027,"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/posts\/3322\/revisions\/5027"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/media\/3323"}],"wp:attachment":[{"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/media?parent=3322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/categories?post=3322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liainfraservices.com\/blog\/wp-json\/wp\/v2\/tags?post=3322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}