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.