CAS Authentication failed!

CAS Authentication failed!

by pratik shrstha -
Number of replies: 4

Hi everyone,

Can anyone please help me with the issue?

Debug info: 
Error code: generalexceptionmessage

Stack trace:
  • line 3195 of /auth/cas/CAS/CAS/Client.php: CAS_AuthenticationException thrown
  • line 1449 of /auth/cas/CAS/CAS/Client.php: call to CAS_Client->validateCAS20()
  • line 1331 of /auth/cas/CAS/CAS/Client.php: call to CAS_Client->isAuthenticated()
  • line 1078 of /auth/cas/CAS/CAS.php: call to CAS_Client->checkAuthentication()
  • line 153 of /auth/cas/auth.php: call to phpCAS::checkAuthentication()
  • line 76 of /login/index.php: call to auth_plugin_cas->loginpage_hook()

Output buffer: <div class="notifytiny debuggingmessage" data-rel="debugging">Invalid cache store in config. Not an available plugin.<ul style="text-align: left" data-rel="backtrace"><li>line 190 of /cache/classes/config.php: call to debugging()</li><li>line 400 of /cache/classes/factory.php: call to cache_config->load()</li><li>line 431 of /cache/classes/factory.php: call to cache_factory->create_config_instance()</li><li>line 200 of /cache/classes/factory.php: call to cache_factory->create_definition()</li><li>line 182 of /cache/classes/loaders.php: call to cache_factory->create_cache_from_definition()</li><li>line 343 of /lib/dml/moodle_database.php: call to cache::make()</li><li>line 392 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->get_metacache()</li><li>line 662 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_columns()</li><li>line 1603 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()</li><li>line 1485 of /lib/moodlelib.php: call to moodle_database->get_field()</li><li>line 802 of /lib/setuplib.php: call to get_config()</li><li>line 645 of /lib/setup.php: call to initialise_cfg()</li><li>line 908 of /config.php: call to require_once()</li><li>line 27 of /login/index.php: call to require()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">A cache mode mapping exists for a mode or store that does not exist.<ul style="text-align: left" data-rel="backtrace"><li>line 269 of /cache/classes/config.php: call to debugging()</li><li>line 400 of /cache/classes/factory.php: call to cache_config->load()</li><li>line 431 of /cache/classes/factory.php: call to cache_factory->create_config_instance()</li><li>line 200 of /cache/classes/factory.php: call to cache_factory->create_definition()</li><li>line 182 of /cache/classes/loaders.php: call to cache_factory->create_cache_from_definition()</li><li>line 343 of /lib/dml/moodle_database.php: call to cache::make()</li><li>line 392 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->get_metacache()</li><li>line 662 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_columns()</li><li>line 1603 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()</li><li>line 1485 of /lib/moodlelib.php: call to moodle_database->get_field()</li><li>line 802 of /lib/setuplib.php: call to get_config()</li><li>line 645 of /lib/setup.php: call to initialise_cfg()</li><li>line 908 of /config.php: call to require_once()</li><li>line 27 of /login/index.php: call to require()</li></ul></div><html><head><title>CAS Authentication failed!</title></head><body><h1>CAS Authentication failed!</h1><p>You were not authenticated.</p><p>You may submit your request again by clicking <a href="https://tstmdlwb01.racpnet.local/moodle-pratik/login/index.php?authCAS=CAS">here</a>.</p><p>If the problem persists, you may contact <a href="mailto:root@localhost">the administrator of this site</a>.</p></body></html><div class="notifytiny debuggingmessage" data-rel="debugging">Developer hint: /var/www/html/moodle-pratik/theme/boostracp/renderer.php should be renamed to /var/www/html/moodle-pratik/theme/boostracp/renderers.php. See: http://docs.moodle.org/dev/Output_renderers#Theme_renderers.<ul style="text-align: left" data-rel="backtrace"><li>line 795 of /lib/outputlib.php: call to debugging()</li><li>line 697 of /lib/outputlib.php: call to theme_config->__construct()</li><li>line 1553 of /lib/pagelib.php: call to theme_config::load()</li><li>line 1880 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()</li><li>line 374 of /lib/setuplib.php: call to bootstrap_renderer->__call()</li><li>line ? of unknownfile: call to default_exception_handler()</li></ul></div>


There was firewall upgrade during the weekend. Could that be an issue? If it is, what would be the solution for it?

Thanks

Pratik

Average of ratings: -
In reply to pratik shrstha

Re: CAS Authentication failed!

by Rui Hu -

Hello, I am trying to configure CAS authentication on my moodle and encountered the same issue:

Exception - CAS URL:  Authentication failure: Ticket not validated Reason: bad response from the CAS server CAS response:

More information about this error

Have you found a solution yet? If you do, would you mind to share how you solved it?

Thanks a lot!

In reply to Rui Hu

Re: CAS Authentication failed!

by Rui Hu -

I just solved the problem by updating the Base URI to the correct information. I know this seems to be a stupid mistake, but thought it might help someone in the future.