Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • perun/perun-proxyidp/v1/simplesamlphp-module-perun
1 result
Select Git revision
Show changes
Commits on Source (18)
# [9.1.0](https://gitlab.ics.muni.cz/perun-proxy-aai/simplesamlphp/simplesamlphp-module-perun/compare/v9.0.8...v9.1.0) (2023-03-01)
### Bug Fixes
* improve wording of TOTP prompt ([42544f1](https://gitlab.ics.muni.cz/perun-proxy-aai/simplesamlphp/simplesamlphp-module-perun/commit/42544f1860f6acd9ed13514f85a01aecc8e0b9cf))
* rpc method for get facilities by attr with attrs ([395f5e7](https://gitlab.ics.muni.cz/perun-proxy-aai/simplesamlphp/simplesamlphp-module-perun/commit/395f5e7680d8ad6f476a5436da22d4ec98f16ed7))
### Features
* authProcFilter for creating member, new page for checking result, new AdapterRpc methods ([be97b40](https://gitlab.ics.muni.cz/perun-proxy-aai/simplesamlphp/simplesamlphp-module-perun/commit/be97b40ebac9e12c0771d0aef229eb7564832c59))
* getSpMetadataXML.php ([2611658](https://gitlab.ics.muni.cz/perun-proxy-aai/simplesamlphp/simplesamlphp-module-perun/commit/2611658cc8f7e79c38c3bb0f9f9a2e83b8d813a9))
## [9.0.8](https://gitlab.ics.muni.cz/perun-proxy-aai/simplesamlphp/simplesamlphp-module-perun/compare/v9.0.7...v9.0.8) (2022-12-15)
......
......@@ -105,24 +105,24 @@
},
{
"name": "fgrosse/phpasn1",
"version": "v2.4.0",
"version": "v2.5.0",
"source": {
"type": "git",
"url": "https://github.com/fgrosse/PHPASN1.git",
"reference": "eef488991d53e58e60c9554b09b1201ca5ba9296"
"reference": "42060ed45344789fb9f21f9f1864fc47b9e3507b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/fgrosse/PHPASN1/zipball/eef488991d53e58e60c9554b09b1201ca5ba9296",
"reference": "eef488991d53e58e60c9554b09b1201ca5ba9296",
"url": "https://api.github.com/repos/fgrosse/PHPASN1/zipball/42060ed45344789fb9f21f9f1864fc47b9e3507b",
"reference": "42060ed45344789fb9f21f9f1864fc47b9e3507b",
"shasum": ""
},
"require": {
"php": "~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0"
"php": "^7.1 || ^8.0"
},
"require-dev": {
"php-coveralls/php-coveralls": "~2.0",
"phpunit/phpunit": "^6.3 || ^7.0 || ^8.0"
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
},
"suggest": {
"ext-bcmath": "BCmath is the fallback extension for big integer calculations",
......@@ -174,22 +174,23 @@
],
"support": {
"issues": "https://github.com/fgrosse/PHPASN1/issues",
"source": "https://github.com/fgrosse/PHPASN1/tree/v2.4.0"
"source": "https://github.com/fgrosse/PHPASN1/tree/v2.5.0"
},
"time": "2021-12-11T12:41:06+00:00"
"abandoned": true,
"time": "2022-12-19T11:08:26+00:00"
},
{
"name": "gettext/gettext",
"version": "v4.8.7",
"version": "v4.8.8",
"source": {
"type": "git",
"url": "https://github.com/php-gettext/Gettext.git",
"reference": "3f7bc5ef23302a9059e64934f3d59e454516bec0"
"reference": "302a00aa9d6762c92c884d879c15d3ed05d6a37d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-gettext/Gettext/zipball/3f7bc5ef23302a9059e64934f3d59e454516bec0",
"reference": "3f7bc5ef23302a9059e64934f3d59e454516bec0",
"url": "https://api.github.com/repos/php-gettext/Gettext/zipball/302a00aa9d6762c92c884d879c15d3ed05d6a37d",
"reference": "302a00aa9d6762c92c884d879c15d3ed05d6a37d",
"shasum": ""
},
"require": {
......@@ -241,7 +242,7 @@
"support": {
"email": "oom@oscarotero.com",
"issues": "https://github.com/oscarotero/Gettext/issues",
"source": "https://github.com/php-gettext/Gettext/tree/v4.8.7"
"source": "https://github.com/php-gettext/Gettext/tree/v4.8.8"
},
"funding": [
{
......@@ -257,7 +258,7 @@
"type": "patreon"
}
],
"time": "2022-08-02T09:42:10+00:00"
"time": "2022-12-08T11:59:50+00:00"
},
{
"name": "gettext/languages",
......@@ -584,16 +585,16 @@
},
{
"name": "phpmailer/phpmailer",
"version": "v6.6.5",
"version": "v6.7.1",
"source": {
"type": "git",
"url": "https://github.com/PHPMailer/PHPMailer.git",
"reference": "8b6386d7417526d1ea4da9edb70b8352f7543627"
"reference": "49cd7ea3d2563f028d7811f06864a53b1f15ff55"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/8b6386d7417526d1ea4da9edb70b8352f7543627",
"reference": "8b6386d7417526d1ea4da9edb70b8352f7543627",
"url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/49cd7ea3d2563f028d7811f06864a53b1f15ff55",
"reference": "49cd7ea3d2563f028d7811f06864a53b1f15ff55",
"shasum": ""
},
"require": {
......@@ -603,17 +604,19 @@
"php": ">=5.5.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"doctrine/annotations": "^1.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"doctrine/annotations": "^1.2.6 || ^1.13.3",
"php-parallel-lint/php-console-highlighter": "^1.0.0",
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"phpcompatibility/php-compatibility": "^9.3.5",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.6.2",
"yoast/phpunit-polyfills": "^1.0.0"
"squizlabs/php_codesniffer": "^3.7.1",
"yoast/phpunit-polyfills": "^1.0.4"
},
"suggest": {
"ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses",
"ext-openssl": "Needed for secure SMTP sending and DKIM signing",
"greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication",
"hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication",
"league/oauth2-google": "Needed for Google XOAUTH2 authentication",
"psr/log": "For optional PSR-3 debug logging",
......@@ -650,7 +653,7 @@
"description": "PHPMailer is a full-featured email creation and transfer class for PHP",
"support": {
"issues": "https://github.com/PHPMailer/PHPMailer/issues",
"source": "https://github.com/PHPMailer/PHPMailer/tree/v6.6.5"
"source": "https://github.com/PHPMailer/PHPMailer/tree/v6.7.1"
},
"funding": [
{
......@@ -658,20 +661,20 @@
"type": "github"
}
],
"time": "2022-10-07T12:23:10+00:00"
"time": "2022-12-08T13:30:06+00:00"
},
{
"name": "phpseclib/phpseclib",
"version": "3.0.17",
"version": "3.0.18",
"source": {
"type": "git",
"url": "https://github.com/phpseclib/phpseclib.git",
"reference": "dbc2307d5c69aeb22db136c52e91130d7f2ca761"
"reference": "f28693d38ba21bb0d9f0c411ee5dae2b178201da"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/dbc2307d5c69aeb22db136c52e91130d7f2ca761",
"reference": "dbc2307d5c69aeb22db136c52e91130d7f2ca761",
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/f28693d38ba21bb0d9f0c411ee5dae2b178201da",
"reference": "f28693d38ba21bb0d9f0c411ee5dae2b178201da",
"shasum": ""
},
"require": {
......@@ -752,7 +755,7 @@
],
"support": {
"issues": "https://github.com/phpseclib/phpseclib/issues",
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.17"
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.18"
},
"funding": [
{
......@@ -768,7 +771,7 @@
"type": "tidelift"
}
],
"time": "2022-10-24T10:51:50+00:00"
"time": "2022-12-17T18:26:50+00:00"
},
{
"name": "psr/cache",
......@@ -1326,16 +1329,16 @@
},
{
"name": "simplesamlphp/simplesamlphp",
"version": "v1.19.5",
"version": "v1.19.7",
"source": {
"type": "git",
"url": "https://github.com/simplesamlphp/simplesamlphp.git",
"reference": "da0df94ab05da52ce27ab7c2a360567046bf03b2"
"reference": "f62565d62e0d4e5f105008608faa96949acf854b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/simplesamlphp/simplesamlphp/zipball/da0df94ab05da52ce27ab7c2a360567046bf03b2",
"reference": "da0df94ab05da52ce27ab7c2a360567046bf03b2",
"url": "https://api.github.com/repos/simplesamlphp/simplesamlphp/zipball/f62565d62e0d4e5f105008608faa96949acf854b",
"reference": "f62565d62e0d4e5f105008608faa96949acf854b",
"shasum": ""
},
"require": {
......@@ -1348,12 +1351,12 @@
"ext-pcre": "*",
"ext-spl": "*",
"ext-zlib": "*",
"gettext/gettext": "^4.8",
"gettext/gettext": "^4.8.7",
"php": ">=7.1|^8",
"phpmailer/phpmailer": "^6.1",
"robrichards/xmlseclibs": "^3.1",
"simplesamlphp/assert": "^0.0.13",
"simplesamlphp/saml2": "^4.3",
"simplesamlphp/saml2": "^4.5",
"simplesamlphp/simplesamlphp-module-adfs": "^1.0",
"simplesamlphp/simplesamlphp-module-authcrypt": "^0.9",
"simplesamlphp/simplesamlphp-module-authfacebook": "^0.9",
......@@ -1372,7 +1375,7 @@
"simplesamlphp/simplesamlphp-module-ldap": "^0.9 | ^1.0",
"simplesamlphp/simplesamlphp-module-memcachemonitor": "^0.9",
"simplesamlphp/simplesamlphp-module-memcookie": "^1.2",
"simplesamlphp/simplesamlphp-module-metarefresh": "^0.9",
"simplesamlphp/simplesamlphp-module-metarefresh": "^0.10",
"simplesamlphp/simplesamlphp-module-negotiate": "^0.9",
"simplesamlphp/simplesamlphp-module-oauth": "^0.9.3",
"simplesamlphp/simplesamlphp-module-preprodwarning": "^0.9",
......@@ -1394,7 +1397,7 @@
"symfony/routing": "^4.4 || ^5.0",
"symfony/var-exporter": "^4.4 || ^5.0",
"symfony/yaml": "^4.4 || ^5.0",
"twig/twig": "^1.43 || ^2.0"
"twig/twig": "^2.15.3"
},
"require-dev": {
"ext-curl": "*",
......@@ -1454,7 +1457,7 @@
"issues": "https://github.com/simplesamlphp/simplesamlphp/issues",
"source": "https://github.com/simplesamlphp/simplesamlphp"
},
"time": "2022-01-24T15:44:40+00:00"
"time": "2022-12-05T19:46:47+00:00"
},
{
"name": "simplesamlphp/simplesamlphp-module-adfs",
......@@ -2398,16 +2401,16 @@
},
{
"name": "simplesamlphp/simplesamlphp-module-metarefresh",
"version": "v0.9.7",
"version": "v0.10.0",
"source": {
"type": "git",
"url": "https://github.com/simplesamlphp/simplesamlphp-module-metarefresh.git",
"reference": "ca724f0edd1179bb0056dc4561d455db7a1f1adc"
"reference": "488d7809857c274befac89facfa03520a05bc1ba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/simplesamlphp/simplesamlphp-module-metarefresh/zipball/ca724f0edd1179bb0056dc4561d455db7a1f1adc",
"reference": "ca724f0edd1179bb0056dc4561d455db7a1f1adc",
"url": "https://api.github.com/repos/simplesamlphp/simplesamlphp-module-metarefresh/zipball/488d7809857c274befac89facfa03520a05bc1ba",
"reference": "488d7809857c274befac89facfa03520a05bc1ba",
"shasum": ""
},
"require": {
......@@ -2443,7 +2446,7 @@
"issues": "https://github.com/tvdijen/simplesamlphp-module-metarefresh/issues",
"source": "https://github.com/tvdijen/simplesamlphp-module-metarefresh"
},
"time": "2022-01-06T22:45:08+00:00"
"time": "2022-05-03T08:57:30+00:00"
},
{
"name": "simplesamlphp/simplesamlphp-module-negotiate",
......@@ -2961,6 +2964,7 @@
"issues": "https://github.com/simplesamlphp/twig-configurable-i18n/issues",
"source": "https://github.com/simplesamlphp/twig-configurable-i18n"
},
"abandoned": true,
"time": "2022-11-28T16:34:29+00:00"
},
{
......@@ -3030,16 +3034,16 @@
},
{
"name": "symfony/cache",
"version": "v5.4.15",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/cache.git",
"reference": "60e87188abbacd29ccde44d69c5392a33e888e98"
"reference": "e9147c89fdfdc5d5ef798bb7193f23726ad609f5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/cache/zipball/60e87188abbacd29ccde44d69c5392a33e888e98",
"reference": "60e87188abbacd29ccde44d69c5392a33e888e98",
"url": "https://api.github.com/repos/symfony/cache/zipball/e9147c89fdfdc5d5ef798bb7193f23726ad609f5",
"reference": "e9147c89fdfdc5d5ef798bb7193f23726ad609f5",
"shasum": ""
},
"require": {
......@@ -3107,7 +3111,7 @@
"psr6"
],
"support": {
"source": "https://github.com/symfony/cache/tree/v5.4.15"
"source": "https://github.com/symfony/cache/tree/v5.4.19"
},
"funding": [
{
......@@ -3123,7 +3127,7 @@
"type": "tidelift"
}
],
"time": "2022-10-27T07:55:40+00:00"
"time": "2023-01-19T09:49:58+00:00"
},
{
"name": "symfony/cache-contracts",
......@@ -3206,16 +3210,16 @@
},
{
"name": "symfony/config",
"version": "v5.4.11",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/config.git",
"reference": "ec79e03125c1d2477e43dde8528535d90cc78379"
"reference": "9bd60843443cda9638efdca7c41eb82ed0026179"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/config/zipball/ec79e03125c1d2477e43dde8528535d90cc78379",
"reference": "ec79e03125c1d2477e43dde8528535d90cc78379",
"url": "https://api.github.com/repos/symfony/config/zipball/9bd60843443cda9638efdca7c41eb82ed0026179",
"reference": "9bd60843443cda9638efdca7c41eb82ed0026179",
"shasum": ""
},
"require": {
......@@ -3265,7 +3269,7 @@
"description": "Helps you find, load, combine, autofill and validate configuration values of any kind",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/config/tree/v5.4.11"
"source": "https://github.com/symfony/config/tree/v5.4.19"
},
"funding": [
{
......@@ -3281,20 +3285,20 @@
"type": "tidelift"
}
],
"time": "2022-07-20T13:00:38+00:00"
"time": "2023-01-08T13:23:55+00:00"
},
{
"name": "symfony/console",
"version": "v5.4.16",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "8e9b9c8dfb33af6057c94e1b44846bee700dc5ef"
"reference": "dccb8d251a9017d5994c988b034d3e18aaabf740"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/8e9b9c8dfb33af6057c94e1b44846bee700dc5ef",
"reference": "8e9b9c8dfb33af6057c94e1b44846bee700dc5ef",
"url": "https://api.github.com/repos/symfony/console/zipball/dccb8d251a9017d5994c988b034d3e18aaabf740",
"reference": "dccb8d251a9017d5994c988b034d3e18aaabf740",
"shasum": ""
},
"require": {
......@@ -3364,7 +3368,7 @@
"terminal"
],
"support": {
"source": "https://github.com/symfony/console/tree/v5.4.16"
"source": "https://github.com/symfony/console/tree/v5.4.19"
},
"funding": [
{
......@@ -3380,20 +3384,20 @@
"type": "tidelift"
}
],
"time": "2022-11-25T14:09:27+00:00"
"time": "2023-01-01T08:32:19+00:00"
},
{
"name": "symfony/dependency-injection",
"version": "v5.4.16",
"version": "v5.4.20",
"source": {
"type": "git",
"url": "https://github.com/symfony/dependency-injection.git",
"reference": "a93e1863500940780fc1235f52d54397be2d14b3"
"reference": "8185ed0df129005a26715902f1a53bad0fe67102"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/dependency-injection/zipball/a93e1863500940780fc1235f52d54397be2d14b3",
"reference": "a93e1863500940780fc1235f52d54397be2d14b3",
"url": "https://api.github.com/repos/symfony/dependency-injection/zipball/8185ed0df129005a26715902f1a53bad0fe67102",
"reference": "8185ed0df129005a26715902f1a53bad0fe67102",
"shasum": ""
},
"require": {
......@@ -3453,7 +3457,7 @@
"description": "Allows you to standardize and centralize the way objects are constructed in your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/dependency-injection/tree/v5.4.16"
"source": "https://github.com/symfony/dependency-injection/tree/v5.4.20"
},
"funding": [
{
......@@ -3469,7 +3473,7 @@
"type": "tidelift"
}
],
"time": "2022-11-25T07:33:13+00:00"
"time": "2023-01-27T11:08:11+00:00"
},
{
"name": "symfony/deprecation-contracts",
......@@ -3540,16 +3544,16 @@
},
{
"name": "symfony/error-handler",
"version": "v5.4.15",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/error-handler.git",
"reference": "539cf1428b8442303c6e876ad7bf5a7babd91091"
"reference": "438ef3e5e6481244785da3ce8cf8f4e74e7f2822"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/539cf1428b8442303c6e876ad7bf5a7babd91091",
"reference": "539cf1428b8442303c6e876ad7bf5a7babd91091",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/438ef3e5e6481244785da3ce8cf8f4e74e7f2822",
"reference": "438ef3e5e6481244785da3ce8cf8f4e74e7f2822",
"shasum": ""
},
"require": {
......@@ -3591,7 +3595,7 @@
"description": "Provides tools to manage errors and ease debugging PHP code",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/error-handler/tree/v5.4.15"
"source": "https://github.com/symfony/error-handler/tree/v5.4.19"
},
"funding": [
{
......@@ -3607,20 +3611,20 @@
"type": "tidelift"
}
],
"time": "2022-10-27T06:32:25+00:00"
"time": "2023-01-01T08:32:19+00:00"
},
{
"name": "symfony/event-dispatcher",
"version": "v5.4.9",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
"reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc"
"reference": "abf49cc084c087d94b4cb939c3f3672971784e0c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc",
"reference": "8e6ce1cc0279e3ff3c8ff0f43813bc88d21ca1bc",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/abf49cc084c087d94b4cb939c3f3672971784e0c",
"reference": "abf49cc084c087d94b4cb939c3f3672971784e0c",
"shasum": ""
},
"require": {
......@@ -3676,7 +3680,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/event-dispatcher/tree/v5.4.9"
"source": "https://github.com/symfony/event-dispatcher/tree/v5.4.19"
},
"funding": [
{
......@@ -3692,7 +3696,7 @@
"type": "tidelift"
}
],
"time": "2022-05-05T16:45:39+00:00"
"time": "2023-01-01T08:32:19+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
......@@ -3775,16 +3779,16 @@
},
{
"name": "symfony/filesystem",
"version": "v5.4.13",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
"reference": "ac09569844a9109a5966b9438fc29113ce77cf51"
"reference": "648bfaca6a494f3e22378123bcee2894045dc9d8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/ac09569844a9109a5966b9438fc29113ce77cf51",
"reference": "ac09569844a9109a5966b9438fc29113ce77cf51",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/648bfaca6a494f3e22378123bcee2894045dc9d8",
"reference": "648bfaca6a494f3e22378123bcee2894045dc9d8",
"shasum": ""
},
"require": {
......@@ -3819,7 +3823,7 @@
"description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/filesystem/tree/v5.4.13"
"source": "https://github.com/symfony/filesystem/tree/v5.4.19"
},
"funding": [
{
......@@ -3835,20 +3839,20 @@
"type": "tidelift"
}
],
"time": "2022-09-21T19:53:16+00:00"
"time": "2023-01-14T19:14:44+00:00"
},
{
"name": "symfony/finder",
"version": "v5.4.11",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c"
"reference": "6071aebf810ad13fe8200c224f36103abb37cf1f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/7872a66f57caffa2916a584db1aa7f12adc76f8c",
"reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c",
"url": "https://api.github.com/repos/symfony/finder/zipball/6071aebf810ad13fe8200c224f36103abb37cf1f",
"reference": "6071aebf810ad13fe8200c224f36103abb37cf1f",
"shasum": ""
},
"require": {
......@@ -3882,7 +3886,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/finder/tree/v5.4.11"
"source": "https://github.com/symfony/finder/tree/v5.4.19"
},
"funding": [
{
......@@ -3898,20 +3902,20 @@
"type": "tidelift"
}
],
"time": "2022-07-29T07:37:50+00:00"
"time": "2023-01-14T19:14:44+00:00"
},
{
"name": "symfony/framework-bundle",
"version": "v5.4.16",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/framework-bundle.git",
"reference": "70bfb2e76b8d97b2b19058bd65046b4cc1f04e3d"
"reference": "a208ee578000f9dedcb50a9784ec7ff8706a7bf1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/framework-bundle/zipball/70bfb2e76b8d97b2b19058bd65046b4cc1f04e3d",
"reference": "70bfb2e76b8d97b2b19058bd65046b4cc1f04e3d",
"url": "https://api.github.com/repos/symfony/framework-bundle/zipball/a208ee578000f9dedcb50a9784ec7ff8706a7bf1",
"reference": "a208ee578000f9dedcb50a9784ec7ff8706a7bf1",
"shasum": ""
},
"require": {
......@@ -3963,7 +3967,7 @@
"symfony/workflow": "<5.2"
},
"require-dev": {
"doctrine/annotations": "^1.13.1",
"doctrine/annotations": "^1.13.1|^2",
"doctrine/cache": "^1.11|^2.0",
"doctrine/persistence": "^1.3|^2|^3",
"phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0",
......@@ -4033,7 +4037,7 @@
"description": "Provides a tight integration between Symfony components and the Symfony full-stack framework",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/framework-bundle/tree/v5.4.16"
"source": "https://github.com/symfony/framework-bundle/tree/v5.4.19"
},
"funding": [
{
......@@ -4049,20 +4053,20 @@
"type": "tidelift"
}
],
"time": "2022-11-25T14:26:10+00:00"
"time": "2023-01-10T17:40:25+00:00"
},
{
"name": "symfony/http-foundation",
"version": "v5.4.16",
"version": "v5.4.20",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "5032c5849aef24741e1970cb03511b0dd131d838"
"reference": "d0435363362a47c14e9cf50663cb8ffbf491875a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/5032c5849aef24741e1970cb03511b0dd131d838",
"reference": "5032c5849aef24741e1970cb03511b0dd131d838",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/d0435363362a47c14e9cf50663cb8ffbf491875a",
"reference": "d0435363362a47c14e9cf50663cb8ffbf491875a",
"shasum": ""
},
"require": {
......@@ -4109,7 +4113,7 @@
"description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-foundation/tree/v5.4.16"
"source": "https://github.com/symfony/http-foundation/tree/v5.4.20"
},
"funding": [
{
......@@ -4125,20 +4129,20 @@
"type": "tidelift"
}
],
"time": "2022-11-07T08:06:40+00:00"
"time": "2023-01-29T11:11:52+00:00"
},
{
"name": "symfony/http-kernel",
"version": "v5.4.16",
"version": "v5.4.20",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
"reference": "b432c57c5de73634b1859093c1f58e3cd84455a1"
"reference": "aaeec341582d3c160cc9ecfa8b2419ba6c69954e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/b432c57c5de73634b1859093c1f58e3cd84455a1",
"reference": "b432c57c5de73634b1859093c1f58e3cd84455a1",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/aaeec341582d3c160cc9ecfa8b2419ba6c69954e",
"reference": "aaeec341582d3c160cc9ecfa8b2419ba6c69954e",
"shasum": ""
},
"require": {
......@@ -4221,7 +4225,7 @@
"description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-kernel/tree/v5.4.16"
"source": "https://github.com/symfony/http-kernel/tree/v5.4.20"
},
"funding": [
{
......@@ -4237,7 +4241,7 @@
"type": "tidelift"
}
],
"time": "2022-11-28T18:08:58+00:00"
"time": "2023-02-01T08:18:48+00:00"
},
{
"name": "symfony/polyfill-ctype",
......@@ -4888,16 +4892,16 @@
},
{
"name": "symfony/routing",
"version": "v5.4.15",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/routing.git",
"reference": "5c9b129efe9abce9470e384bf65d8a7e262eee69"
"reference": "df1b28f37c8e78912213c58ef6ab2f2037bbfdc5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/5c9b129efe9abce9470e384bf65d8a7e262eee69",
"reference": "5c9b129efe9abce9470e384bf65d8a7e262eee69",
"url": "https://api.github.com/repos/symfony/routing/zipball/df1b28f37c8e78912213c58ef6ab2f2037bbfdc5",
"reference": "df1b28f37c8e78912213c58ef6ab2f2037bbfdc5",
"shasum": ""
},
"require": {
......@@ -4912,7 +4916,7 @@
"symfony/yaml": "<4.4"
},
"require-dev": {
"doctrine/annotations": "^1.12",
"doctrine/annotations": "^1.12|^2",
"psr/log": "^1|^2|^3",
"symfony/config": "^5.3|^6.0",
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
......@@ -4958,7 +4962,7 @@
"url"
],
"support": {
"source": "https://github.com/symfony/routing/tree/v5.4.15"
"source": "https://github.com/symfony/routing/tree/v5.4.19"
},
"funding": [
{
......@@ -4974,7 +4978,7 @@
"type": "tidelift"
}
],
"time": "2022-10-13T14:10:41+00:00"
"time": "2023-01-01T08:32:19+00:00"
},
{
"name": "symfony/service-contracts",
......@@ -5061,16 +5065,16 @@
},
{
"name": "symfony/string",
"version": "v5.4.15",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
"reference": "571334ce9f687e3e6af72db4d3b2a9431e4fd9ed"
"reference": "0a01071610fd861cc160dfb7e2682ceec66064cb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/571334ce9f687e3e6af72db4d3b2a9431e4fd9ed",
"reference": "571334ce9f687e3e6af72db4d3b2a9431e4fd9ed",
"url": "https://api.github.com/repos/symfony/string/zipball/0a01071610fd861cc160dfb7e2682ceec66064cb",
"reference": "0a01071610fd861cc160dfb7e2682ceec66064cb",
"shasum": ""
},
"require": {
......@@ -5127,7 +5131,7 @@
"utf8"
],
"support": {
"source": "https://github.com/symfony/string/tree/v5.4.15"
"source": "https://github.com/symfony/string/tree/v5.4.19"
},
"funding": [
{
......@@ -5143,20 +5147,20 @@
"type": "tidelift"
}
],
"time": "2022-10-05T15:16:54+00:00"
"time": "2023-01-01T08:32:19+00:00"
},
{
"name": "symfony/var-dumper",
"version": "v5.4.14",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "6894d06145fefebd9a4c7272baa026a1c394a430"
"reference": "2944bbc23f5f8da2b962fbcbf7c4a6109b2f4b7b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/6894d06145fefebd9a4c7272baa026a1c394a430",
"reference": "6894d06145fefebd9a4c7272baa026a1c394a430",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/2944bbc23f5f8da2b962fbcbf7c4a6109b2f4b7b",
"reference": "2944bbc23f5f8da2b962fbcbf7c4a6109b2f4b7b",
"shasum": ""
},
"require": {
......@@ -5216,7 +5220,7 @@
"dump"
],
"support": {
"source": "https://github.com/symfony/var-dumper/tree/v5.4.14"
"source": "https://github.com/symfony/var-dumper/tree/v5.4.19"
},
"funding": [
{
......@@ -5232,20 +5236,20 @@
"type": "tidelift"
}
],
"time": "2022-10-07T08:01:20+00:00"
"time": "2023-01-16T10:52:33+00:00"
},
{
"name": "symfony/var-exporter",
"version": "v5.4.10",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-exporter.git",
"reference": "8fc03ee75eeece3d9be1ef47d26d79bea1afb340"
"reference": "2a1d06fcf2b30829d6c01dae8e6e188424d1f8f6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-exporter/zipball/8fc03ee75eeece3d9be1ef47d26d79bea1afb340",
"reference": "8fc03ee75eeece3d9be1ef47d26d79bea1afb340",
"url": "https://api.github.com/repos/symfony/var-exporter/zipball/2a1d06fcf2b30829d6c01dae8e6e188424d1f8f6",
"reference": "2a1d06fcf2b30829d6c01dae8e6e188424d1f8f6",
"shasum": ""
},
"require": {
......@@ -5289,7 +5293,7 @@
"serialize"
],
"support": {
"source": "https://github.com/symfony/var-exporter/tree/v5.4.10"
"source": "https://github.com/symfony/var-exporter/tree/v5.4.19"
},
"funding": [
{
......@@ -5305,20 +5309,20 @@
"type": "tidelift"
}
],
"time": "2022-05-27T12:56:18+00:00"
"time": "2023-01-12T16:39:29+00:00"
},
{
"name": "symfony/yaml",
"version": "v5.4.16",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "ebd37c71f62d5ec5f6e27de3e06fee492d4c6298"
"reference": "71c05db20cb9b54d381a28255f17580e2b7e36a5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/ebd37c71f62d5ec5f6e27de3e06fee492d4c6298",
"reference": "ebd37c71f62d5ec5f6e27de3e06fee492d4c6298",
"url": "https://api.github.com/repos/symfony/yaml/zipball/71c05db20cb9b54d381a28255f17580e2b7e36a5",
"reference": "71c05db20cb9b54d381a28255f17580e2b7e36a5",
"shasum": ""
},
"require": {
......@@ -5364,7 +5368,7 @@
"description": "Loads and dumps YAML files",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/yaml/tree/v5.4.16"
"source": "https://github.com/symfony/yaml/tree/v5.4.19"
},
"funding": [
{
......@@ -5380,7 +5384,7 @@
"type": "tidelift"
}
],
"time": "2022-11-25T16:04:03+00:00"
"time": "2023-01-10T18:51:14+00:00"
},
{
"name": "twig/extensions",
......@@ -5444,16 +5448,16 @@
},
{
"name": "twig/twig",
"version": "v2.15.3",
"version": "v2.15.4",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
"reference": "ab402673db8746cb3a4c46f3869d6253699f614a"
"reference": "3e059001d6d597dd50ea7c74dd2464b4adea48d3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/ab402673db8746cb3a4c46f3869d6253699f614a",
"reference": "ab402673db8746cb3a4c46f3869d6253699f614a",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/3e059001d6d597dd50ea7c74dd2464b4adea48d3",
"reference": "3e059001d6d597dd50ea7c74dd2464b4adea48d3",
"shasum": ""
},
"require": {
......@@ -5508,7 +5512,7 @@
],
"support": {
"issues": "https://github.com/twigphp/Twig/issues",
"source": "https://github.com/twigphp/Twig/tree/v2.15.3"
"source": "https://github.com/twigphp/Twig/tree/v2.15.4"
},
"funding": [
{
......@@ -5520,7 +5524,7 @@
"type": "tidelift"
}
],
"time": "2022-09-28T08:40:08+00:00"
"time": "2022-12-27T12:26:20+00:00"
},
{
"name": "web-token/jwt-checker",
......
......@@ -318,4 +318,9 @@ $config = [
// ],
],
],
/*
* attribute in perun_attributes.php used as entityID
*/
'entityIdAttr' => 'perunFacilityAttr_entityID',
];
......@@ -178,5 +178,17 @@
"403_is_eligible_default_contact": {
"en": "If you think you have used an account which meets the criteria, and you are still prevented from logging in to the service, please contact us at",
"cs": "Pokud si myslíte, že používáte správný účet a přístup je Vám odmítnut neprávem, prosíme kontakujte nás na"
},
"create_member_exception_text": {
"en": "Error occured when activating account. Please try again later.",
"cs": "Při aktivování účtu se objevila chyba. Zkuste to prosím za chvíli."
},
"create_member_success_text": {
"en": "Your account was successfully activated. Changes should be noticeable within 5-10 minutes.",
"cs": "Váš účet byl úspěšně aktivován. Změny by se měly projevit do 5-10 minut."
},
"create_member_button": {
"en": "Continue",
"cs": "Pokračovat"
}
}
......@@ -8,7 +8,7 @@
"cs": "Služba ke které přistupujete vyžádala vícefaktorovout autentizaci. Použijte jednu z vašich zaregistrovaných metod kliknutím na jedno z tlačítek nížě."
},
"otp_help": {
"en": "Enter the 6 digit one time password from the smartphone application.",
"en": "Enter the one time password from the smartphone application.",
"cs": "Vložte jednorázový kód, například z TOTP aplikace."
}
}
......@@ -826,14 +826,18 @@ class AdapterRpc extends Adapter
public function getFacilitiesByAttributeWithAttributes($attributeName, $attributeValue, $attrNames)
{
$attrNamesMap = AttributeUtils::getRpcAttrNames($attrNames);
$facilitiesWithAttributes = $this->connector->post(
'facilitiesManager',
'getFacilitiesByAttributeWithAttributes',
['attributeName' => $attributeName, 'attributeValue' => $attributeValue, 'attrNames' => $attrNames]
[
'attributeName' => $attributeName,
'attributeValue' => $attributeValue,
'attrNames' => array_keys($attrNamesMap)
]
);
$attrNamesMap = AttributeUtils::getRpcAttrNames($attrNames);
foreach ($facilitiesWithAttributes as $key => $facilityWithAttributes) {
$facilitiesWithAttributes[$key]['attributes'] = $this->getAttributes(
$facilityWithAttributes['attributes'],
......@@ -844,6 +848,24 @@ class AdapterRpc extends Adapter
return $facilitiesWithAttributes;
}
public function getExtSourceByName(string $extSourceName)
{
return $this->connector->get(
'extSourcesManager',
'getExtSourceByName',
['name' => $extSourceName]
);
}
public function createMember(int $voId, int $extSourceId, string $extLogin)
{
$this->connector->post(
'membersManager',
'createMember',
['vo' => $voId, 'extSource' => $extSourceId, "login" => $extLogin]
);
}
private function getAttributes($perunAttrs, $attrNamesMap)
{
$attributes = [];
......
<?php
namespace SimpleSAML\Module\perun\Auth\Process;
use SimpleSAML\Auth\State;
use SimpleSAML\Configuration;
use SimpleSAML\Auth\ProcessingFilter;
use SimpleSAML\Error\Exception;
use SimpleSAML\Module;
use SimpleSAML\Module\perun\AdapterRpc;
use SimpleSAML\Module\perun\Exception as PerunException;
use SimpleSAML\Module\perun\PerunConstants;
use SimpleSAML\Utils\HTTP;
class PerunCreateMember extends ProcessingFilter
{
public const TEMPLATE_URL = 'perun:perun-create-member-tpl.php';
public const REDIRECT_URL = 'perun/perun_create_member.php';
public const CALLBACK_URL = 'perun/perun_create_member_callback.php';
public const STAGE = 'perun:PerunCreateMember';
public const PARAM_WAS_EXCEPTION = 'was_exception';
public const PARAM_STATE_ID = PerunConstants::STATE_ID;
public const PARAM_CALLBACK = 'callback';
public const DEBUG_PREFIX = self::STAGE . ' - ';
public const UID_ATTR = 'uid_attr';
public const IDP_ENTITY_ID = 'idp_entity_id';
public const VO_SHORT_NAME = 'vo_short_name';
private $config;
private $userIdAttr;
private $adapter;
private $idpEntityId;
private $voShortName;
public function __construct($config = null, $reserved = null)
{
if ($config) {
parent::__construct($config, $reserved);
}
$this->config = Configuration::loadFromArray($config);
$this->userIdAttr = $this->config->getString(self::UID_ATTR, null);
$this->voShortName = $this->config->getString(self::VO_SHORT_NAME, null);
$this->idpEntityId = $this->config->getString(self::IDP_ENTITY_ID, null);
$this->adapter = new AdapterRpc();
if (empty($this->userIdAttr)) {
throw new Exception(
self::DEBUG_PREFIX .
'Invalid configuration: no attribute configured for extracting UID. Use option \'' . self::UID_ATTR .
'\' to configure list of attributes, that should be considered as IDs for a user'
);
}
if (empty($this->voShortName)) {
throw new Exception(
self::DEBUG_PREFIX .
'Invalid configuration: no vo_short_name configured. Use option \'' . self::VO_SHORT_NAME .
'\' to configure VO in which member should be created.'
);
}
if (empty($this->idpEntityId)) {
throw new Exception(
self::DEBUG_PREFIX .
'Invalid configuration: no idp_entity_id configured. Use option \'' . self::IDP_ENTITY_ID .
'\' to configure idp for which this filter will be performed.'
);
}
}
public function process(&$request)
{
if (isset($request[PerunConstants::ATTRIBUTES][$this->userIdAttr[0]])) {
$uid = $request[PerunConstants::ATTRIBUTES][$this->userIdAttr[0]];
} else {
throw new Exception(
self::DEBUG_PREFIX . 'missing user id attribute in request.'
);
}
$alreadyMember = false;
$wasException = false;
try {
$extSource = $this->adapter->getExtSourceByName($this->idpEntityId);
$vo = $this->adapter->getVoByShortName($this->voShortName);
$this->adapter->createMember($vo->getId(), $extSource["id"], $uid);
} catch (PerunException $e) {
if ($e->getName() === 'AlreadyMemberException') {
$alreadyMember = true;
} else {
$wasException = true;
}
}
if ($alreadyMember) {
return;
}
$stateId = State::saveState($request, self::STAGE);
$url = Module::getModuleURL(self::REDIRECT_URL);
$params = [];
$params[self::PARAM_WAS_EXCEPTION] = $wasException;
$params[self::PARAM_CALLBACK] = Module::getModuleURL(self::CALLBACK_URL, [
self::PARAM_STATE_ID => $stateId,
]);
HTTP::redirectTrustedURL($url, $params);
}
}
......@@ -11,9 +11,9 @@
}
},
"node_modules/@types/node": {
"version": "16.18.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.4.tgz",
"integrity": "sha512-9qGjJ5GyShZjUfx2ArBIGM+xExdfLvvaCyQR0t6yRXKPcWCVYF/WemtX/uIU3r7FYECXRXkIiw2Vnhn6y8d+pw==",
"version": "16.18.12",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.12.tgz",
"integrity": "sha512-vzLe5NaNMjIE3mcddFVGlAXN1LEWueUsMsOJWaT6wWMJGyljHAWHznqfnKUQWGzu7TLPrGvWdNAsvQYW+C0xtw==",
"dev": true
},
"node_modules/ansi-regex": {
......@@ -50,9 +50,9 @@
}
},
"node_modules/browserslist": {
"version": "4.21.4",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz",
"integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==",
"version": "4.21.5",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz",
"integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==",
"dev": true,
"funding": [
{
......@@ -65,10 +65,10 @@
}
],
"dependencies": {
"caniuse-lite": "^1.0.30001400",
"electron-to-chromium": "^1.4.251",
"node-releases": "^2.0.6",
"update-browserslist-db": "^1.0.9"
"caniuse-lite": "^1.0.30001449",
"electron-to-chromium": "^1.4.284",
"node-releases": "^2.0.8",
"update-browserslist-db": "^1.0.10"
},
"bin": {
"browserslist": "cli.js"
......@@ -98,9 +98,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001436",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001436.tgz",
"integrity": "sha512-ZmWkKsnC2ifEPoWUvSAIGyOYwT+keAaaWPHiQ9DfMqS1t6tfuyFYoWR78TeZtznkEQ64+vGXH9cZrElwR2Mrxg==",
"version": "1.0.30001451",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001451.tgz",
"integrity": "sha512-XY7UbUpGRatZzoRft//5xOa69/1iGJRBlrieH6QYrkKLIFn3m7OVEJ81dSrKoy2BnKsdbX5cLrOispZNYo9v2w==",
"dev": true,
"funding": [
{
......@@ -183,9 +183,9 @@
}
},
"node_modules/electron-to-chromium": {
"version": "1.4.284",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz",
"integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==",
"version": "1.4.295",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.295.tgz",
"integrity": "sha512-lEO94zqf1bDA3aepxwnWoHUjA8sZ+2owgcSZjYQy0+uOSEclJX0VieZC+r+wLpSxUHRd6gG32znTWmr+5iGzFw==",
"dev": true
},
"node_modules/escalade": {
......@@ -217,9 +217,9 @@
}
},
"node_modules/node-releases": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz",
"integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==",
"version": "2.0.10",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz",
"integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==",
"dev": true
},
"node_modules/os-tmpdir": {
......@@ -322,9 +322,9 @@
},
"dependencies": {
"@types/node": {
"version": "16.18.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.4.tgz",
"integrity": "sha512-9qGjJ5GyShZjUfx2ArBIGM+xExdfLvvaCyQR0t6yRXKPcWCVYF/WemtX/uIU3r7FYECXRXkIiw2Vnhn6y8d+pw==",
"version": "16.18.12",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.12.tgz",
"integrity": "sha512-vzLe5NaNMjIE3mcddFVGlAXN1LEWueUsMsOJWaT6wWMJGyljHAWHznqfnKUQWGzu7TLPrGvWdNAsvQYW+C0xtw==",
"dev": true
},
"ansi-regex": {
......@@ -349,15 +349,15 @@
"dev": true
},
"browserslist": {
"version": "4.21.4",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz",
"integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==",
"version": "4.21.5",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz",
"integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==",
"dev": true,
"requires": {
"caniuse-lite": "^1.0.30001400",
"electron-to-chromium": "^1.4.251",
"node-releases": "^2.0.6",
"update-browserslist-db": "^1.0.9"
"caniuse-lite": "^1.0.30001449",
"electron-to-chromium": "^1.4.284",
"node-releases": "^2.0.8",
"update-browserslist-db": "^1.0.10"
}
},
"browserslist-useragent-regexp": {
......@@ -375,9 +375,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001436",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001436.tgz",
"integrity": "sha512-ZmWkKsnC2ifEPoWUvSAIGyOYwT+keAaaWPHiQ9DfMqS1t6tfuyFYoWR78TeZtznkEQ64+vGXH9cZrElwR2Mrxg==",
"version": "1.0.30001451",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001451.tgz",
"integrity": "sha512-XY7UbUpGRatZzoRft//5xOa69/1iGJRBlrieH6QYrkKLIFn3m7OVEJ81dSrKoy2BnKsdbX5cLrOispZNYo9v2w==",
"dev": true
},
"chalk": {
......@@ -433,9 +433,9 @@
}
},
"electron-to-chromium": {
"version": "1.4.284",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz",
"integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==",
"version": "1.4.295",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.295.tgz",
"integrity": "sha512-lEO94zqf1bDA3aepxwnWoHUjA8sZ+2owgcSZjYQy0+uOSEclJX0VieZC+r+wLpSxUHRd6gG32znTWmr+5iGzFw==",
"dev": true
},
"escalade": {
......@@ -461,9 +461,9 @@
}
},
"node-releases": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz",
"integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==",
"version": "2.0.10",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz",
"integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==",
"dev": true
},
"os-tmpdir": {
......
<?php
declare(strict_types=1);
use SimpleSAML\Module\perun\Auth\Process\PerunCreateMember;
$this->includeAtTemplateBase('includes/header.php');
?>
<div class="row">
<div>
<?php if ($this->data[PerunCreateMember::PARAM_WAS_EXCEPTION]) { ?>
<p><?php echo $this->t('{perun:perun:create_member_exception_text}'); ?></p>
<?php } else { ?>
<p><?php echo $this->t('{perun:perun:create_member_success_text}'); ?></p>
<a class="btn btn-lg btn-block btn-primary"
href="<?php echo $this->data[PerunCreateMember::PARAM_CALLBACK]; ?>">
<?php echo $this->t('{perun:perun:create_member_button}'); ?>
</a>
<?php } ?>
</div>
</div>
<?php
$this->includeAtTemplateBase('includes/footer.php');
?>
\ No newline at end of file
<?php
declare(strict_types=1);
use SAML2\Constants;
use SimpleSAML\Logger;
use SimpleSAML\Metadata\SAMLBuilder;
use SimpleSAML\Module\perun\MetadataFromPerun;
$fetch = new MetadataFromPerun();
$metadata = $fetch->getAllMetadata();
$result = '<?xml version="1.0" encoding="utf-8" standalone="no"?>';
$result .= '<EntitiesDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata">';
foreach ($metadata as $entityId => $metaArray20) {
$metaArray20['metadata-set'] = 'saml20-sp-remote';
if (empty($metaArray20['AssertionConsumerService'])) {
Logger::warning('Skipping XML metadata generation for SP ' . $entityId . ' without ACS');
}
$metaBuilder = new SAMLBuilder($entityId);
$metaBuilder->addMetadataSP20($metaArray20);
try {
$xml = $metaBuilder->getEntityDescriptorText();
$xml = str_replace('<?xml version="1.0"?>', '', $xml);
$result .= $xml;
} catch (\Exception $e) {
Logger::warning('Could not create XML metadata for ' . $entityId . ': ' . $e->getMessage());
}
}
$result .= '</EntitiesDescriptor>';
header('Content-Type: application/samlmetadata+xml');
header('Content-Disposition: attachment; filename="metadata.xml"');
echo $result;
<?php
declare(strict_types=1);
use SimpleSAML\Configuration;
use SimpleSAML\Module\perun\Auth\Process\PerunCreateMember;
use SimpleSAML\XHTML\Template;
$config = Configuration::getInstance();
$t = new Template($config, PerunCreateMember::TEMPLATE_URL);
$t->data[PerunCreateMember::PARAM_CALLBACK] = $_REQUEST[PerunCreateMember::PARAM_CALLBACK];
$t->data[PerunCreateMember::PARAM_WAS_EXCEPTION] = $_REQUEST[PerunCreateMember::PARAM_WAS_EXCEPTION];
$t->show();
<?php
use SimpleSAML\Auth\ProcessingChain;
use SimpleSAML\Auth\State;
use SimpleSAML\Error\BadRequest;
use SimpleSAML\Module\perun\Auth\Process\PerunCreateMember;
if (empty($_REQUEST[PerunCreateMember::PARAM_STATE_ID])) {
throw new BadRequest('Missing required \'' . PerunCreateMember::PARAM_STATE_ID . '\' query parameter.');
}
$state = State::loadState($_REQUEST[PerunCreateMember::PARAM_STATE_ID], PerunCreateMember::STAGE);
ProcessingChain::resumeProcessing($state);