Dear CAS team,

I want to generate JWT on Apereo CAS Overlay template version 6.0.

Note Java version is Oracle 11

To generate a JWT, I ended up using the CAS Command-line Shell.

I do this follow these step:

STEP 1: I build CAS-shell

root@casoverlay:~/cas-overlay-template# ./build.sh cli

STEP 2: I generate JWT with command

generate-jwt --subject Thanhlam

But it shows this error

Failed to convert from type [java.lang.String] to type
[@org.springframework.shell.standard.ShellOption int] for value
'--subject'; nested exception is java.lang.NumberFormatException: For
input string: "--subject"
Details of the error have been omitted. You can use the stacktrace
command to print the full stacktrace.

Then, I use help command, and it shows that: [image: enter image
description here] <https://i.stack.imgur.com/mFWWy.png>

I try again with full parameter

cas>generate-jwt signingSecretSize 256 --encryptionSecretSize 48
--signingAlgorithm HS256 --encryptionAlgorithm  dir --encryptionMethod
A192CBC-HS384 --subject Thanhlam

It shows error again (with some different)

Too many arguments: the following could not be mapped to parameters:
'dir --encryptionMethod A192CBC-HS384 --subject Thanhlam'
Details of the error have been omitted. You can use the stacktrace
command to print the full stacktrace.

I also try this command on CAS overlay template 5.2, and it works

cas>generate-jwt --subject Thanhlam

I don't know why it wrongs.

Please help.

Thank you in advance.

And output here [image: enter image description here]
<https://i.stack.imgur.com/FoxR8.png>

Thank you and best regard.

Lam Nguyen

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAEjUsAhPOqjeN-NdTNOM%3DH9fLMV5ALJvgku%3D%3DHv7VaDi1crp_A%40mail.gmail.com.

Reply via email to