I have recently upgraded my code to SSP v1.19.4 from v1.17.2.
Unfortunately, after upgrading the library the authentication went to infinite loop.
Dec 27 16:22:59 simplesamlphp DEBUG [caa6cc9880] Session: 'CS21' not valid because we are not authenticated.
Dec 27 16:23:00 simplesamlphp WARNING [caa6cc9880] The class or interface 'SimpleSAML_Utilities' is now using namespaces, please use 'SimpleSAML\Utilities'.
Dec 27 16:23:00 simplesamlphp WARNING [caa6cc9880] The class or interface 'SimpleSAML_Metadata_SAMLParser' is now using namespaces, please use 'SimpleSAML\Metadata\SAMLParser'.
Dec 27 16:23:02 simplesamlphp DEBUG [caa6cc9880] Saved state: '_b90cc48b5fa4d1c47fd6c1d87eb78510043ca0015f'
Dec 27 16:23:02 simplesamlphp DEBUG [caa6cc9880] Sending SAML 2 AuthnRequest to '
http://www.okta.com/SOMEID'
Dec 27 16:23:02 simplesamlphp DEBUG [caa6cc9880] Redirect to 793 byte URL: URLWITHDATA
Dec 27 16:23:05 simplesamlphp WARNING [a4fe932416] The class or interface 'SimpleSAML_Utilities' is now using namespaces, please use 'SimpleSAML\Utilities'.
Dec 27 16:23:05 simplesamlphp WARNING [a4fe932416] The class or interface 'SimpleSAML_Metadata_SAMLParser' is now using namespaces, please use 'SimpleSAML\Metadata\SAMLParser'.
Dec 27 16:23:05 simplesamlphp DEBUG [a4fe932416] Loading state: '_b90cc48b5fa4d1c47fd6c1d87eb78510043ca0015f'
Dec 27 16:23:05 simplesamlphp WARNING [a4fe932416] Could not load state specified by InResponseTo: NOSTATE Processing response as unsolicited.
Dec 27 16:23:05 simplesamlphp DEBUG [a4fe932416] Received SAML2 Response from '
http://www.okta.com/exk4dhtrmhE7vJioC357'.
Dec 27 16:23:06 simplesamlphp DEBUG [a4fe932416] Has 1 candidate keys for validation.
Dec 27 16:23:06 simplesamlphp DEBUG [a4fe932416] Validation with key #0 succeeded.
Dec 27 16:23:06 simplesamlphp DEBUG [a4fe932416] Has 1 candidate keys for validation.
Dec 27 16:23:06 simplesamlphp DEBUG [a4fe932416] Validation with key #0 succeeded.
Dec 27 16:23:06 simplesamlphp DEBUG [a4fe932416] Filter config for
http://www.okta.com/exk4dhtrmhE7vJioC357->
https://localhost/CS21/..[dirs]../simplesamlphp/www/module.php/saml/sp/metadata.php/CS21: array ( 0 => SimpleSAML\Module\core\Auth\Process\LanguageAdaptor::__set_state(array( 'langattr' => 'preferredLanguage', 'priority' => 90, )),)
Dec 27 16:23:06 simplesamlphp DEBUG [a4fe932416] Session: doLogin("CS21")
Dec 27 16:23:06 simplesamlphp DEBUG [528258ad6d] Session: 'CS21' not valid because we are not authenticated.
Dec 27 16:23:08 simplesamlphp WARNING [528258ad6d] The class or interface 'SimpleSAML_Utilities' is now using namespaces, please use 'SimpleSAML\Utilities'.
Then it is repeating above same logs.
Thanks in advance.