{"id":1286,"date":"2025-03-06T14:17:20","date_gmt":"2025-03-06T13:17:20","guid":{"rendered":"http:\/\/blog.c-hase.de\/?p=1286"},"modified":"2025-03-06T14:17:20","modified_gmt":"2025-03-06T13:17:20","slug":"authentification-jwt","status":"publish","type":"post","link":"http:\/\/blog.c-hase.de\/?p=1286","title":{"rendered":"Authentification jwt"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>Microsoft.IdentityModel.Tokens.SecurityTokenMalformedException: IDX14100: JWT is not well formed, there are no dots (.).\nThe token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE): 'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'.\n ---> System.ArgumentException: IDX14101: Unable to decode the payload '&#91;PII of type 'Microsoft.IdentityModel.Logging.SecurityArtifact' is hidden. For more details, see https:\/\/aka.ms\/IdentityModel\/PII.]' as Base64Url encoded string.\n ---> System.Text.Json.JsonException: IDX11020: The JSON value of type: 'String', could not be converted to 'JsonTokenType.Number'. Reading: 'Microsoft.IdentityModel.JsonWebTokens.JsonWebToken.iat', Position: '185', CurrentDepth: '1', BytesConsumed: '213'.\n   at Microsoft.IdentityModel.Tokens.Json.JsonSerializerPrimitives.ReadLong(Utf8JsonReader&amp; reader, String propertyName, String className, Boolean read)\n   at Microsoft.IdentityModel.JsonWebTokens.JsonWebToken.CreatePayloadClaimSet(Byte&#91;] bytes, Int32 length)\n   at Microsoft.IdentityModel.Tokens.Base64UrlEncoding.Decode&#91;T](String input, Int32 offset, Int32 length, Func`3 action)\n   at Microsoft.IdentityModel.JsonWebTokens.JsonWebToken.CreateClaimSet(String rawString, Int32 startIndex, Int32 length, Func`3 action)\n   at Microsoft.IdentityModel.JsonWebTokens.JsonWebToken.ReadToken(String encodedJson)\n   --- End of inner exception stack trace ---\n   at Microsoft.IdentityModel.JsonWebTokens.JsonWebToken.ReadToken(String encodedJson)\n   at Microsoft.IdentityModel.JsonWebTokens.JsonWebToken..ctor(String jwtEncodedString)\n   at Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.ReadToken(String token, TokenValidationParameters validationParameters)\n   --- End of inner exception stack trace ---<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Als L\u00f6sung hat geholfen <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">System.IdentityModel.Tokens.Jwt zu installieren.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Als L\u00f6sung hat geholfen System.IdentityModel.Tokens.Jwt zu installieren.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1286","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/posts\/1286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1286"}],"version-history":[{"count":1,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/posts\/1286\/revisions"}],"predecessor-version":[{"id":1287,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/posts\/1286\/revisions\/1287"}],"wp:attachment":[{"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1286"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}