-
Notifications
You must be signed in to change notification settings - Fork 39
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
Signing JWT with RS512 #3
Comments
+1 for RSA256. |
Hi @coylums, any news on this? Did you get it resolved? |
hi any news on this? still having issues with JWT :( same error |
You'll first need a key to do the signing. Depending on the application, you'll need to use a key that is provided to you or you can generate one for example with the following openssl command: ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS512.key Next, you'll need to parse the key and transform it to a Finally, you can use this See example7 in the examples file for a full example. jose/example/jose_example.dart Lines 264 to 317 in 6b3eb03
|
Hello, I'm working with Jose and trying to sign a JWT with RS512, a requirement from an API I'm using. When I attempt to include the
RS512
algorithm I gettype 'RSASigner' is not a subtype of type 'Mac'
with the Create a JWS example. I don't know if this is an issue with the package or how I'm trying to use RS512. Thank you.The text was updated successfully, but these errors were encountered: