*here is my configuration:*

cas.authn.wsfedIdp.idp.realm=urn:org:apereo:cas:ws:idp:realm-CAS
cas.authn.wsfedIdp.idp.realmName=CAS

cas.authn.wsfedIdp.sts.subjectNameIdFormat=unspecified
cas.authn.wsfedIdp.sts.encryptTokens=false

cas.authn.wsfedIdp.sts.signingKeystoreFile=file:etc/cas/sts/ststrust.jks
cas.authn.wsfedIdp.sts.signingKeystorePassword=storepass

cas.authn.wsfedIdp.sts.encryptionKeystoreFile=file:etc/cas/sts/stsencrypt.jks
cas.authn.wsfedIdp.sts.encryptionKeystorePassword=storepass

cas.authn.wsfedIdp.sts.realm.keystoreFile=file:etc/cas/sts/stsrealm_a.jks
cas.authn.wsfedIdp.sts.realm.keystorePassword=storepass
cas.authn.wsfedIdp.sts.realm.keystoreAlias=realma
cas.authn.wsfedIdp.sts.realm.keyPassword=storepass
cas.authn.wsfedIdp.sts.realm.issuer=CAS

cas.authn.wsfedIdp.sts.crypto.signing.key=uPrx3XsirSbRMy1EjXGxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cas.authn.wsfedIdp.sts.crypto.signing.keySize=512
cas.authn.wsfedIdp.sts.crypto.encryption.key=GBztWJMRrQucEVxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cas.authn.wsfedIdp.sts.crypto.encryption.keySize=256
cas.authn.wsfedIdp.sts.crypto.enabled=true


Also when I was adding relying party in CAS I have to set appliesTo to null 
(i.e I didn't use appliesTo)

Finally, I suggest using Hazelcast for Ticket registry instead of JPA. 

On Tuesday, 2 July 2019 11:11:28 UTC+2, abdelrahman halawa wrote:
>
> Hello,
> *I'm using CAS v5.3.9. I want to use WS-federation feature so I added 
> these dependencies into pom.xml*
>
> <dependency>
> <groupId>org.apereo.cas</groupId>
> <artifactId>cas-server-support-ws-sts</artifactId>
> <version>${cas.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apereo.cas</groupId>
> <artifactId>cas-server-support-ws-idp</artifactId>
> <version>${cas.version}</version>
> </dependency>
>
> *After that, when I was adding JPA ticket registry* {
>
> <dependency>
> <groupId>org.apereo.cas</groupId>
> <artifactId>cas-server-support-jpa-ticket-registry</artifactId>
> <version>${cas.version}</version>
> </dependency> }
>
> *I got this error*
>
> 2019-07-02 11:54:37,058 WARN [org.apereo.cas.web.CasWebApplicationContext] 
> - <Exception encountered during context initialization - cancelling refresh 
> attempt: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'casBeanValidationPostProcessor' defined in class 
> path resource [org/apereo/cas/config/CasCoreUtilConfiguration.class]: 
> BeanPostProcessor before instantiation of bean failed; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 
> 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration':
>  
> Initialization of bean failed; nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 'ticketTransactionManager' defined in class path 
> resource [org/apereo/cas/config/JpaTicketRegistryConfiguration.class]: 
> Unsatisfied dependency expressed through method 'ticketTransactionManager' 
> parameter 0; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'ticketEntityManagerFactory' defined in class path resource 
> [org/apereo/cas/config/JpaTicketRegistryConfiguration.class]: Invocation of 
> init method failed; nested exception is org.hibernate.AnnotationException: 
> No identifier specified for entity: 
> org.apereo.cas.ticket.SecurityTokenTicket> 
>
> Any help?
> ​​
>
>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/17efe336-cee3-4a0c-a4f2-a6a2e17e80ab%40apereo.org.

Reply via email to