Xavier,

The form of testImplementation is just a different way to write the same thing 
as you have for implementation.
It may be that some SAML config needs the person directory. It is ok to include 
it.

Ray

On Wed, 2024-04-03 at 05:49 -0700, Xavier Rodríguez wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi,

Thanks for your responses!

After analize the CAS-6.4.6.6 code I have found that the bean that causes my 
problem is created inorg.apereo.cas.config.CasPersonDirectoryConfiguration.

Then, when I add in my build.gradle:

implementation"org.apereo.cas:cas-server-support-person-directory:${project.version}"

CAS is started without problems (doesn't appear -No qualifying bean of type 
'org.apereo.cas.authentication.attribute.AttributeDefinitionStore-)

But I have my doubts if this is a good solution, because in:

https://mvnrepository.com/artifact/org.apereo.cas/cas-server-support-person-directory

This library is used in:

testImplementation group: 'org.apereo.cas', name: 
'cas-server-support-person-directory', version: 'X.X.X'

¿Any idea about this? ¿Is a good solution?

Thanks,

- Xavier -

El dia divendres, 22 de març del 2024 a les 16:03:39 UTC+1, Ray Bon va escriure:
Xavier,

The property names may have changed (your version is old).
Maybe search this blog, https://fawnoos.com/blog/

Ray

On Fri, 2024-03-22 at 06:02 -0700, Xavier Rodríguez wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

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:

https://apereo.github.io/cas/6.6.x/authentication/Configuring-SAML2-Authentication.html

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.core.entity-id: https://mycas.cat/idp
   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!!!


-- 
- 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/577e7f76c0f9472dc89f557cdac1fc0757681fb0.camel%40uvic.ca.

Reply via email to