That is a question for pac4j, really, which provides the generator class. 

-- 
Misagh

From: Eric PAPET <[email protected]>
Reply: Eric PAPET <[email protected]>
Date: July 1, 2016 at 1:26:05 PM
To: CAS Community <[email protected]>
Subject:  [cas-user] Re: cas-server-support-token generate JWT Problem  

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.

-- 
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/etPan.57773e57.7dda7fd8.77c2%40mmoayyed-4.local.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to