[cas-user] Simple MFA and Mongo Serialization exception

25 views
Skip to first unread message

SK Sahraoui

unread,
Apr 8, 2021, 1:48:41 AMApr 8
to CAS Community
I have a dual MFA setup with simple MFA (SMS) and GAuth; I'm using groovy scripts to select the appropriate MFA and to send an SMS; MongoDB cluster is used for ticket registry

The problem is with simple-mfa, the SMS is sent but I get the following error:

java.lang.IllegalArgumentException: Unable to find ticket serializer for CASMFA-XXXXX


GAuth works fine and I'm using CAS 6.3.2 

I also tried 6.4-RC3 but CAS fails to start with 

Parameter 1 of method gridFsTemplate in org.springframework.boot.autoconfigure.data.mongo.MongoDatabaseFactoryDependentConfiguration required a single bean, but 2 were found:
- mongoDbGoogleAuthenticatorTemplate: defined in BeanDefinition defined in class path resource [org/apereo/cas/config/GoogleAuthenticatorMongoDbConfiguration.class]
- mongoDbTicketRegistryTemplate: defined in BeanDefinition defined in class path resource [org/apereo/cas/config/MongoDbTicketRegistryConfiguration.class



Can someone point out what am I missing here?

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+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/669cd0f6-74c3-4fe7-9513-06ef490bf03cn%40apereo.org.

'Linos Giannopoulos' via CAS Community

unread,
Jul 13, 2021, 12:40:53 PMJul 13
to cas-...@apereo.org

Hey!

We have exactly the same issue on 6.4.0-SNAPSHOT (and all release candidates that came out for 6.4.X) with the following setup:

dependencies {

[...]
    compile "org.apereo.cas:cas-server-support-mongo-ticket-registry:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-gauth-mongo:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-throttle-mongo:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-webauthn-mongo:${project.'cas.version'}"


The error we get is the following:

```

2021-07-13 19:08:27,125 ERROR [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] - <

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 1 of method gridFsTemplate in org.springframework.boot.autoconfigure.data.mongo.MongoDatabaseFactoryDependentConfiguration required a single bean, but 3 were found:


    - mongoDbGoogleAuthenticatorTemplate: defined in BeanDefinition defined in class path resource [org/apereo/cas/config/GoogleAuthenticatorMongoDbConfiguration.class]

    - mongoDbTicketRegistryTemplate: defined in BeanDefinition defined in class path resource [org/apereo/cas/config/MongoDbTicketRegistryConfiguration.class]
    - mongoWebAuthnTemplate: defined in BeanDefinition defined in class path resource [org/apereo/cas/config/MongoDbWebAuthnConfiguration.class]


Action:

Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
>

```

Is there any workaround for this issue?


Thanks in advance,

Linos

To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4b90804b-a1a1-93f9-7f59-8ba2a549310f%40skroutz.gr.

Fabio Bettiol

unread,
Oct 4, 2021, 12:32:38 PMOct 4
to jasig-cas-user
Hi.
Any fix/suggestion for this? Help highly appreciated.
Thanks
Fabio
Message has been deleted
Message has been deleted

Fabio Bettiol

unread,
Oct 8, 2021, 3:15:52 AMOct 8
to jasig-cas-user
Any ?
Reply all
Reply to author
Forward
0 new messages