{"id":1748,"date":"2018-01-11T15:55:07","date_gmt":"2018-01-11T20:55:07","guid":{"rendered":"http:\/\/blog.vortexbird.com\/?p=1207"},"modified":"2025-03-18T20:22:31","modified_gmt":"2025-03-18T20:22:31","slug":"json-web-tokens-jwt","status":"publish","type":"post","link":"https:\/\/vortexbird.com\/en\/json-web-tokens-jwt\/","title":{"rendered":"JSON Web Tokens (JWT)"},"content":{"rendered":"<p style=\"text-align: justify;\">JSON Web Token (JWT) es un est\u00e1ndar abierto basado en (RFC-7519) el cual usa JSON para crear un token que sirva para enviar datos entre aplicaciones o de forma segura.<\/p>\n<p style=\"text-align: justify;\">Sirve para asegurar servicios REST garantizando que la informaci\u00f3n de ingreso es v\u00e1lida y el cliente se encuentra autenticado. Cuando un cliente se quiere autenticar manda sus datos de inicio de sesi\u00f3n al servidor, el servidor genera el JWT y se lo env\u00eda a la aplicaci\u00f3n cliente, luego en cada petici\u00f3n el cliente env\u00eda el token que el servidor usa para verificar que el usuario este correctamente autenticado y saber qui\u00e9n es. A continuaci\u00f3n, se presenta un diagrama de secuencia tomado del sitio de JWT.<img decoding=\"async\" class=\"alignnone wp-image-1210 size-full lazyload\" data-src=\"http:\/\/vortexbird.com\/wp-content\/uploads\/2018\/01\/jwt-diagram.png\" alt=\"\" width=\"1334\" height=\"748\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1334px; --smush-placeholder-aspect-ratio: 1334\/748;\" \/><\/p>\n<p style=\"text-align: justify;\">Tambi\u00e9n se puede usar para garantizar que informaci\u00f3n que se env\u00eda entre aplicaciones no se han alterado.<\/p>\n<p style=\"text-align: justify;\">Los invito a ingresar a el sitio de JWT www.jwt.io<\/p>","protected":false},"excerpt":{"rendered":"<p>JSON Web Token (JWT) es un est\u00e1ndar abierto basado en (RFC-7519) el cual usa JSON para crear un token que &#8230; <a class=\"cz_readmore cz_readmore_no_icon\" href=\"https:\/\/vortexbird.com\/en\/json-web-tokens-jwt\/\"><span>Read more<\/span><\/a><\/p>","protected":false},"author":2,"featured_media":4596,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[63,15,144,146,177],"tags":[175,176,34,178,179,180,181,182],"class_list":["post-1748","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-javaee","category-javascript","category-js","category-json","tag-delete","tag-head","tag-json","tag-jwt","tag-post","tag-put","tag-rest","tag-seguridad"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JSON Web Tokens (JWT)<\/title>\n<meta name=\"description\" content=\"JSON Web Token (JWT) es un est\u00e1ndar abierto basado en (RFC-7519) el cual usa JSON para crear un token que sirva para enviar datos entre aplicaciones o de forma segura.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vortexbird.com\/en\/json-web-tokens-jwt\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSON Web Tokens (JWT)\" \/>\n<meta property=\"og:description\" content=\"JSON Web Token (JWT) es un est\u00e1ndar abierto basado en (RFC-7519) el cual usa JSON para crear un token que sirva para enviar datos entre aplicaciones o de forma segura.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vortexbird.com\/en\/json-web-tokens-jwt\/\" \/>\n<meta property=\"og:site_name\" content=\"Vortexbird\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-11T20:55:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-18T20:22:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vortexbird.com\/wp-content\/uploads\/2018\/07\/JDK-y-JAVA_HOME-en-Ubuntu.png\" \/>\n\t<meta property=\"og:image:width\" content=\"682\" \/>\n\t<meta property=\"og:image:height\" content=\"389\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"dgomez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dgomez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/\"},\"author\":{\"name\":\"dgomez\",\"@id\":\"https:\\\/\\\/vortexbird.com\\\/#\\\/schema\\\/person\\\/2002d36d5cfa4075279e9f558231ccd5\"},\"headline\":\"JSON Web Tokens (JWT)\",\"datePublished\":\"2018-01-11T20:55:07+00:00\",\"dateModified\":\"2025-03-18T20:22:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/\"},\"wordCount\":161,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vortexbird.com\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/JDK-y-JAVA_HOME-en-Ubuntu.png\",\"keywords\":[\"DELETE\",\"HEAD\",\"JSON\",\"jwt\",\"POST\",\"PUT\",\"rest\",\"seguridad\"],\"articleSection\":[\"Cloud\",\"JavaEE\",\"javascript\",\"js\",\"json\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/\",\"url\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/\",\"name\":\"JSON Web Tokens (JWT)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vortexbird.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vortexbird.com\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/JDK-y-JAVA_HOME-en-Ubuntu.png\",\"datePublished\":\"2018-01-11T20:55:07+00:00\",\"dateModified\":\"2025-03-18T20:22:31+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vortexbird.com\\\/#\\\/schema\\\/person\\\/2002d36d5cfa4075279e9f558231ccd5\"},\"description\":\"JSON Web Token (JWT) es un est\u00e1ndar abierto basado en (RFC-7519) el cual usa JSON para crear un token que sirva para enviar datos entre aplicaciones o de forma segura.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vortexbird.com\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/JDK-y-JAVA_HOME-en-Ubuntu.png\",\"contentUrl\":\"https:\\\/\\\/vortexbird.com\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/JDK-y-JAVA_HOME-en-Ubuntu.png\",\"width\":682,\"height\":389,\"caption\":\"image JDK y JAVA_HOME en Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vortexbird.com\\\/json-web-tokens-jwt\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/vortexbird.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSON Web Tokens (JWT)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vortexbird.com\\\/#website\",\"url\":\"https:\\\/\\\/vortexbird.com\\\/\",\"name\":\"Vortexbird\",\"description\":\"Desarrollo &aacute;gil de software\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vortexbird.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vortexbird.com\\\/#\\\/schema\\\/person\\\/2002d36d5cfa4075279e9f558231ccd5\",\"name\":\"dgomez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/408dc45c4a40d56435a45fc9811853fddccc0c9ac30c815e85e70b8620089a03?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/408dc45c4a40d56435a45fc9811853fddccc0c9ac30c815e85e70b8620089a03?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/408dc45c4a40d56435a45fc9811853fddccc0c9ac30c815e85e70b8620089a03?s=96&d=mm&r=g\",\"caption\":\"dgomez\"},\"url\":\"https:\\\/\\\/vortexbird.com\\\/en\\\/author\\\/dgomez\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JSON Web Tokens (JWT)","description":"JSON Web Token (JWT) es un est\u00e1ndar abierto basado en (RFC-7519) el cual usa JSON para crear un token que sirva para enviar datos entre aplicaciones o de forma segura.","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:\/\/vortexbird.com\/en\/json-web-tokens-jwt\/","og_locale":"en_US","og_type":"article","og_title":"JSON Web Tokens (JWT)","og_description":"JSON Web Token (JWT) es un est\u00e1ndar abierto basado en (RFC-7519) el cual usa JSON para crear un token que sirva para enviar datos entre aplicaciones o de forma segura.","og_url":"https:\/\/vortexbird.com\/en\/json-web-tokens-jwt\/","og_site_name":"Vortexbird","article_published_time":"2018-01-11T20:55:07+00:00","article_modified_time":"2025-03-18T20:22:31+00:00","og_image":[{"width":682,"height":389,"url":"https:\/\/vortexbird.com\/wp-content\/uploads\/2018\/07\/JDK-y-JAVA_HOME-en-Ubuntu.png","type":"image\/png"}],"author":"dgomez","twitter_card":"summary_large_image","twitter_misc":{"Written by":"dgomez","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/#article","isPartOf":{"@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/"},"author":{"name":"dgomez","@id":"https:\/\/vortexbird.com\/#\/schema\/person\/2002d36d5cfa4075279e9f558231ccd5"},"headline":"JSON Web Tokens (JWT)","datePublished":"2018-01-11T20:55:07+00:00","dateModified":"2025-03-18T20:22:31+00:00","mainEntityOfPage":{"@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/"},"wordCount":161,"commentCount":0,"image":{"@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/#primaryimage"},"thumbnailUrl":"https:\/\/vortexbird.com\/wp-content\/uploads\/2018\/07\/JDK-y-JAVA_HOME-en-Ubuntu.png","keywords":["DELETE","HEAD","JSON","jwt","POST","PUT","rest","seguridad"],"articleSection":["Cloud","JavaEE","javascript","js","json"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/vortexbird.com\/json-web-tokens-jwt\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/","url":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/","name":"JSON Web Tokens (JWT)","isPartOf":{"@id":"https:\/\/vortexbird.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/#primaryimage"},"image":{"@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/#primaryimage"},"thumbnailUrl":"https:\/\/vortexbird.com\/wp-content\/uploads\/2018\/07\/JDK-y-JAVA_HOME-en-Ubuntu.png","datePublished":"2018-01-11T20:55:07+00:00","dateModified":"2025-03-18T20:22:31+00:00","author":{"@id":"https:\/\/vortexbird.com\/#\/schema\/person\/2002d36d5cfa4075279e9f558231ccd5"},"description":"JSON Web Token (JWT) es un est\u00e1ndar abierto basado en (RFC-7519) el cual usa JSON para crear un token que sirva para enviar datos entre aplicaciones o de forma segura.","breadcrumb":{"@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vortexbird.com\/json-web-tokens-jwt\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/#primaryimage","url":"https:\/\/vortexbird.com\/wp-content\/uploads\/2018\/07\/JDK-y-JAVA_HOME-en-Ubuntu.png","contentUrl":"https:\/\/vortexbird.com\/wp-content\/uploads\/2018\/07\/JDK-y-JAVA_HOME-en-Ubuntu.png","width":682,"height":389,"caption":"image JDK y JAVA_HOME en Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/vortexbird.com\/json-web-tokens-jwt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/vortexbird.com\/"},{"@type":"ListItem","position":2,"name":"JSON Web Tokens (JWT)"}]},{"@type":"WebSite","@id":"https:\/\/vortexbird.com\/#website","url":"https:\/\/vortexbird.com\/","name":"Vortexbird","description":"Desarrollo &aacute;gil de software","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vortexbird.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vortexbird.com\/#\/schema\/person\/2002d36d5cfa4075279e9f558231ccd5","name":"dgomez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/408dc45c4a40d56435a45fc9811853fddccc0c9ac30c815e85e70b8620089a03?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/408dc45c4a40d56435a45fc9811853fddccc0c9ac30c815e85e70b8620089a03?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/408dc45c4a40d56435a45fc9811853fddccc0c9ac30c815e85e70b8620089a03?s=96&d=mm&r=g","caption":"dgomez"},"url":"https:\/\/vortexbird.com\/en\/author\/dgomez\/"}]}},"_links":{"self":[{"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/posts\/1748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/comments?post=1748"}],"version-history":[{"count":0,"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/posts\/1748\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/media\/4596"}],"wp:attachment":[{"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/media?parent=1748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/categories?post=1748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vortexbird.com\/en\/wp-json\/wp\/v2\/tags?post=1748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}