• When using the require SSO option, CRON jobs can be blocked. We disable the WP_CRON and use the servers CRON to call wp_cron.php on a more accurate schedule. OneLogin will block these if your set to require SSO.

    It’s an easy fix. Just like you do for WP_CLI. Change

    function saml_sso() {
    	if ( defined( 'WP_CLI' ) && WP_CLI ) {
    		return true;
    	}
    

    to

    
    function saml_sso() {
    	if ( defined( 'WP_CLI' ) && WP_CLI || wp_doing_cron() ) {
    		return true;
    	}
    

    Would love to get this added so we don’t have to patch on updates.

    • This topic was modified 5 years, 4 months ago by abailey.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Farhad

    (@farhaddc)

    This needs to be implemented into the SVN. Any update from the plugin author?

    • This reply was modified 5 years ago by Farhad.

    One problem is, the plugin needs to be compatibile with WordPress v. 2.1.2 whereas wp_doing_cron() was introduced only in v. 4.8.0.

    The plugin already throws out wp_doing_cron() related errors when used on WP v. 3.9.x and basically breaks WP.

    Not the way forward methinks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CRON and OneLogin’ is closed to new replies.