SAML as SP for 5.1.x CAS

45 views
Skip to first unread message

Ugur Ayan

unread,
Jul 4, 2022, 5:59:13 PM7/4/22
to CAS Community
After adding below library and properties files;
implementation "org.apereo.cas:cas-server-support-pac4j-webflow:${project.'cas.version'}"


cas.authn.pac4j.saml[0].keystorePassword=pac4j-demo-passwd
cas.authn.pac4j.saml[0].privateKeyPassword=pac4j-demo-passwd
cas.authn.pac4j.saml[0].keystorePath=/etc/cas/config/samlKeystore.jks
cas.authn.pac4j.saml[0].serviceProviderEntityId=urn:mace:saml:pac4j.org
cas.authn.pac4j.saml[0].serviceProviderMetadataPath=/etc/cas/config/sp-metadata.xml
cas.authn.pac4j.saml[0].identityProviderMetadataPath=https://dev-18461928.okta.com/app/exk5fzxeb8QKtVEL05d7/sso/saml/metadata
cas.authn.pac4j.saml[0].clientName=SAML2Client

I got an error like below;

ERROR [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/cas].[dispatcherServlet]] - <Servlet.service() for servlet [dispatcherServlet] in context with path [/cas] threw exception [Request processing failed; nested exception is org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing org.apereo.cas.support.pac4j.web.flow.DelegatedClientAuthenticationAction@dbe8359 in state 'clientAction' of flow 'login' -- action execution attributes were 'map[[empty]]'] with root cause>
org.pac4j.core.exception.TechnicalException: No client found for name: SAML2Client

Ray Bon

unread,
Jul 5, 2022, 11:21:08 AM7/5/22
to cas-...@apereo.org
Ugur,

That version is very old. My first suggestion is to upgrade.

My best guess is that you have to define SAML2Client or some of its properties. Do you have a link to the documentation?

You may be able to find something on https://fawnoos.com/blog/

Ray

On Mon, 2022-07-04 at 00:08 -0700, Ugur Ayan wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose historical relationships with the land continue to this day.

Ugur Ayan

unread,
Jul 5, 2022, 11:53:39 AM7/5/22
to cas-...@apereo.org
All links on blog are broken. I cannot find appropriate solution for that,


--
- 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 a topic in the Google Groups "CAS Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/apereo.org/d/topic/cas-user/RAI215Y3TPc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/5841fbb65323c00f33353ed45bbdf3c0b8979608.camel%40uvic.ca.
Reply all
Reply to author
Forward
0 new messages