<commit_before><?php

if (isset($_REQUEST['RequestID'])) {
	/* Backwards-compatibility with old authentication pages. */
	$session = SimpleSAML_Session::getInstance();
	$requestcache = $session->getAuthnRequest('saml2', (string)$_REQUEST['RequestID']);
	if (!$requestcache) {
		throw new Exception('Could not retrieve cached RequestID = ' . $authId);
	}
	$state = $requestcache['State'];
	SimpleSAML_IdP::postAuth($state);

} else {
	throw new SimpleSAML_Error_BadRequest('Missing required URL parameter.');
}<commit_msg>IdP: Slight refactoring of resumeauth.php<commit_after><?php

if (!isset($_REQUEST['RequestID'])) {
	throw new SimpleSAML_Error_BadRequest('Missing required URL parameter.');
}

/* Backwards-compatibility with old authentication pages. */
$session = SimpleSAML_Session::getInstance();
$requestcache = $session->getAuthnRequest('saml2', (string)$_REQUEST['RequestID']);
if (!$requestcache) {
	throw new Exception('Could not retrieve cached RequestID = ' . $authId);
}
$state = $requestcache['State'];
SimpleSAML_IdP::postAuth($state);
{'fraction_non_alphanumeric': 0.15844402277039848, 'fraction_numerical': 0.0018975332068311196, 'mean_word_length': 7.44, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4920414', 'n_tokens_mistral': 319, 'n_tokens_neox': 316, 'n_words': 69}