Skip to content
Snippets Groups Projects
Commit d6b3fdb0 authored by Pavel Vyskočil's avatar Pavel Vyskočil
Browse files

Resolved problem with poor evaluation resolving, if user was/wasn't verified by Hostel

* Resolved problem with poor evaluation resolving, if user was/wasn't verified by Hostel in IsCesnetEligible.php
* Problem was caused, because value of attribute 'loa' wasn't cast to integer
parent 7ffa5b74
Branches
Tags
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [Unreleased] ## [Unreleased]
#### Fixed
- IsCesnetEligible - Resolved problem with poor evaluation resolving, if user was or wasn't verified by Hostel
## [v2.2.1] ## [v2.2.1]
#### Fixed #### Fixed
...@@ -144,4 +146,4 @@ the eduid filter (More information about this filter you can get [here] ) ...@@ -144,4 +146,4 @@ the eduid filter (More information about this filter you can get [here] )
[v1.1.2]: https://github.com/CESNET/einfra-aai-proxy-idp-template/tree/v1.1.2 [v1.1.2]: https://github.com/CESNET/einfra-aai-proxy-idp-template/tree/v1.1.2
[v1.1.1]: https://github.com/CESNET/einfra-aai-proxy-idp-template/tree/v1.1.1 [v1.1.1]: https://github.com/CESNET/einfra-aai-proxy-idp-template/tree/v1.1.1
[v1.1.0]: https://github.com/CESNET/einfra-aai-proxy-idp-template/tree/v1.1.0 [v1.1.0]: https://github.com/CESNET/einfra-aai-proxy-idp-template/tree/v1.1.0
[v1.0.0]: https://github.com/CESNET/einfra-aai-proxy-idp-template/tree/v1.0.0 [v1.0.0]: https://github.com/CESNET/einfra-aai-proxy-idp-template/tree/v1.0.0
\ No newline at end of file
...@@ -121,7 +121,7 @@ class IsCesnetEligible extends ProcessingFilter ...@@ -121,7 +121,7 @@ class IsCesnetEligible extends ProcessingFilter
$isHostelVerified = false; $isHostelVerified = false;
if ($request['saml:sp:IdP'] === self::HOSTEL_ENTITY_ID && if ($request['saml:sp:IdP'] === self::HOSTEL_ENTITY_ID &&
isset($request['Attributes']['loa']) isset($request['Attributes']['loa'])
&& $request['Attributes']['loa'][0] === 2 && (integer)$request['Attributes']['loa'][0] === 2
) { ) {
$isHostelVerified = true; $isHostelVerified = true;
Logger::debug('cesnet:IsCesnetEligible - The user was verified by Hostel.'); Logger::debug('cesnet:IsCesnetEligible - The user was verified by Hostel.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment