question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValidateToken throws undocumented FormatException

See original GitHub issue

The ValidateToken method in the JwtSecurityTokenHandler class throws a undocumented FormatException.

Example input: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.f

FormatException: IDX14700: Unable to decode: ‘f’ as Base64url encoded string.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
brentschmaltzcommented, Oct 19, 2017

@vanillajonathan I agree that the user should know what exceptions to expect and what they mean. Let me see what we can do.

1reaction
brentschmaltzcommented, Oct 19, 2017

@vanillajonathan the transitive closure of all exceptions is hard. But, exceptions that an internal library method throws should be in scope. I agree, we should document this exception in ValidateToken OR better yet, catch the exception ReadToken throws, wrap it inside SecurityTokenValidationException.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Metasploit Development Diaries: Q1 2019
As a former Metasploit researcher once said, a software vulnerability at its core can be thought of as an undocumented, unintentional ...
Read more >
sitemap-questions-50.xml
... /questions/2338023/string-formatexception-with-datetime-in-non-us-culture ... -bucket-notification-configuration-for-sqs-throws-unable-to-validate-the ...
Read more >
Results
... HtmlNodeType FormatException get_Item InternalsVisibleToAttribute ... op_Increment TryGetValue errorMessages ValidateToken ICollection ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found