Hello,
I'm not familiar with
SAML 2.0 and I need to set up our CAS 6.4.6.6 with SAML2 protocol. Our CAS uses Oauth2 + CAS protocol. Now, we need to add this protocol.
Folowing the documentation:
I've added in gradle:
implementation "org.apereo.cas:cas-server-support-saml-idp:${project.'cas.version'}"
And in my cas.properties:
cas.authn.saml-idp.metadata.file-system.location: file:/etc/cas/saml
I've ever had the same error:
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.samlProfileSamlAttributeStatementBuilder' defined in class path resource [org/apereo/cas/config/SamlIdPConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.web.idp.profile.builders.SamlProfileObjectBuilder]: Factory method 'samlProfileSamlAttributeStatementBuilder' threw exception; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.apereo.cas.authentication.attribute.AttributeDefinitionStore' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier("attributeDefinitionStore")}
What am I need to define in my Cas-Server?
I try with several configurations and I've get the same result.
Anyone can help me?
Thanks!!!