Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 21b9782

Browse files
committed
Fixed resend SPMetadata from request
* Fixed resend SPMetadata from request to unauthorized-access-go-to-registration page
1 parent 0bd11f6 commit 21b9782

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55
[Changed]
66
- Changed design of ListOfSps
77

8+
[Fixed]
9+
- Fixed resend SPMetadata from request to unauthorized-access-go-to-registration page
10+
811
## [v2.0.0]
912
[Added]
1013
- Added badges to README

lib/Auth/Process/PerunIdentity.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,13 @@ protected function registerDirectly($request, $callback, $registerUrL, $vo = nul
265265

266266
$id = SimpleSAML_Auth_State::saveState($request, 'perun:PerunIdentity');
267267
$url = SimpleSAML\Module::getModuleURL('perun/unauthorized_access_go_to_registration.php');
268-
\SimpleSAML\Utils\HTTP::redirectTrustedURL($url, array('StateId' => $id, 'SPMetadata' => $_REQUEST['SPMetadata'], 'registerUrL' => $registerUrL, 'params' => $params));
268+
\SimpleSAML\Utils\HTTP::redirectTrustedURL($url, array(
269+
'StateId' => $id,
270+
'SPMetadata' => $request['SPMetadata'],
271+
'registerUrL' => $registerUrL,
272+
'params' => $params
273+
)
274+
);
269275

270276
}
271277

0 commit comments

Comments
 (0)