Migrate From Cas 5.1.6 to Cas 5.2.0 and JWT Problem

143 views
Skip to first unread message

hadi

unread,
Dec 5, 2017, 1:44:17 AM12/5/17
to CAS Community
Hi 

when i download Cas 5.2.0 maven overlay and add my recent dependencies the cas-server-support-token jar file does not resolve for 5.2.0 version
I added below dependencies : 

<dependencies>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-webapp${app.server}</artifactId>
<version>${cas.version}</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-json-service-registry</artifactId>
<version>${cas.version}</version>
</dependency>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-ldap</artifactId>
<version>${cas.version}</version>
</dependency>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-hazelcast-ticket-registry</artifactId>
<version>${cas.version}</version>
</dependency>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-core-logout</artifactId>
<version>${cas.version}</version>
</dependency>

<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-token</artifactId>
<version>${cas.version}</version>
</dependency>
</dependencies>

I want to use jwt service ticket and because of that i added cas-server-support-token as cas document but i think there is no specified version for that 
anybody knows what happend ?
thanks
 

Didier Capdevielle

unread,
Dec 8, 2017, 8:29:26 AM12/8/17
to CAS Community
HI,
Not sure to well understand your problem.
Building cas.war with cas-server-support-token (AND cas-server-support-token-webflow is it necessary ?) dependencies seems to work well with Cas 5.2.0 maven overlay.
For me problems happen with json file configuration in registry.
First time, json file directory was not taken in account (????)
Second time, problem in evaluationOrder (here, it's my fault).
I'm not a specialist. Sorry if i am out of your mind.

In 5.1.6, i can't make JWT Service ticket works. I can't configure service in registry (json file) or may be it is in cas.properties.
Where did you find sample and/or documentation (apart Apereo) ?

Best regards,

Didier Capdevielle

unread,
Dec 8, 2017, 8:39:01 AM12/8/17
to CAS Community
Other lead : did you clear your Maven repository (/root/.m2/repository/ in Debian) before building 5.2.0 ?

Didier Capdevielle

unread,
Dec 8, 2017, 9:02:52 AM12/8/17
to CAS Community
Oups ! Sorry, i was NOT in 5.2.0 (back to 5.1.6)  and i also can't build cas.war

[ERROR] Failed to execute goal on project cas-overlay: Could not resolve dependencies for project org.apereo.cas:cas-overlay:war:1.0: Could not find artifact org.apereo.cas:cas-server-support-token:jar:5.2.0 in sonatype-releases (http://oss.sonatype.org/content/repositories/releases/)

Really sorry,
Best regards,


Le mardi 5 décembre 2017 07:44:17 UTC+1, hadi a écrit :

Jérôme LELEU

unread,
Dec 8, 2017, 9:15:51 AM12/8/17
to CAS Community
Hi,

In version 5.2, the artifact is now named: cas-server-support-token-tickets, see: https://apereo.github.io/cas/5.2.x/installation/Configure-ServiceTicket-JWT.html

Thanks.
Best regards,
Jérôme


--
- 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 cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/de7a601f-5fb7-4731-a94f-fe641b162093%40apereo.org.

Didier Capdevielle

unread,
Dec 11, 2017, 4:12:51 AM12/11/17
to CAS Community
Hi,
Thanks for your answer. It better works with the good dependency ;)

But now, i have another problem.
With same configuration (just rebuild and deploy)
cas.serviceRegistry.config.location: file:/etc/cas/json/  (in cas.properties) works fine in 5.1.6 but not in  5.2.0
Is there a new syntax ?

ThanKs.
Best regards,
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

William E.

unread,
Dec 11, 2017, 9:33:07 AM12/11/17
to CAS Community
I believe in 5.2.x it was renamed to cas.serviceRegistry.json.location

-W

Didier Capdevielle

unread,
Dec 11, 2017, 11:49:42 AM12/11/17
to CAS Community
Yes. Thanks a lot.
I believed renaming parameters was finished since 5.1.x but not :-(
Thanks for your help.
Reply all
Reply to author
Forward
0 new messages