setting cas.authn.accept.users to blank does nothing

33 views
Skip to first unread message

Michael MacEachran

unread,
Apr 10, 2019, 9:35:59 PM4/10/19
to cas-...@apereo.org
I have a custom jdbc authentication handler that I have configured as a @Bean in my configuration class.

When I deploy my war,  there are no errors,  but I get this error:

CAS is configured to accept a static list of credentials for authentication. While this is generally useful for demo purposes, it is STRONGLY recommended that you DISABLE this authentication method (by setting 'cas.authn.accept.users' to a blank value) and switch to a mode that is more suitable for production.

I look in the docs,  and I see that I need to add this to my cas.properties file:

cas.authn.accept.users=
cas.authn.accept.name=
cas.authn.accept.credentialCriteria=

But I still get that error in the logs.

How do I set my AuthenticationHander as the one to use?

Michael MacEachran

Andy Ng

unread,
Apr 11, 2019, 12:02:05 AM4/11/19
to CAS Community
Hi Michael,

Usually this problem comes because cas.properties is put in the correct place, so it is not recognized.

Please check the following:
- cas.properties by default should be in the absolution path of 
/etc/cas/config (In windows it is most likely C:/etc/cas/config)
- cas.properties put in the project folder i.e. C:/your_product_folder/etc/cas/config/cas.properties will not be recognized.


See if this is your problem, thanks.

Cheers!
- Andy
Reply all
Reply to author
Forward
0 new messages