Hello,

I am also seeing this same issue on version 6.4.1 and greater. I did not 
try anything older.

I am also seeing something similar with the CouchDb Surrogate 
Authentication module as well, so maybe there is something up with the 
CouchDb module in general. 

_design/CouchDbSurrogateAuthorization/_view/by_surrogate_principal does not 
exist

Thank you,
Matt

On Thursday, October 28, 2021 at 5:11:30 AM UTC-4 Vittore Zen wrote:

> Hi,
>
> I'm trying to set up google 2FA using couchdb. I have added to 
> build.graddle file:
>    implementation 
> "org.apereo.cas:cas-server-support-gauth:${project.'cas.version'}"
>    implementation 
> "org.apereo.cas:cas-server-support-couchdb-ticket-registry:${project.'cas.version'}"
>    implementation 
> "org.apereo.cas:cas-server-support-gauth-couchdb:${project.'cas.version'}"
>
> And in etc/cas/config/cas.properties file I have the following lines:
> cas.ticket.registry.couch-db.db-name=cas
> cas.ticket.registry.couch-db.password=my_pass
> cas.ticket.registry.couch-db.url=http://localhost:5984
> cas.ticket.registry.couch-db.username=admin
> cas.authn.mfa.gauth.couch-db.db-name=cas
> cas.authn.mfa.gauth.couch-db.password=my_pass
> cas.authn.mfa.gauth.couch-db.url=http://localhost:5984
> cas.authn.mfa.gauth.couch-db.username=admin
>
> When run "./gradlew clean copyCasConfiguration build run" in couchdb I saw 
> correctly db cas created, with two 
> document: CouchDbGoogleAuthenticatorAccount and TicketDocument
>
> But I get this error:
> Current WebApplicationContext is not available for processing of 
> GoogleAuthenticatorCouchDbTokenRepository: Make sure this class gets 
> constructed in a Spring web application after the Spring 
> WebApplicationContext has been initialized. Proceeding without injection.
>
> Effectively in cas db there isn't a GoogleAuthenticatorCouchDbToken 
> document.
>
> Where is my mistake? What did I miss?
>
> Thanks in advance.
>
> v.
>
>

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/36c71342-5e50-49de-9a99-a9d15b537d5dn%40apereo.org.

Reply via email to