{"id":560,"date":"2016-09-23T12:42:26","date_gmt":"2016-09-23T10:42:26","guid":{"rendered":"https:\/\/zaven.co\/blog\/?p=560"},"modified":"2025-04-08T19:55:19","modified_gmt":"2025-04-08T17:55:19","slug":"user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3","status":"publish","type":"post","link":"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/","title":{"rendered":"User Authentication in ASP.NET WEB API 2 with RSA-signed JWT Tokens (part 3)"},"content":{"rendered":"<p>By now we should understand the structure and process of how <a href=\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-jwt-tokens\/\">JWT Tokens<\/a> works. Today in our example of <strong>user authentication in ASP.NET API 2 we will deal with AuthService<\/strong>, which is responsible for creating, signing and verifying JWT tokens.<!--more--><\/p>\n<p>In the previous part we covered <code>MembershipProvider<\/code> (which downloads claims and validates the user) and <code>RSAKeyProvider<\/code> (which provides the <a href=\"https:\/\/zaven.co\/blog\/user-authentication-web-api-2-jwt-token\/\">RSA key<\/a> to encrypt\/decrypt our JWT token).<\/p>\n<h2>AuthService<\/h2>\n<p><strong><code>AuthService<\/code>is the most important element of our application<\/strong>. <em>It\u2019s responsible for creating JWT tokens as well as for signing and verifying an incoming ones<\/em>. It has two methods (<code>GenerateJwtToken()<\/code> and <code>ValidateToken()<\/code>) and it uses both <code>MembershipProvider<\/code> (login validation, downloading claims) and <code>RSAKeyProvider<\/code> (for providing the signing key).<\/p>\n<pre><code class=\"language-csharp\">\nusing System;\nusing System.Collections.Generic;\nusing System.IdentityModel.Tokens.Jwt;\nusing System.Security.Claims;\nusing System.Security.Cryptography;\nusing System.Threading.Tasks;\nusing Zaven.Practices.Auth.JWT.Providers.Interfaces;\nusing Zaven.Practices.Auth.JWT.Services.Interfaces;\nusing Microsoft.IdentityModel.Tokens;\n\n...\npublic class AuthService : IAuthService\n    {\n\t...\n        private readonly IMembershipProvider _membershipProvider;\n        private readonly IRSAKeyProvider _rsaProvider;\n\n        public AuthService(IMembershipProvider membershipProvider, IRSAKeyProvider rsaProvider)\n        {\n            _membershipProvider = membershipProvider;\n            _rsaProvider = rsaProvider;\n        }\n\t\u2026\n}\n<\/code><\/pre>\n<h2>Generating the JWT Token<\/h2>\n<p>Here is one of the two main <code>AuthService<\/code> methods:<\/p>\n<pre><code class=\"language-csharp\">\npublic async Task GenerateJwtTokenAsync(string username, string password)\n        {\n            if (!_membershipProvider.VerifyUserPassword(username, password))\n                return \"Wrong access\";\n\n            List claims = _membershipProvider.GetUserClaims(username);\n\n            string publicAndPrivateKey = await _rsaProvider.GetPrivateAndPublicKeyAsync();\n            if(publicAndPrivateKey == null)\n                return \"RSA key error\";\n\n            RSACryptoServiceProvider publicAndPrivate = new RSACryptoServiceProvider();            \n            publicAndPrivate.FromXmlString(publicAndPrivateKey);\n\n            JwtSecurityToken jwtToken = new JwtSecurityToken\n            (\n                issuer: \"http:\/\/issuer.com\",\n                audience: \"http:\/\/mysite.com\",\n                claims: claims,\n                signingCredentials: new SigningCredentials(new RsaSecurityKey(publicAndPrivate), SecurityAlgorithms.RsaSha256Signature),\n                expires: DateTime.Now.AddDays(30)\n            );\n\n            JwtSecurityTokenHandler tokenHandler = new JwtSecurityTokenHandler();\n            string tokenString = tokenHandler.WriteToken(jwtToken);\n\n            return tokenString;\n        }\n<\/code><\/pre>\n<p><code>VerifyUserPassword()<\/code> (part of <code>MembershipProvider<\/code>) valides data provided by the user. If he doesn\u2019t exist, a feedback message gets send. If the user exists, his claims are downloaded to be placed in the token later.<\/p>\n<p>Next, we create the RSA key, which is delivered through <code>RSAKeyProvider<\/code> by the <code>GetPrivateAndPublicKey()<\/code> method. In this example, the key is being kept in a regular file. Note: in real-case scenarios keys should be kept in a safe place!<\/p>\n<p>The object of the initiated <code>RSACryptoServiceProvider<\/code> class is a previously created key (<code>publicAndPrivateKey<\/code>).<\/p>\n<pre><code class=\"language-csharp\">\nRSACryptoServiceProvider publicAndPrivate = new RSACryptoServiceProvider();            \npublicAndPrivate.FromXmlString(publicAndPrivateKey);\n<\/code><\/pre>\n<p>When we have all data, we can create the JWT token (in JSON format) as an object of <code>JwtSecurityToken<\/code> class with following properties:<\/p>\n<ul>\n<li><strong>issuer<\/strong>: the token sender<\/li>\n<li><strong>audience<\/strong>: defines the token receiver<\/li>\n<li><strong>claims<\/strong>: defines claims<\/li>\n<li><strong>expires<\/strong>: defines the expiration date of a token<\/li>\n<li><strong>signingCredentials<\/strong>: defines the method of data validation<\/li>\n<\/ul>\n<p>Next, our JWT token has to be converted from JSON into a compact string (a character string separated by dots: <code>xxx.yyy.zzz<\/code>). To do this, create an object of <code>JwtSecurityTokenHandler<\/code>class and call it with <code>WriteToken()<\/code>.<br \/>\nA such prepared Token is then sent to the user.<\/p>\n<h2>JWT Token validation<\/h2>\n<p><strong>The second most important method of <code>AuthService<\/code> is <code>ValidateTokenAsync()<\/code><\/strong>, which tries to decrypt a sent JWT token and checks its validity. If one of these two operations does not succeed, a Boolean status gets returned.<\/p>\n<pre><code class=\"language-csharp\">\npublic async Task ValidateTokenAsync(string TokenString)\n        {\n            Boolean result = false;\n\n            try\n            {\n                SecurityToken securityToken = new JwtSecurityToken(TokenString);\n                JwtSecurityTokenHandler securityTokenHandler = new JwtSecurityTokenHandler();\n                RSACryptoServiceProvider publicAndPrivate = new RSACryptoServiceProvider();\n\n                string publicAndPrivateKey = await _rsaProvider.GetPrivateAndPublicKeyAsync();\n                if (publicAndPrivateKey == null)\n                    return result;\n\n                publicAndPrivate.FromXmlString(publicAndPrivateKey);\n\n                TokenValidationParameters validationParameters = new TokenValidationParameters()\n                {\n                    ValidIssuer = \"http:\/\/issuer.com\",\n                    ValidAudience = \"http:\/\/mysite.com\",\n                    IssuerSigningKey = new RsaSecurityKey(publicAndPrivate)\n                };\n                \n                ClaimsPrincipal claimsPrincipal = securityTokenHandler.ValidateToken(TokenString, validationParameters, out securityToken);\n\n                result = true;\n            }\n            catch (Exception ex)\n            {\n                result = false;\n            }\n\n            return result;\n        }\n<\/code><\/pre>\n<p>Similarly, when signing, we create an object of type <code>RSACryptoServiceProvider<\/code> that is initiated by a key stored in a global variable. Our token in the format of a compact string has to be converted back to JSON.<\/p>\n<p><em>A <code>TokenValidationParameters<\/code> object includes a list of parameters which will be used by a <code>SecurityTokenHandler<\/code> object during the attempt of reading the JWT token.<\/em> In this case the given properties are: issuer, audience and an object of <code>RsaSecurityKey<\/code> which is responsible for decrypting.<\/p>\n<p><code>ValidateToken()<\/code> from <code>JwtsecurityTokenHandler<\/code> will attempt to read any claims. If the token is invalid or claims are unreadable, the exception will be caught and the method will return false.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-564\" src=\"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/5-730x154.png\" alt=\"AuthService\"   srcset=\"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/5-730x154.png 730w, https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/5.png 924w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>In&nbsp;the next part, we can move on to <a href=\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-4\/\">programming the login controller<\/a> and test our application.<\/p>\n<p>Sources:<\/p>\n<ul>\n<li><a href=\"https:\/\/jwt.io\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Official JWT website<\/a><\/li>\n<li><a href=\"http:\/\/dotnetcodes.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">.NET Codes website<\/a><\/li>\n<li><a href=\"https:\/\/msdn.microsoft.com\/pl-pl\/default.aspx\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Microsoft Developer Network<\/a><\/li>\n<li><a href=\"http:\/\/www.asp.net\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">The ASP.NET Site<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>By now we should understand the structure and process of how JWT Tokens works. Today in our example of user authentication in ASP.NET API 2 we will deal with AuthService, which is responsible for creating, signing and verifying JWT tokens.<\/p>\n","protected":false},"author":12,"featured_media":588,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56,57,5],"tags":[48,47,40,8,49,41],"class_list":["post-560","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android-development","category-ios-development","category-tutorials","tag-json-tokens","tag-jwt","tag-mobile-app","tag-tutorial","tag-user-authentication","tag-web-app"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AuthService. JWTSecurityTokenHandler | Zaven Blog<\/title>\n<meta name=\"description\" content=\"We will deal with AuthService, which is responsible for creating, signing and verifying JWT tokens. Read more information on Zaven&#039;s blog!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AuthService. JWTSecurityTokenHandler | Zaven Blog\" \/>\n<meta property=\"og:description\" content=\"We will deal with AuthService, which is responsible for creating, signing and verifying JWT tokens. Read more information on Zaven&#039;s blog!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/\" \/>\n<meta property=\"og:site_name\" content=\"Zaven Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-23T10:42:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-08T17:55:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/kluczw_4-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"795\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Micha\u0142 Zawadzki\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Micha\u0142 Zawadzki\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/\",\"url\":\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/\",\"name\":\"AuthService. JWTSecurityTokenHandler | Zaven Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zaven.co\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/kluczw_4-1.jpg\",\"datePublished\":\"2016-09-23T10:42:26+00:00\",\"dateModified\":\"2025-04-08T17:55:19+00:00\",\"author\":{\"@id\":\"https:\/\/zaven.co\/blog\/#\/schema\/person\/7398fa7d171618b07d568aea38f1d17f\"},\"description\":\"We will deal with AuthService, which is responsible for creating, signing and verifying JWT tokens. Read more information on Zaven's blog!\",\"breadcrumb\":{\"@id\":\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#primaryimage\",\"url\":\"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/kluczw_4-1.jpg\",\"contentUrl\":\"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/kluczw_4-1.jpg\",\"width\":1500,\"height\":795,\"caption\":\"User Authentication in ASP.NET WEB API 2 with RSA-encrypted JWT Tokens\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zaven.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"User Authentication in ASP.NET WEB API 2 with RSA-signed JWT Tokens (part 3)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zaven.co\/blog\/#website\",\"url\":\"https:\/\/zaven.co\/blog\/\",\"name\":\"Zaven Blog\",\"description\":\"Software development blog. Generative AI, web &amp; mobile applications.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zaven.co\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zaven.co\/blog\/#\/schema\/person\/7398fa7d171618b07d568aea38f1d17f\",\"name\":\"Micha\u0142 Zawadzki\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zaven.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ca67b3acf11d373f6677081d08548407?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ca67b3acf11d373f6677081d08548407?s=96&d=mm&r=g\",\"caption\":\"Micha\u0142 Zawadzki\"},\"description\":\"Micha\u0142 is at the Back-end site of our software team, specializing in .NET web apps. Apart from being an excellent table tennis player, he\u2019s very much into sci-fi literature and computer games.\",\"sameAs\":[\"https:\/\/pl.linkedin.com\/in\/micha\u0142-zawadzki-003428126\"],\"url\":\"https:\/\/zaven.co\/blog\/author\/michal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AuthService. JWTSecurityTokenHandler | Zaven Blog","description":"We will deal with AuthService, which is responsible for creating, signing and verifying JWT tokens. Read more information on Zaven's blog!","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:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/","og_locale":"en_US","og_type":"article","og_title":"AuthService. JWTSecurityTokenHandler | Zaven Blog","og_description":"We will deal with AuthService, which is responsible for creating, signing and verifying JWT tokens. Read more information on Zaven's blog!","og_url":"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/","og_site_name":"Zaven Blog","article_published_time":"2016-09-23T10:42:26+00:00","article_modified_time":"2025-04-08T17:55:19+00:00","og_image":[{"width":1500,"height":795,"url":"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/kluczw_4-1.jpg","type":"image\/jpeg"}],"author":"Micha\u0142 Zawadzki","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Micha\u0142 Zawadzki","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/","url":"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/","name":"AuthService. JWTSecurityTokenHandler | Zaven Blog","isPartOf":{"@id":"https:\/\/zaven.co\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#primaryimage"},"image":{"@id":"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#primaryimage"},"thumbnailUrl":"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/kluczw_4-1.jpg","datePublished":"2016-09-23T10:42:26+00:00","dateModified":"2025-04-08T17:55:19+00:00","author":{"@id":"https:\/\/zaven.co\/blog\/#\/schema\/person\/7398fa7d171618b07d568aea38f1d17f"},"description":"We will deal with AuthService, which is responsible for creating, signing and verifying JWT tokens. Read more information on Zaven's blog!","breadcrumb":{"@id":"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#primaryimage","url":"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/kluczw_4-1.jpg","contentUrl":"https:\/\/zaven.co\/blog\/wp-content\/uploads\/2016\/09\/kluczw_4-1.jpg","width":1500,"height":795,"caption":"User Authentication in ASP.NET WEB API 2 with RSA-encrypted JWT Tokens"},{"@type":"BreadcrumbList","@id":"https:\/\/zaven.co\/blog\/user-authentication-asp-net-web-api-2-rsa-jwt-tokens-part-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zaven.co\/blog\/"},{"@type":"ListItem","position":2,"name":"User Authentication in ASP.NET WEB API 2 with RSA-signed JWT Tokens (part 3)"}]},{"@type":"WebSite","@id":"https:\/\/zaven.co\/blog\/#website","url":"https:\/\/zaven.co\/blog\/","name":"Zaven Blog","description":"Software development blog. Generative AI, web &amp; mobile applications.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zaven.co\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zaven.co\/blog\/#\/schema\/person\/7398fa7d171618b07d568aea38f1d17f","name":"Micha\u0142 Zawadzki","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zaven.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ca67b3acf11d373f6677081d08548407?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ca67b3acf11d373f6677081d08548407?s=96&d=mm&r=g","caption":"Micha\u0142 Zawadzki"},"description":"Micha\u0142 is at the Back-end site of our software team, specializing in .NET web apps. Apart from being an excellent table tennis player, he\u2019s very much into sci-fi literature and computer games.","sameAs":["https:\/\/pl.linkedin.com\/in\/micha\u0142-zawadzki-003428126"],"url":"https:\/\/zaven.co\/blog\/author\/michal\/"}]}},"_links":{"self":[{"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/posts\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/comments?post=560"}],"version-history":[{"count":14,"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":69776,"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/posts\/560\/revisions\/69776"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/media\/588"}],"wp:attachment":[{"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/categories?post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zaven.co\/blog\/wp-json\/wp\/v2\/tags?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}