-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating Jwt with private key #21
Comments
Yeah sure:
|
Thanks for replying. I am new in c++. I wanted to use this token as an encrypted format in string. |
JWTs are not encrypted (by default) they are only signed. That said the variable "token" in the above example is of type std::string. |
Hi While creating the jwt with public and private key i am getting Unhandled exception at in constructor of rsa at line 215 in JWT.h The public and private key are unencrypted as well |
Which exception do you get? |
Unhandled exception at 0x00007FFF4D1B8E6C in w3wp.exe: Microsoft C++ exception: jwt::rsa_exception at memory location 0x00000074EB7D9338. |
This is not the line the error occurs. Catch the exception and post its message. |
The error message which i am getting is : IS there a provision if i can sign the JWT by providing the private Key only. I am able to achive through hs256 alogo but not in rs256. |
We are using RSACryptoServiceProvider in C# which only takes private key and public key is not required for signing. Does that does not apply here in case of rs256 ? |
Those keys are not valid keys. |
Hi,
Thanks for creating this library. It is really a great help for implementing oidc.
I was not able to create jwt token with private key. I wanted to set the following parameters :
1.authority
2.redirecturl
3. sessionid ot state
4. privatekey
can you please share a sample if the library can support the above parameters.
The text was updated successfully, but these errors were encountered: