What are the exact steps to configure CAS 5.3 to use MongoDB?

12 views
Skip to first unread message

casMongo

unread,
Nov 9, 2018, 11:37:13 AM11/9/18
to CAS Community
Hey everybody,

I tried to configure authentication with MongoDB.
As far as I understand the documentation.

I configure MongoDB support via application.properties:

cas.authn.mongo.mongoHostUri=mongodb://localhost:27017/casdb
cas.authn.mongo.usernameAttribute=email
cas.authn.mongo.attributes=first_name,last_name
cas.authn.mongo.passwordAttribute=password
cas.authn.mongo.collectionName=user

But when I try to login, I get the following message on the console:

[org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authentication credentials provided for this transaction are [[UsernamePasswordCredential(username=scott)]]>
...
WHO: scott
WHAT: Supplied credentials: [UsernamePasswordCredential(username=scott)]
ACTION: AUTHENTICATION_FAILED
APPLICATION: CAS
...

I get the strong feeling I'm missing something really important.


Thx.
Reply all
Reply to author
Forward
0 new messages