<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JWT is not well formed in APIs</title>
    <link>https://community.cisco.com/t5/apis/jwt-is-not-well-formed/m-p/4881481#M365</link>
    <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Thank you for coming back to share your solution.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 08 Feb 2023 19:59:35 GMT</pubDate>
    <dc:creator>DuoKristina</dc:creator>
    <dc:date>2023-02-08T19:59:35Z</dc:date>
    <item>
      <title>JWT is not well formed</title>
      <link>https://community.cisco.com/t5/apis/jwt-is-not-well-formed/m-p/4881479#M363</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hello, I’m adding DUO web sdk v4 to my MVC project.  I have added the DUO Universal project to the solution, client seems to work, DUO health check is passed, and am redirected to the API site. I get 2FA notification on my device and click approve (and it’s marked as such in the logs on DUO web site)&lt;/P&gt;
&lt;P&gt;My callback function gets the state and the code parameters returned, but upon running the ExchangeAuthorizationCodeFor2faResult, I get an error.  Any ideas on how to get past this one?&lt;/P&gt;
&lt;P&gt;Code in my callback:&lt;BR /&gt;
Dim token As IdToken = Await DuoClient.ExchangeAuthorizationCodeFor2faResult(code, sessionUsername)&lt;/P&gt;
&lt;P&gt;I’m failing on the JwtUtils.cs line 69  TokenValidationResult result = jwtHandler.ValidateToken(jwt, validationParameters);&lt;/P&gt;
&lt;P&gt;the result is not valid and error is&lt;/P&gt;
&lt;P&gt;Message = "IDX14100: JWT is not well formed: ‘[PII of type ‘System.String’ is hidden. For more details, see &lt;A href="https://aka.ms/IdentityModel/PII." class="inline-onebox" rel="noopener nofollow ugc"&gt;Bing&lt;/A&gt;]’, there are no dots (.).\nThe token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPa…&lt;/P&gt;
&lt;P&gt;Please help!&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Marc&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 00:30:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/jwt-is-not-well-formed/m-p/4881479#M363</guid>
      <dc:creator>msde</dc:creator>
      <dc:date>2023-02-08T00:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: JWT is not well formed</title>
      <link>https://community.cisco.com/t5/apis/jwt-is-not-well-formed/m-p/4881480#M364</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Updating in case anyone else gets stuck on this - had to add assembly bindings to force use of System.Text.Json to version 7.0.0.0;  it wanted to use an older version&lt;/P&gt;
&lt;P&gt;Marc&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 04:04:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/jwt-is-not-well-formed/m-p/4881480#M364</guid>
      <dc:creator>msde</dc:creator>
      <dc:date>2023-02-08T04:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: JWT is not well formed</title>
      <link>https://community.cisco.com/t5/apis/jwt-is-not-well-formed/m-p/4881481#M365</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Thank you for coming back to share your solution.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 19:59:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/jwt-is-not-well-formed/m-p/4881481#M365</guid>
      <dc:creator>DuoKristina</dc:creator>
      <dc:date>2023-02-08T19:59:35Z</dc:date>
    </item>
  </channel>
</rss>

