getVerificationCode() === 'must-redirect'; } // end is_must_redirect_call; /** * Get URL to attach session at SSO server. * * @param array $params The params to be passed. */ public function getAttachUrl(array $params = array()) : string { // phpcs:ignore if ($this->getToken() === null) { $this->generateToken(); } // end if; $data = array( 'broker' => $this->broker, 'token' => $this->getToken(), 'checksum' => $this->generateChecksum('attach') ); return add_query_arg($data + $params, $this->url); } // end getAttachUrl; } // end class SSO_Broker;