I tried commenting out the encryption and signing keys to let CAS auto generate the keys but still the same issue. I am not setting any key sizes for jpa registry properties. On retry of SSO login, user is redirected to IDP login screen and after successful login they are redirected to CAS welcome screen with all principal details, seems like it is loosing the registered service to redirect to. Below are my JPA registry properties:
cas.ticket.registry.jpa.driver-class=org.mariadb.jdbc.Driver
cas.ticket.registry.jpa.enabled=true
cas.ticket.registry.jpa.password=***
cas.ticket.registry.jpa.url=jdbc:mariadb://localhost:3306/test
cas.ticket.registry.jpa.user=***
cas.ticket.registry.jpa.ddl-auto=none
cas.ticket.registry.jpa.dialect=org.hibernate.dialect.MariaDBDialect
cas.ticket.registry.jpa.crypto.enabled=true
cas.ticket.registry.jpa.crypto.signing-enabled=true
Also have properties for tgc for which I am setting key-size and alg:
cas.tgc.max-age=-1
cas.tgc.http-only=false
cas.tgc.path=/
cas.tgc.name=CASTGC
cas.tgc.crypto.encryption.key=PqN1lyOIrdCppLN0MaORzkBFDuaS4ytKWmBgRYVhjwI
cas.tgc.crypto.signing.key=4eWRTqk5RCP97v96pY0Ear6HdTX6kYbNoe32k8nEZjRCDFjXoMzQG3zdEg1fsxpEJL9gGHq7AlOkIp2htvn9Eg
cas.tgc.crypto.alg=A256GCM
cas.tgc.crypto.encryption.key-size=256
Thank you,
Gautham