Closed lochgeo closed 4 years ago
Hi,
You can find it in the samples https://github.com/ycrumeyrolle/Jwt/blob/master/samples/BinaryJwtCreationSample/Program.cs for binary data, and https://github.com/ycrumeyrolle/Jwt/blob/master/samples/PlaintextJwtCreationSample/Program.cs for UTF8 string data.
Oh.. didn't realise those samples were already present. Many thanks!
Hi Yann,
The RFC 7516, while describing the plaintext does not specify that the content needs to be a valid JWS. I am trying to create a JWE using a string as my content, but I get the error that type (string) is not a valid JwsDescriptor. Below is the code that I am using
Is it possible to produce a such a JWE using the library? Could you help me with a code sample, if its possible?