You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are facing some issues with the jsonwebtoken library when we create our own token following the JWT standards (using C language). Unfortunately the official C library doesnt compile well in our Windows environment.
After debugging for days we came to the conclusion that the regex used in the jws library verify-stream.js file does not allow for equals sign (=), hence the regex validation fails.
Activity
omsmith commentedon Jan 14, 2016
Dupe of #22
Sorry, but your C implementation is not following the spec.
The JOSE set of standards uses "URL safe Base64".
Replace
+with-,/with_, and remove all padding (=).sohailalam2 commentedon Jan 14, 2016
@omsmith Thank you for the quick response. We will make the required chanes as suggested.
vanillajonathan commentedon Sep 12, 2017
For reference:
https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/master/src/System.IdentityModel.Tokens.Jwt/JwtConstants.cs#L58