Hi,
It's imposible to generate token with JwtGenerator
(cas-server-support-token 4.2.2) and jre 7 ?
best regards
Le vendredi 1 juillet 2016 16:25:22 UTC+2, Eric PAPET a écrit :
>
> Hi,
>
> I used cas-server-support-token 4.2.2 and i am some problem to generate
> token.
>
> The error message is : com.nimbusds.jose.JOSEException: The "A256GCM"
> encryption method is not supported by the JWE encrypter
>
> I want to customized CAS to add new LostPassword Fonctionnality by TOKEN.
>
> the code who generate the token:
> //
> JwtGenerator<TestUserProfile> g = new
> JwtGenerator<TestUserProfile>(keySign,keyEncry);
> TestUserProfile profile = new TestUserProfile();
> profile.setId(userId);
> //g.setJweAlgorithm(JWEAlgorithm.parse("HmacSHA256"));
> logger.info("EPA LostPasswords Servlet key de cryptage :
> "+g.getEncryptionSecret()+" Key de signature : "+g.getSigningSecret());
> String token = g.generate(profile);
> result.put("url", URL+token);
>
> My jdk is 1.6
>
> If some body have solution i take it :)
>
> Best regards
> Eric Papet
>
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/4dfe13eb-e597-4dfd-a37f-374958cd873e%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.