diff --git a/bin/build-release.sh b/bin/build-release.sh index 547d56c1b414cf68ebf9612bcdd603803f5a7b6b..1e7e436f78feec59ed9e12b05daaa34e41160567 100755 --- a/bin/build-release.sh +++ b/bin/build-release.sh @@ -50,6 +50,7 @@ php "$TARGET/composer.phar" install --no-dev --prefer-dist -o -d "$TARGET" php "$TARGET/composer.phar" require --update-no-dev simplesamlphp/simplesamlphp-module-adfs php "$TARGET/composer.phar" require --update-no-dev simplesamlphp/simplesamlphp-module-authcrypt php "$TARGET/composer.phar" require --update-no-dev simplesamlphp/simplesamlphp-module-authfacebook +php "$TARGET/composer.phar" require --update-no-dev simplesamlphp/simplesamlphp-module-authorize php "$TARGET/composer.phar" require --update-no-dev simplesamlphp/simplesamlphp-module-authtwitter php "$TARGET/composer.phar" require --update-no-dev simplesamlphp/simplesamlphp-module-authx509 php "$TARGET/composer.phar" require --update-no-dev simplesamlphp/simplesamlphp-module-authyubikey diff --git a/composer.json b/composer.json index 5d6d9da664f2e03235172bfdcb50bc985f86d0cd..3100ef0c37f468d5a77fa58a3c68f9c4f9abadf9 100644 --- a/composer.json +++ b/composer.json @@ -50,6 +50,7 @@ "simplesamlphp/simplesamlphp-module-adfs": "^1.0", "simplesamlphp/simplesamlphp-module-authcrypt": "^1.0", "simplesamlphp/simplesamlphp-module-authfacebook": "^1.0", + "simplesamlphp/simplesamlphp-module-authorize": "^1.0", "simplesamlphp/simplesamlphp-module-authtwitter": "^1.0", "simplesamlphp/simplesamlphp-module-authwindowslive": "^1.0", "simplesamlphp/simplesamlphp-module-authx509": "^1.0.0", diff --git a/modules/authorize/default-enable b/modules/authorize/default-enable deleted file mode 100644 index 25615cb47c350d23033eb9801627ed8330bcc3e9..0000000000000000000000000000000000000000 --- a/modules/authorize/default-enable +++ /dev/null @@ -1,3 +0,0 @@ -This file indicates that the default state of this module -is enabled. To disable, create a file named disable in the -same directory as this file. diff --git a/modules/authorize/dictionaries/Authorize.definition.json b/modules/authorize/dictionaries/Authorize.definition.json deleted file mode 100644 index bf34c2f6a6498969972be0a491115be4f10314c5..0000000000000000000000000000000000000000 --- a/modules/authorize/dictionaries/Authorize.definition.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "403_header": { - "en": "Access forbidden" - }, - "403_text": { - "en": "You don't have the needed privileges to access this application. Please contact the administrator if you find this to be incorrect." - } -} \ No newline at end of file diff --git a/modules/authorize/dictionaries/Authorize.translation.json b/modules/authorize/dictionaries/Authorize.translation.json deleted file mode 100644 index 1f4959b58f200f0d64856a7bdabbf1a76fba65c7..0000000000000000000000000000000000000000 --- a/modules/authorize/dictionaries/Authorize.translation.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "403_header": { - "es": "Acceso denegado", - "no": "Ingen tilgang", - "de": "Zugriff verboten", - "fi": "P\u00e4\u00e4sy estetty.", - "sl": "Dostop zavrnjen", - "pt": "Acesso negado", - "sv": "F\u00f6rbjuden access", - "hr": "Pristup zabranjen", - "da": "Adgang forbudt", - "fr": "Acc\u00e8s refus\u00e9", - "lt": "Pri\u0117jimas u\u017edraustas", - "it": "Accesso vietato", - "hu": "Hozz\u00e1f\u00e9r\u00e9s megtagadva", - "ja": "\u30a2\u30af\u30bb\u30b9\u304c\u7981\u6b62\u3055\u308c\u3066\u3044\u307e\u3059", - "nl": "Geen toegang", - "zh-tw": "\u7981\u6b62\u5b58\u53d6", - "nn": "Ingen tilgang", - "pl": "Dost\u0119p zabroniony", - "et": "Juurdep\u00e4\u00e4s keelatud", - "he": "\u05d2\u05d9\u05e9\u05d4 \u05d0\u05e1\u05d5\u05e8\u05d4", - "ru": "\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0451\u043d", - "zh": "\u7981\u6b62\u8bbf\u95ee", - "ar": "\u0645\u0645\u0646\u0648\u0639 \u0627\u0644\u062f\u062e\u0648\u0644", - "lv": "Pieeja liegta", - "id": "Dilarang mengakses", - "sr": "Pristup zabranjen", - "ro": "Accesul nu este permis", - "cs": "P\u0159\u00edstup odm\u00edtnut", - "eu": "Sarrera debekatua", - "af": "Toegang verbode", - "pt-br": "Acesso proibido", - "el": "\u0394\u03b5\u03bd \u03b5\u03c0\u03b9\u03c4\u03c1\u03ad\u03c0\u03b5\u03c4\u03b1\u03b9 \u03b7 \u03c0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7", - "xh": "Ufikelelo luthintelwe", - "zu": "Ukufinyelela kwenqatshelwe", - "ca": "AccĂ©s prohibit" - }, - "403_text": { - "es": "No tiene los privilegios necesarios para acceder a esta aplicaci\u00f3n. Si considera que esto no es correcto, consulte el administrador.", - "no": "Du har ikke de n\u00f8dvendige rettighetene til \u00e5 n\u00e5 denne siden. Vennligst kontakt administratoren dersom du mener dette ikke stemmer.", - "de": "Sie haben nicht die erforderlichen Berechtigungen um auf diese Anwendung zuzugreifen. Bitte kontaktieren Sie einen Administrator, wenn Sie dies ungerechtfertigt finden.", - "fi": "Sinulla ei ole tarvittavia oikeuksia k\u00e4ytt\u00e4\u00e4 t\u00e4t\u00e4 sovellusta. Ota yhteytt\u00e4 yll\u00e4pitoon, jos huomaat t\u00e4m\u00e4n olevan virheellinen.", - "sl": "Za dostop do spletne storitve nima ustreznih pravic. Obrnite se na administratorja va\u0161ega IdP.", - "pt": "N\u00e3o tem privil\u00e9gios para aceder a esta aplica\u00e7\u00e3o. Contacte o administrador caso ache necess\u00e1rio.", - "sv": "Du har inte tillr\u00e4ckliga r\u00e4ttigheter f\u00f6r att anv\u00e4nda denna applikation. Ta kontakt med administrat\u00f6ren om detta inte st\u00e4mmer.", - "hr": "Nemate potrebne ovlasti za pristup ovoj aplikaciji. Molimo kontaktirajte administratora aplikacije ako smatrate da bi vam pristup aplikaciji trebao biti omogu\u0107en.", - "da": "Du har ikke de n\u00f8dvendige privilegier til at tilg\u00e5 applikationen. Kontakt administratoren hvis du mener at dette ikke er korrekt.", - "fr": "Vos privil\u00e8ges sont insuffisants pour acc\u00e9der \u00e0 cette application. Contactez vous administrateur si cette situation est anormale.", - "lt": "J\u016bs neturite reikiam\u0173 teisi\u0173 \u0161iai aplikacijai pasiekti. Pra\u0161ome susisiekti su administratoriumi, jei manote, kad taip netur\u0117t\u0173 b\u016bti.", - "it": "Non si dispone dei privilegi per accedere a questa applicazione. Contattare l'amministratore se si ritiene che si tratti di un errore.", - "hu": "\u00d6nnek nincsenek meg a sz\u00fcks\u00e9ges jogosults\u00e1gai a lap megtekint\u00e9s\u00e9hez. K\u00e9rj\u00fck, forduljon az oldal adminisztr\u00e1tor\u00e1hoz.", - "ja": "\u3042\u306a\u305f\u306f\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u3053\u308c\u304c\u6b63\u3057\u304f\u306a\u3044\u5834\u5408\u3001\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002", - "nl": "U heeft niet genoeg rechten om deze applicatie te benaderen. Benader de beheerder als u denkt dat dit ten onrechte is.", - "zh-tw": "\u60a8\u6c92\u6709\u6240\u9700\u7684\u6b0a\u9650\u5b58\u53d6\u6b64\u7a0b\u5f0f\uff0c\u5982\u679c\u9019\u4e0d\u662f\u6b63\u78ba\u7684\uff0c\u8acb\u9023\u7d61\u60a8\u7684\u7cfb\u7d71\u7ba1\u7406\u54e1\u3002", - "nn": "Du har ikkje tilgang fordi du manglar rettane til \u00e5 g\u00e5 inn. Ta kontakt med administrator dersom dette er feil.", - "et": "Sul pole sellele rakendusele ligip\u00e4\u00e4suks vajalikke \u00f5igusi. Kui arvad teisiti, siis v\u00f5ta palun \u00fchendust administraatoriga.", - "he": "\u05d0\u05d9\u05df \u05dc\u05da \u05d4\u05e8\u05e9\u05d0\u05d5\u05ea \u05de\u05e1\u05e4\u05e7\u05d5\u05ea \u05dc\u05d2\u05e9\u05ea \u05dc\u05d9\u05e9\u05d5\u05dd \u05d6\u05d4. \u05e6\u05d5\u05e8 \u05e7\u05e9\u05e8 \u05e2\u05dd \u05de\u05e0\u05d4\u05dc \u05d4\u05de\u05e2\u05e8\u05db\u05ea \u05e9\u05dc\u05da \u05d0\u05dd \u05e2\u05d5\u05d1\u05d3\u05d4 \u05d6\u05d5 \u05dc\u05d0 \u05e0\u05db\u05d5\u05e0\u05d4.", - "ru": "\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0440\u0430\u0432 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u043c, \u0435\u0441\u043b\u0438 \u0432\u044b \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e.", - "zh": "\u4f60\u6ca1\u6709\u6743\u9650\u8bbf\u95ee\u8be5\u5e94\u7528\uff0c\u5982\u679c\u4f60\u8ba4\u4e3a\u8fd9\u662f\u4e00\u4e2a\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458", - "ar": "\u0644\u0627 \u064a\u0645\u0643\u0646\u0643 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0647\u0630\u0627 \u0627\u0644\u062a\u0637\u0628\u064a\u0642. \u0642\u0645 \u0628\u0623\u062e\u0637\u0627\u0631 \u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0645\u0648\u0642\u0639 \u0627\u0646 \u0643\u0646\u062a \u062a\u0638\u0646 \u0627\u0646 \u0647\u0630\u0627 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d", - "lv": "Jums nav pietiekamu ties\u012bbu \u0161\u012bs aplik\u0101cijas izmanto\u0161anai. Vaic\u0101jiet administratoram.", - "id": "Anda tidak memiliki hak yang diperlukan untuk mengakses aplikasi ini. Silahkan menghubungi administrator jika seharusnya anda dapat mengakses aplikasi ini.", - "sr": "Nemate potrebna ovla\u0161\u0107enja za pristup ovoj aplikaciji. Molimo kontaktirajte administratora aplikacije ako smatrate da bi vam pristup aplikaciji trebao biti omogu\u0107en.", - "ro": "Nu ave\u021bi drepturile necesare pentru a accesa\/folosi aceast\u0103 aplica\u021bie. V\u0103 rug\u0103m s\u0103 contacta\u021bi administratorul sistemului dac\u0103 considera\u021bi aceast\u0103 afirma\u021bie ca fiind incorect\u0103.", - "cs": "Nem\u00e1te dostate\u010dn\u00e1 pr\u00e1va pro p\u0159\u00edstup k t\u00e9to aplikaci. Pros\u00edm, kontaktujte administr\u00e1tora, pokud toto omezen\u00ed shled\u00e1v\u00e1te nespr\u00e1vn\u00e9.", - "eu": "Ez duzu beharrezko pribilegiorik aplikazio honetan sartzeko. Hau okerra dela baderitzozu, jar zaitez administratzailearekin harremanetan. ", - "af": "Jy het nie die nodige regte vir toegang na die aansoek nie. Kontak asseblief die administrateur indien dit inkorrek is.", - "pt-br": "Voc\u00ea n\u00e3o tem privil\u00e9gios necess\u00e1rios para acessar esta aplica\u00e7\u00e3o. Entre em contato com o administrador se voc\u00ea achar que isso seja incorreto.", - "el": "\u0394\u03b5\u03bd \u03ad\u03c7\u03b5\u03c4\u03b5 \u03c4\u03b1 \u03b1\u03c0\u03b1\u03c1\u03b1\u03af\u03c4\u03b7\u03c4\u03b1 \u03b4\u03b9\u03ba\u03b1\u03b9\u03ce\u03bc\u03b1\u03c4\u03b1 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03b1\u03c0\u03bf\u03ba\u03c4\u03ae\u03c3\u03b5\u03c4\u03b5 \u03c0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7 \u03c3\u03b5 \u03b1\u03c5\u03c4\u03ae \u03c4\u03b7\u03bd \u03c5\u03c0\u03b7\u03c1\u03b5\u03c3\u03af\u03b1. \u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03bf\u03cd\u03bc\u03b5 \u03b5\u03c0\u03b9\u03ba\u03bf\u03b9\u03bd\u03c9\u03bd\u03ae\u03c3\u03c4\u03b5 \u03bc\u03b5 \u03c4\u03bf \u03b4\u03b9\u03b1\u03c7\u03b5\u03b9\u03c1\u03b9\u03c3\u03c4\u03ae \u03b1\u03bd \u03b8\u03b5\u03c9\u03c1\u03b5\u03af\u03c4\u03b5 \u03cc\u03c4\u03b9 \u03b1\u03c5\u03c4\u03cc \u03bd\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 \u03bb\u03b1\u03bd\u03b8\u03b1\u03c3\u03bc\u03ad\u03bd\u03bf.", - "zu": "Awunawo amalungelo adingekile okufinyelela lolu hlelo. Sicela uthinte umlawuli uma uthola ukuthi lokhu akulona iqiniso.", - "xh": "Awunawo amalungelo afunekayo ukuze ufikelele olu setyenziso. Nceda uqhagamshelane nomlawuli ukuba ngaba ukufumanisa oku kungachanekanga.", - "ca": "No teniu els privilegis necessaris per accedir a aquesta aplicaciĂł. Si us plau, poseu-vos en contacte amb l’administrador si penseu que això no Ă©s correcte." - } -} diff --git a/modules/authorize/docs/authorize.md b/modules/authorize/docs/authorize.md deleted file mode 100644 index d18964d63cc939bee4d438fea832e8d2c28c53c2..0000000000000000000000000000000000000000 --- a/modules/authorize/docs/authorize.md +++ /dev/null @@ -1,108 +0,0 @@ -authorize Module -================ - -<!-- - This file is written in Markdown syntax. - For more information about how to use the Markdown syntax, read here: - http://daringfireball.net/projects/markdown/syntax ---> - - * Author: Ernesto Revilla <erny@yaco.es>, Yaco Sistemas, Ryan Panning - * Package: SimpleSAMLphp - -This module provides a user authorization filter based on attribute matching for those applications that do not cleanly separate authentication from authorization and set some default permissions for authenticated users. - - -`authorize:Authorize` -: Authorize certain users based on attribute matching - - -`authorize:Authorize` ---------------------- - -There are three configuration options that can be defined: `deny`, `regex`, and `reject_msg`. All other filter configuration options are considered attribute matching rules. - -Unauthorized users will be shown a 403 Forbidden page. - -### `deny` ### -The default action of the filter is to authorize only if an attribute match is found (default allow). When set to TRUE, this option reverses that rule and authorizes the user unless an attribute match is found (default deny), causing an unauthorized action. - -Note: This option needs to be boolean (TRUE/FALSE) else it will be considered an attribute matching rule. - -### `regex` ### -Turn regex pattern matching on or off for the attribute values defined. For backwards compatibility, this option defaults to TRUE, but can be turned off by setting it to FALSE. - -Note: This option needs to be boolean (TRUE/FALSE) else it will be considered an attribute matching rule. - -### `reject_msg` ### -This option can be used to provide a localised, custom message to an unauthorised user. For example: tailored instructions on how to fix the authorisation issue, specific contact details, etc. - -It should be an array of key/value pairs, with the keys as the language code. You can use HTML in the message. See below for an example. - - -### Attribute Rules ### -Each additional filter configuration option is considered an attribute matching rule. For each attribute, you can specify a string or array of strings to match. If one of those attributes match one of the rules (OR operator), the user is authorized/unauthorized (depending on the deny config option). - -Note: If regex is enabled, you must use the preg_match format, i.e. you have to enclose it with a delimiter that does not appear inside the regex (e.g. slash (/), at sign (@), number sign (#) or underscore (`_`)). - -### Problems ### - * Once you get the forbidden page, you can't logout at the IdP directly, - (as far as I know), you have to close the browser. - -### Examples ### -To use this filter configure it in `config/config.php`. -For unstructured attributes use `^` and `$` to anchor your regex as necessary: - -```php -'authproc.sp' => [ - 60 => [ - 'class' => 'authorize:Authorize', - 'uid' => [ - '/^.*@example.com$/', - // Use anchors to prevent matching 'wronguser1@example.edu.attacker.com' - '/^(user1|user2|user3)@example.edu$/', - ], - 'schacUserStatus' => '@urn:mace:terena.org:userStatus:' . - 'example.org:service:active.*@', - ] -] -``` - - -An alternate way of using this filter is to deny certain users. Or even use multiple filters to create a simple ACL, by first allowing a group of users but then denying a "black list" of users. - -```php -'authproc.sp' => [ - 60 => array[ - 'class' => 'authorize:Authorize', - 'deny' => true, - 'uid' => [ - '/.*@students.example.edu$/', - '/^(stu1|stu2|stu3)@example.edu$/', - ] - ] -] -``` - -The regex pattern matching can be turned off, allowing for exact attribute matching rules. This can be helpful in cases where you know what the value should be. An example of this is with the memberOf attribute or using the ldap:AttributeAddUsersGroups filter with the group attribute. - -Additionally, some helpful instructions are shown. - -```php -'authproc.sp' => [ - 60 => [ - 'class' => 'authorize:Authorize', - 'regex' => false, - 'group' => [ - 'CN=SimpleSAML Students,CN=Users,DC=example,DC=edu', - 'CN=All Teachers,OU=Staff,DC=example,DC=edu', - ], - 'reject_msg' => [ - 'en' => 'This service is only available to students and teachers.' . - 'Please contact <a href="mailto:support@example.edu">support</a>.', - 'nl' => 'Deze dienst is alleen beschikbaar voor studenten en docenten.' . - 'Neem contact op met <a href="mailto:support@example.edu">support</a>.', - ] - ] -] -``` diff --git a/modules/authorize/lib/Auth/Process/Authorize.php b/modules/authorize/lib/Auth/Process/Authorize.php deleted file mode 100644 index 8185e03c0d111b5ef3667d2b5707edeb63e6c77a..0000000000000000000000000000000000000000 --- a/modules/authorize/lib/Auth/Process/Authorize.php +++ /dev/null @@ -1,162 +0,0 @@ -<?php - -namespace SimpleSAML\Module\authorize\Auth\Process; - -/** - * Filter to authorize only certain users. - * See docs directory. - * - * @author Ernesto Revilla, Yaco Sistemas SL., Ryan Panning - * @package SimpleSAMLphp - */ - -class Authorize extends \SimpleSAML\Auth\ProcessingFilter -{ - /** - * Flag to deny/unauthorize the user a attribute filter IS found - * - * @var bool - */ - protected $deny = false; - - /** - * Flag to turn the REGEX pattern matching on or off - * - * @var bool - */ - protected $regex = true; - - /** - * Array of localised rejection messages - * - * @var array - */ - protected $reject_msg = []; - - /** - * Array of valid users. Each element is a regular expression. You should - * user \ to escape special chars, like '.' etc. - * - */ - protected $valid_attribute_values = []; - - /** - * Initialize this filter. - * Validate configuration parameters. - * - * @param array $config Configuration information about this filter. - * @param mixed $reserved For future use. - */ - public function __construct($config, $reserved) - { - parent::__construct($config, $reserved); - - assert(is_array($config)); - - // Check for the deny option, get it and remove it - // Must be bool specifically, if not, it might be for a attrib filter below - if (isset($config['deny']) && is_bool($config['deny'])) { - $this->deny = $config['deny']; - unset($config['deny']); - } - - // Check for the regex option, get it and remove it - // Must be bool specifically, if not, it might be for a attrib filter below - if (isset($config['regex']) && is_bool($config['regex'])) { - $this->regex = $config['regex']; - unset($config['regex']); - } - - // Check for the reject_msg option, get it and remove it - // Must be array of languages - if (isset($config['reject_msg']) && is_array($config['reject_msg'])) { - $this->reject_msg = $config['reject_msg']; - unset($config['reject_msg']); - } - - foreach ($config as $attribute => $values) { - if (is_string($values)) { - $values = [$values]; - } - if (!is_array($values)) { - throw new \Exception( - 'Filter Authorize: Attribute values is neither string nor array: '.var_export($attribute, true) - ); - } - foreach ($values as $value) { - if (!is_string($value)) { - throw new \Exception( - 'Filter Authorize: Each value should be a string for attribute: '.var_export($attribute, true). - ' value: '.var_export($value, true).' Config is: '.var_export($config, true) - ); - } - } - $this->valid_attribute_values[$attribute] = $values; - } - } - - /** - * Apply filter to validate attributes. - * - * @param array &$request The current request - * @return void - */ - public function process(&$request) - { - $authorize = $this->deny; - assert(is_array($request)); - assert(array_key_exists('Attributes', $request)); - - $attributes = &$request['Attributes']; - // Store the rejection message array in the $request - if (!empty($this->reject_msg)) { - $request['authprocAuthorize_reject_msg'] = $this->reject_msg; - } - - foreach ($this->valid_attribute_values as $name => $patterns) { - if (array_key_exists($name, $attributes)) { - foreach ($patterns as $pattern) { - $values = $attributes[$name]; - if (!is_array($values)) { - $values = [$values]; - } - foreach ($values as $value) { - if ($this->regex) { - $matched = preg_match($pattern, $value); - } else { - $matched = ($value == $pattern); - } - if ($matched) { - $authorize = ($this->deny ? false : true); - break 3; - } - } - } - } - } - if (!$authorize) { - $this->unauthorized($request); - } - } - - /** - * When the process logic determines that the user is not - * authorized for this service, then forward the user to - * an 403 unauthorized page. - * - * Separated this code into its own method so that child - * classes can override it and change the action. Forward - * thinking in case a "chained" ACL is needed, more complex - * permission logic. - * - * @param array $request - * @return void - */ - protected function unauthorized(&$request) - { - // Save state and redirect to 403 page - $id = \SimpleSAML\Auth\State::saveState($request, 'authorize:Authorize'); - $url = \SimpleSAML\Module::getModuleURL('authorize/authorize_403.php'); - \SimpleSAML\Utils\HTTP::redirectTrustedURL($url, ['StateId' => $id]); - } -} diff --git a/modules/authorize/locales/af/LC_MESSAGES/authorize.po b/modules/authorize/locales/af/LC_MESSAGES/authorize.po deleted file mode 100644 index 5895a4dc5d39924deecb1f5a821fe19e0129a105..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/af/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: af\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Jy het nie die nodige regte vir toegang na die aansoek nie. Kontak " -"asseblief die administrateur indien dit inkorrek is." - -msgid "{authorize:Authorize:403_header}" -msgstr "Toegang verbode" - -msgid "Access forbidden" -msgstr "Toegang verbode" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Jy het nie die nodige regte vir toegang na die aansoek nie. Kontak " -"asseblief die administrateur indien dit inkorrek is." - diff --git a/modules/authorize/locales/ar/LC_MESSAGES/authorize.po b/modules/authorize/locales/ar/LC_MESSAGES/authorize.po deleted file mode 100644 index e68560141276b0fdc954c9cc4195859267455489..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/ar/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,36 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: ar\n" -"Language-Team: \n" -"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n>=3 " -"&& n<=10 ? 3 : n>=11 && n<=99 ? 4 : 5)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"لا ŮŠŮ…Ůن٠الدخŮŮ„ لهذا التطبيق. Ů‚Ů… بأخطار إدارة المŮŮ‚Řą ان Ůنت تظن ان هذا " -"غير صŘŮŠŘ" - -msgid "{authorize:Authorize:403_header}" -msgstr "ممنŮŘą الدخŮŮ„" - -msgid "Access forbidden" -msgstr "ممنŮŘą الدخŮŮ„" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"لا ŮŠŮ…Ůن٠الدخŮŮ„ لهذا التطبيق. Ů‚Ů… بأخطار إدارة المŮŮ‚Řą ان Ůنت تظن ان هذا " -"غير صŘŮŠŘ" - diff --git a/modules/authorize/locales/cs/LC_MESSAGES/authorize.po b/modules/authorize/locales/cs/LC_MESSAGES/authorize.po deleted file mode 100644 index cb84f9b3e4e908e858cfe202966d01a55e4fe858..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/cs/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,36 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: cs\n" -"Language-Team: \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Nemáte dostateÄŤná práva pro pĹ™Ăstup k tĂ©to aplikaci. ProsĂm, kontaktujte " -"administrátora, pokud toto omezenĂ shledáváte nesprávnĂ©." - -msgid "{authorize:Authorize:403_header}" -msgstr "PĹ™Ăstup odmĂtnut" - -msgid "Access forbidden" -msgstr "PĹ™Ăstup odmĂtnut" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Nemáte dostateÄŤná práva pro pĹ™Ăstup k tĂ©to aplikaci. ProsĂm, kontaktujte " -"administrátora, pokud toto omezenĂ shledáváte nesprávnĂ©." - diff --git a/modules/authorize/locales/da/LC_MESSAGES/authorize.po b/modules/authorize/locales/da/LC_MESSAGES/authorize.po deleted file mode 100644 index b2a453f121a182d4634a83bc2b2bd1e8bfb0610f..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/da/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: da\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Du har ikke de nødvendige privilegier til at tilgĂĄ applikationen. Kontakt" -" administratoren hvis du mener at dette ikke er korrekt." - -msgid "{authorize:Authorize:403_header}" -msgstr "Adgang forbudt" - -msgid "Access forbidden" -msgstr "Adgang forbudt" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Du har ikke de nødvendige privilegier til at tilgĂĄ applikationen. Kontakt" -" administratoren hvis du mener at dette ikke er korrekt." - diff --git a/modules/authorize/locales/de/LC_MESSAGES/authorize.po b/modules/authorize/locales/de/LC_MESSAGES/authorize.po deleted file mode 100644 index e7cd5ae2c611d32b6a75d266246a6281b890fab6..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/de/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,37 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: de\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Sie haben nicht die erforderlichen Berechtigungen um auf diese Anwendung " -"zuzugreifen. Bitte kontaktieren Sie einen Administrator, wenn Sie dies " -"ungerechtfertigt finden." - -msgid "{authorize:Authorize:403_header}" -msgstr "Zugriff verboten" - -msgid "Access forbidden" -msgstr "Zugriff verboten" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Sie haben nicht die erforderlichen Berechtigungen um auf diese Anwendung " -"zuzugreifen. Bitte kontaktieren Sie einen Administrator, wenn Sie dies " -"ungerechtfertigt finden." - diff --git a/modules/authorize/locales/el/LC_MESSAGES/authorize.po b/modules/authorize/locales/el/LC_MESSAGES/authorize.po deleted file mode 100644 index d93fc639a19e42cdfbf3a985ccfecef2343e3abd..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/el/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,37 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: el\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Δεν Îχετε τα απαĎαίτητα δικαιώματα για να αποκτήĎετε Ď€ĎĎŚĎβαĎη Ďε αυτή την" -" υπηĎεĎία. ΠαĎακαλούμε επικοινωνήĎτε με Ď„Îż διαχειĎÎąĎτή αν θεωĎείτε ĎŚĎ„Îą " -"αυτό να είναι λανθαĎÎĽÎνο." - -msgid "{authorize:Authorize:403_header}" -msgstr "Δεν επιτĎÎπεται η Ď€ĎĎŚĎβαĎη" - -msgid "Access forbidden" -msgstr "Δεν επιτĎÎπεται η Ď€ĎĎŚĎβαĎη" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Δεν Îχετε τα απαĎαίτητα δικαιώματα για να αποκτήĎετε Ď€ĎĎŚĎβαĎη Ďε αυτή την" -" υπηĎεĎία. ΠαĎακαλούμε επικοινωνήĎτε με Ď„Îż διαχειĎÎąĎτή αν θεωĎείτε ĎŚĎ„Îą " -"αυτό να είναι λανθαĎÎĽÎνο." - diff --git a/modules/authorize/locales/en/LC_MESSAGES/authorize.po b/modules/authorize/locales/en/LC_MESSAGES/authorize.po deleted file mode 100644 index 52fc489306fc1e083a2e332862ccedac30b53625..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/en/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: en\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." - -msgid "{authorize:Authorize:403_header}" -msgstr "Access forbidden" - -msgid "Access forbidden" -msgstr "Access forbidden" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." - diff --git a/modules/authorize/locales/es/LC_MESSAGES/authorize.po b/modules/authorize/locales/es/LC_MESSAGES/authorize.po deleted file mode 100644 index 0a8b5a5387830d2428fd5b6f17145824810a75d7..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/es/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: es\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"No tiene los privilegios necesarios para acceder a esta aplicaciĂłn. Si " -"considera que esto no es correcto, consulte el administrador." - -msgid "{authorize:Authorize:403_header}" -msgstr "Acceso denegado" - -msgid "Access forbidden" -msgstr "Acceso denegado" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"No tiene los privilegios necesarios para acceder a esta aplicaciĂłn. Si " -"considera que esto no es correcto, consulte el administrador." - diff --git a/modules/authorize/locales/et/LC_MESSAGES/authorize.po b/modules/authorize/locales/et/LC_MESSAGES/authorize.po deleted file mode 100644 index 86a20b092d799b236fb1cc73bcfd8f4f5b967c0d..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/et/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: et\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Sul pole sellele rakendusele ligipääsuks vajalikke õigusi. Kui arvad " -"teisiti, siis võta palun ĂĽhendust administraatoriga." - -msgid "{authorize:Authorize:403_header}" -msgstr "Juurdepääs keelatud" - -msgid "Access forbidden" -msgstr "Juurdepääs keelatud" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Sul pole sellele rakendusele ligipääsuks vajalikke õigusi. Kui arvad " -"teisiti, siis võta palun ĂĽhendust administraatoriga." - diff --git a/modules/authorize/locales/eu/LC_MESSAGES/authorize.po b/modules/authorize/locales/eu/LC_MESSAGES/authorize.po deleted file mode 100644 index 6c17f9763fac6caf98bd379f86f981f35bfd9776..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/eu/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: eu\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Ez duzu beharrezko pribilegiorik aplikazio honetan sartzeko. Hau okerra " -"dela baderitzozu, jar zaitez administratzailearekin harremanetan. " - -msgid "{authorize:Authorize:403_header}" -msgstr "Sarrera debekatua" - -msgid "Access forbidden" -msgstr "Sarrera debekatua" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Ez duzu beharrezko pribilegiorik aplikazio honetan sartzeko. Hau okerra " -"dela baderitzozu, jar zaitez administratzailearekin harremanetan. " - diff --git a/modules/authorize/locales/fi/LC_MESSAGES/authorize.po b/modules/authorize/locales/fi/LC_MESSAGES/authorize.po deleted file mode 100644 index 4dd640b4623490ee503d4a6bf8ae1ed7ad5a01a0..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/fi/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: fi\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Sinulla ei ole tarvittavia oikeuksia käyttää tätä sovellusta. Ota " -"yhteyttä ylläpitoon, jos huomaat tämän olevan virheellinen." - -msgid "{authorize:Authorize:403_header}" -msgstr "Pääsy estetty." - -msgid "Access forbidden" -msgstr "Pääsy estetty." - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Sinulla ei ole tarvittavia oikeuksia käyttää tätä sovellusta. Ota " -"yhteyttä ylläpitoon, jos huomaat tämän olevan virheellinen." - diff --git a/modules/authorize/locales/fr/LC_MESSAGES/authorize.po b/modules/authorize/locales/fr/LC_MESSAGES/authorize.po deleted file mode 100644 index 6574da5d1231e4b806bdf66c5f65d0a46fc3d9b4..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/fr/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: fr\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n > 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Vos privilèges sont insuffisants pour accĂ©der Ă cette application. " -"Contactez vous administrateur si cette situation est anormale." - -msgid "{authorize:Authorize:403_header}" -msgstr "Accès refusĂ©" - -msgid "Access forbidden" -msgstr "Accès refusĂ©" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Vos privilèges sont insuffisants pour accĂ©der Ă cette application. " -"Contactez vous administrateur si cette situation est anormale." - diff --git a/modules/authorize/locales/he/LC_MESSAGES/authorize.po b/modules/authorize/locales/he/LC_MESSAGES/authorize.po deleted file mode 100644 index 730020b7fa74b0f0f5bca20b92ed83337e48376e..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/he/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: he\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"×ין לך הרש×ות מספקות לגשת לישום ×–×”. צור קשר עם ×ž× ×”×ś המערכת שלך ×ם עובדה " -"זו ×ś× × ×›×•× ×”." - -msgid "{authorize:Authorize:403_header}" -msgstr "גישה ×סורה" - -msgid "Access forbidden" -msgstr "גישה ×סורה" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"×ין לך הרש×ות מספקות לגשת לישום ×–×”. צור קשר עם ×ž× ×”×ś המערכת שלך ×ם עובדה " -"זו ×ś× × ×›×•× ×”." - diff --git a/modules/authorize/locales/hr/LC_MESSAGES/authorize.po b/modules/authorize/locales/hr/LC_MESSAGES/authorize.po deleted file mode 100644 index b9b6483c10be35df5312d4fe2a451f4b24cdf337..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/hr/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,38 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: hr\n" -"Language-Team: \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Nemate potrebne ovlasti za pristup ovoj aplikaciji. Molimo kontaktirajte " -"administratora aplikacije ako smatrate da bi vam pristup aplikaciji " -"trebao biti omogućen." - -msgid "{authorize:Authorize:403_header}" -msgstr "Pristup zabranjen" - -msgid "Access forbidden" -msgstr "Pristup zabranjen" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Nemate potrebne ovlasti za pristup ovoj aplikaciji. Molimo kontaktirajte " -"administratora aplikacije ako smatrate da bi vam pristup aplikaciji " -"trebao biti omogućen." - diff --git a/modules/authorize/locales/hu/LC_MESSAGES/authorize.po b/modules/authorize/locales/hu/LC_MESSAGES/authorize.po deleted file mode 100644 index c80169645169c0a6a4964506dec75c7b8c88dace..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/hu/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: hu\n" -"Language-Team: \n" -"Plural-Forms: nplurals=1; plural=0\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Ă–nnek nincsenek meg a szĂĽksĂ©ges jogosultságai a lap megtekintĂ©sĂ©hez. " -"KĂ©rjĂĽk, forduljon az oldal adminisztrátorához." - -msgid "{authorize:Authorize:403_header}" -msgstr "HozzáfĂ©rĂ©s megtagadva" - -msgid "Access forbidden" -msgstr "HozzáfĂ©rĂ©s megtagadva" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Ă–nnek nincsenek meg a szĂĽksĂ©ges jogosultságai a lap megtekintĂ©sĂ©hez. " -"KĂ©rjĂĽk, forduljon az oldal adminisztrátorához." - diff --git a/modules/authorize/locales/id/LC_MESSAGES/authorize.po b/modules/authorize/locales/id/LC_MESSAGES/authorize.po deleted file mode 100644 index 1873834cbbcef69ce94694ddad1e52de4990d4be..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/id/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,37 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: id\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Anda tidak memiliki hak yang diperlukan untuk mengakses aplikasi ini. " -"Silahkan menghubungi administrator jika seharusnya anda dapat mengakses " -"aplikasi ini." - -msgid "{authorize:Authorize:403_header}" -msgstr "Dilarang mengakses" - -msgid "Access forbidden" -msgstr "Dilarang mengakses" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Anda tidak memiliki hak yang diperlukan untuk mengakses aplikasi ini. " -"Silahkan menghubungi administrator jika seharusnya anda dapat mengakses " -"aplikasi ini." - diff --git a/modules/authorize/locales/it/LC_MESSAGES/authorize.po b/modules/authorize/locales/it/LC_MESSAGES/authorize.po deleted file mode 100644 index 71319ea2c8670e1f30da34acc1ce21c6ec303fc4..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/it/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: it\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Non si dispone dei privilegi per accedere a questa applicazione. " -"Contattare l'amministratore se si ritiene che si tratti di un errore." - -msgid "{authorize:Authorize:403_header}" -msgstr "Accesso vietato" - -msgid "Access forbidden" -msgstr "Accesso vietato" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Non si dispone dei privilegi per accedere a questa applicazione. " -"Contattare l'amministratore se si ritiene che si tratti di un errore." - diff --git a/modules/authorize/locales/ja/LC_MESSAGES/authorize.po b/modules/authorize/locales/ja/LC_MESSAGES/authorize.po deleted file mode 100644 index 5fcf0a36693525723d32955ce5600d243a26dd74..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/ja/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,31 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: ja\n" -"Language-Team: \n" -"Plural-Forms: nplurals=1; plural=0\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "ă‚ăŞăźăŻă“ă®ă‚˘ă—ăŞă‚±ăĽă‚·ă§ăłă«ă‚˘ă‚Żă‚»ă‚ąă™ă‚‹ć¨©é™ă‚’ćŚăŁă¦ă„ăľă›ă‚“。ă“ă‚ŚăŚćŁă—ăŹăŞă„ĺ ´ĺă€ç®ˇç†č€…ă«ăŠĺ•Źă„ĺă‚Źă›ăŹă ă•ă„。" - -msgid "{authorize:Authorize:403_header}" -msgstr "アクセスăŚç¦ć˘ă•ă‚Śă¦ă„ăľă™" - -msgid "Access forbidden" -msgstr "アクセスăŚç¦ć˘ă•ă‚Śă¦ă„ăľă™" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "ă‚ăŞăźăŻă“ă®ă‚˘ă—ăŞă‚±ăĽă‚·ă§ăłă«ă‚˘ă‚Żă‚»ă‚ąă™ă‚‹ć¨©é™ă‚’ćŚăŁă¦ă„ăľă›ă‚“。ă“ă‚ŚăŚćŁă—ăŹăŞă„ĺ ´ĺă€ç®ˇç†č€…ă«ăŠĺ•Źă„ĺă‚Źă›ăŹă ă•ă„。" - diff --git a/modules/authorize/locales/lt/LC_MESSAGES/authorize.po b/modules/authorize/locales/lt/LC_MESSAGES/authorize.po deleted file mode 100644 index 772f7ab386e99e5bd8c708344661d509513815ff..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/lt/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,36 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: lt\n" -"Language-Team: \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"(n%100<10 || n%100>=20) ? 1 : 2)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"JĹ«s neturite reikiamĹł teisiĹł šiai aplikacijai pasiekti. Prašome " -"susisiekti su administratoriumi, jei manote, kad taip neturÄ—tĹł bĹ«ti." - -msgid "{authorize:Authorize:403_header}" -msgstr "PriÄ—jimas uĹľdraustas" - -msgid "Access forbidden" -msgstr "PriÄ—jimas uĹľdraustas" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"JĹ«s neturite reikiamĹł teisiĹł šiai aplikacijai pasiekti. Prašome " -"susisiekti su administratoriumi, jei manote, kad taip neturÄ—tĹł bĹ«ti." - diff --git a/modules/authorize/locales/lv/LC_MESSAGES/authorize.po b/modules/authorize/locales/lv/LC_MESSAGES/authorize.po deleted file mode 100644 index 6bf64551d9b8d6b4fe1d66856e3979321782449c..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/lv/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,36 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: lv\n" -"Language-Team: \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 :" -" 2)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Jums nav pietiekamu tiesÄ«bu šīs aplikÄcijas izmantošanai. VaicÄjiet " -"administratoram." - -msgid "{authorize:Authorize:403_header}" -msgstr "Pieeja liegta" - -msgid "Access forbidden" -msgstr "Pieeja liegta" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Jums nav pietiekamu tiesÄ«bu šīs aplikÄcijas izmantošanai. VaicÄjiet " -"administratoram." - diff --git a/modules/authorize/locales/nb/LC_MESSAGES/authorize.po b/modules/authorize/locales/nb/LC_MESSAGES/authorize.po deleted file mode 100644 index 126482d7c35488dca6c03b79ff7a95e8f9d20229..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/nb/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: nb_NO\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Du har ikke de nødvendige rettighetene til ĂĄ nĂĄ denne siden. Vennligst " -"kontakt administratoren dersom du mener dette ikke stemmer." - -msgid "{authorize:Authorize:403_header}" -msgstr "Ingen tilgang" - -msgid "Access forbidden" -msgstr "Ingen tilgang" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Du har ikke de nødvendige rettighetene til ĂĄ nĂĄ denne siden. Vennligst " -"kontakt administratoren dersom du mener dette ikke stemmer." - diff --git a/modules/authorize/locales/nl/LC_MESSAGES/authorize.po b/modules/authorize/locales/nl/LC_MESSAGES/authorize.po deleted file mode 100644 index afbaa71bd54d5f95a6060d1831a194dabc21930c..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/nl/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: nl\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"U heeft niet genoeg rechten om deze applicatie te benaderen. Benader de " -"beheerder als u denkt dat dit ten onrechte is." - -msgid "{authorize:Authorize:403_header}" -msgstr "Geen toegang" - -msgid "Access forbidden" -msgstr "Geen toegang" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"U heeft niet genoeg rechten om deze applicatie te benaderen. Benader de " -"beheerder als u denkt dat dit ten onrechte is." - diff --git a/modules/authorize/locales/nn/LC_MESSAGES/authorize.po b/modules/authorize/locales/nn/LC_MESSAGES/authorize.po deleted file mode 100644 index 554bcb360d2ee64cf3cf8d0f71e63352a12831de..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/nn/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: nn\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Du har ikkje tilgang fordi du manglar rettane til ĂĄ gĂĄ inn. Ta kontakt " -"med administrator dersom dette er feil." - -msgid "{authorize:Authorize:403_header}" -msgstr "Ingen tilgang" - -msgid "Access forbidden" -msgstr "Ingen tilgang" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Du har ikkje tilgang fordi du manglar rettane til ĂĄ gĂĄ inn. Ta kontakt " -"med administrator dersom dette er feil." - diff --git a/modules/authorize/locales/pl/LC_MESSAGES/authorize.po b/modules/authorize/locales/pl/LC_MESSAGES/authorize.po deleted file mode 100644 index f425ca380542fc68c649300894f3aa79966e87e3..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/pl/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,24 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: pl\n" -"Language-Team: \n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && " -"(n%100<10 || n%100>=20) ? 1 : 2)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_header}" -msgstr "DostÄ™p zabroniony" - -msgid "Access forbidden" -msgstr "DostÄ™p zabroniony" - diff --git a/modules/authorize/locales/pt-br/LC_MESSAGES/authorize.po b/modules/authorize/locales/pt-br/LC_MESSAGES/authorize.po deleted file mode 100644 index 2c92a03567a58012a74bbcc4e76533fb7c70406b..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/pt-br/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: pt_BR\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n > 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"VocĂŞ nĂŁo tem privilĂ©gios necessários para acessar esta aplicação. Entre " -"em contato com o administrador se vocĂŞ achar que isso seja incorreto." - -msgid "{authorize:Authorize:403_header}" -msgstr "Acesso proibido" - -msgid "Access forbidden" -msgstr "Acesso proibido" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"VocĂŞ nĂŁo tem privilĂ©gios necessários para acessar esta aplicação. Entre " -"em contato com o administrador se vocĂŞ achar que isso seja incorreto." - diff --git a/modules/authorize/locales/pt/LC_MESSAGES/authorize.po b/modules/authorize/locales/pt/LC_MESSAGES/authorize.po deleted file mode 100644 index 1ffdb713a919680de3c656adbc82c5798f75c842..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/pt/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: pt\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"NĂŁo tem privilĂ©gios para aceder a esta aplicação. Contacte o " -"administrador caso ache necessário." - -msgid "{authorize:Authorize:403_header}" -msgstr "Acesso negado" - -msgid "Access forbidden" -msgstr "Acesso negado" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"NĂŁo tem privilĂ©gios para aceder a esta aplicação. Contacte o " -"administrador caso ache necessário." - diff --git a/modules/authorize/locales/ro/LC_MESSAGES/authorize.po b/modules/authorize/locales/ro/LC_MESSAGES/authorize.po deleted file mode 100644 index aaad04537174e3921dd25b62b42fc3c935118148..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/ro/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,38 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: ro\n" -"Language-Team: \n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100" -" < 20)) ? 1 : 2)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Nu aveČ›i drepturile necesare pentru a accesa/folosi aceastÄ aplicaČ›ie. VÄ" -" rugÄm sÄ contactaČ›i administratorul sistemului dacÄ consideraČ›i aceastÄ " -"afirmaČ›ie ca fiind incorectÄ." - -msgid "{authorize:Authorize:403_header}" -msgstr "Accesul nu este permis" - -msgid "Access forbidden" -msgstr "Accesul nu este permis" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Nu aveČ›i drepturile necesare pentru a accesa/folosi aceastÄ aplicaČ›ie. VÄ" -" rugÄm sÄ contactaČ›i administratorul sistemului dacÄ consideraČ›i aceastÄ " -"afirmaČ›ie ca fiind incorectÄ." - diff --git a/modules/authorize/locales/ru/LC_MESSAGES/authorize.po b/modules/authorize/locales/ru/LC_MESSAGES/authorize.po deleted file mode 100644 index b891eced384ece4de88d1c75b022e7564ee40bc4..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/ru/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,36 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: ru\n" -"Language-Team: \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"ĐŁ Đ˛Đ°Ń Đ˝ĐµŃ‚ необходимых прав для Đ´ĐľŃŃ‚Ńпа Đş ŃŤŃ‚ĐľĐĽŃ ĐżŃ€Đ¸Đ»ĐľĐ¶ĐµĐ˝Đ¸ŃŽ. ПожалŃĐąŃŃ‚Đ°, " -"ŃвяжитеŃŃŚ Ń Đ°Đ´ĐĽĐ¸Đ˝Đ¸Ńтратором, еŃли вы Ńчитаете, что ŃŤŃ‚Đľ неправильно." - -msgid "{authorize:Authorize:403_header}" -msgstr "ДоŃŃ‚ŃĐż запрещён" - -msgid "Access forbidden" -msgstr "ДоŃŃ‚ŃĐż запрещён" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"ĐŁ Đ˛Đ°Ń Đ˝ĐµŃ‚ необходимых прав для Đ´ĐľŃŃ‚Ńпа Đş ŃŤŃ‚ĐľĐĽŃ ĐżŃ€Đ¸Đ»ĐľĐ¶ĐµĐ˝Đ¸ŃŽ. ПожалŃĐąŃŃ‚Đ°, " -"ŃвяжитеŃŃŚ Ń Đ°Đ´ĐĽĐ¸Đ˝Đ¸Ńтратором, еŃли вы Ńчитаете, что ŃŤŃ‚Đľ неправильно." - diff --git a/modules/authorize/locales/sl/LC_MESSAGES/authorize.po b/modules/authorize/locales/sl/LC_MESSAGES/authorize.po deleted file mode 100644 index 72fc2e773dc2c2ac7b1b3ec39ccd6c22862c6f62..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/sl/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,36 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: sl\n" -"Language-Team: \n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 " -"|| n%100==4 ? 2 : 3)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Za dostop do spletne storitve nima ustreznih pravic. Obrnite se na " -"administratorja vašega IdP." - -msgid "{authorize:Authorize:403_header}" -msgstr "Dostop zavrnjen" - -msgid "Access forbidden" -msgstr "Dostop zavrnjen" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Za dostop do spletne storitve nima ustreznih pravic. Obrnite se na " -"administratorja vašega IdP." - diff --git a/modules/authorize/locales/sr/LC_MESSAGES/authorize.po b/modules/authorize/locales/sr/LC_MESSAGES/authorize.po deleted file mode 100644 index 1ee609f8210f62c25e6444f5d659c2596839e656..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/sr/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,38 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: sr\n" -"Language-Team: \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Nemate potrebna ovlašćenja za pristup ovoj aplikaciji. Molimo " -"kontaktirajte administratora aplikacije ako smatrate da bi vam pristup " -"aplikaciji trebao biti omogućen." - -msgid "{authorize:Authorize:403_header}" -msgstr "Pristup zabranjen" - -msgid "Access forbidden" -msgstr "Pristup zabranjen" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Nemate potrebna ovlašćenja za pristup ovoj aplikaciji. Molimo " -"kontaktirajte administratora aplikacije ako smatrate da bi vam pristup " -"aplikaciji trebao biti omogućen." - diff --git a/modules/authorize/locales/sv/LC_MESSAGES/authorize.po b/modules/authorize/locales/sv/LC_MESSAGES/authorize.po deleted file mode 100644 index f74e53c99770e585d00dac433a2051a13ac06343..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/sv/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,35 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: sv\n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Du har inte tillräckliga rättigheter för att använda denna applikation. " -"Ta kontakt med administratören om detta inte stämmer." - -msgid "{authorize:Authorize:403_header}" -msgstr "Förbjuden access" - -msgid "Access forbidden" -msgstr "Förbjuden access" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "" -"Du har inte tillräckliga rättigheter för att använda denna applikation. " -"Ta kontakt med administratören om detta inte stämmer." - diff --git a/modules/authorize/locales/xh/LC_MESSAGES/authorize.po b/modules/authorize/locales/xh/LC_MESSAGES/authorize.po deleted file mode 100644 index e9300be062c845804d8e51cc1a1b6c09ffbe4b10..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/xh/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,24 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2018-11-15 14:49+0200\n" -"PO-Revision-Date: 2018-11-15 14:49+0200\n" -"Last-Translator: \n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" - -msgid "{authorize:Authorize:403_header}" -msgstr "Ufikelelo luthintelwe" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Awunawo amalungelo afunekayo ukuze ufikelele olu setyenziso. Nceda " -"uqhagamshelane nomlawuli ukuba ngaba ukufumanisa oku kungachanekanga." - diff --git a/modules/authorize/locales/zh-tw/LC_MESSAGES/authorize.po b/modules/authorize/locales/zh-tw/LC_MESSAGES/authorize.po deleted file mode 100644 index 3b05b5c27ffa5a09e0249c6184be08b8b4633a2a..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/zh-tw/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,31 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: zh_Hant_TW\n" -"Language-Team: \n" -"Plural-Forms: nplurals=1; plural=0\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "您沒有所需的權é™ĺ取ć¤ç¨‹ĺĽŹďĽŚĺ¦‚果這不ćŻćŁç˘şçš„,請連絡您的系統管ç†ĺ“ˇă€‚" - -msgid "{authorize:Authorize:403_header}" -msgstr "ç¦ć˘ĺ取" - -msgid "Access forbidden" -msgstr "ç¦ć˘ĺ取" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "您沒有所需的權é™ĺ取ć¤ç¨‹ĺĽŹďĽŚĺ¦‚果這不ćŻćŁç˘şçš„,請連絡您的系統管ç†ĺ“ˇă€‚" - diff --git a/modules/authorize/locales/zh/LC_MESSAGES/authorize.po b/modules/authorize/locales/zh/LC_MESSAGES/authorize.po deleted file mode 100644 index d45dc52defefd5b422402d184e704e786eb5f8de..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/zh/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,31 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2016-10-12 09:23+0200\n" -"PO-Revision-Date: 2016-10-14 12:14+0200\n" -"Last-Translator: \n" -"Language: zh\n" -"Language-Team: \n" -"Plural-Forms: nplurals=1; plural=0\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" - -msgid "{authorize:Authorize:403_text}" -msgstr "ä˝ ć˛ˇćś‰ćťé™č®żé—®čŻĄĺş”ç”¨ďĽŚĺ¦‚ćžśä˝ č®¤ä¸şčż™ćŻä¸€ä¸Şé”™čŻŻďĽŚčŻ·č”系管ç†ĺ‘" - -msgid "{authorize:Authorize:403_header}" -msgstr "ç¦ć˘č®żé—®" - -msgid "Access forbidden" -msgstr "ç¦ć˘č®żé—®" - -msgid "" -"You don't have the needed privileges to access this application. Please " -"contact the administrator if you find this to be incorrect." -msgstr "ä˝ ć˛ˇćś‰ćťé™č®żé—®čŻĄĺş”ç”¨ďĽŚĺ¦‚ćžśä˝ č®¤ä¸şčż™ćŻä¸€ä¸Şé”™čŻŻďĽŚčŻ·č”系管ç†ĺ‘" - diff --git a/modules/authorize/locales/zu/LC_MESSAGES/authorize.po b/modules/authorize/locales/zu/LC_MESSAGES/authorize.po deleted file mode 100644 index f739b05dd448386cc4a3d4b652e3cb46138cbfe3..0000000000000000000000000000000000000000 --- a/modules/authorize/locales/zu/LC_MESSAGES/authorize.po +++ /dev/null @@ -1,24 +0,0 @@ - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: SimpleSAMLphp 1.15\n" -"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n" -"POT-Creation-Date: 2018-11-15 14:49+0200\n" -"PO-Revision-Date: 2018-11-15 14:49+0200\n" -"Last-Translator: \n" -"Language-Team: \n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" - -msgid "{authorize:Authorize:403_header}" -msgstr "Ukufinyelela kwenqatshelwe" - -msgid "{authorize:Authorize:403_text}" -msgstr "" -"Awunawo amalungelo adingekile okufinyelela lolu hlelo. Sicela uthinte " -"umlawuli uma uthola ukuthi lokhu akulona iqiniso." - diff --git a/modules/authorize/templates/authorize_403.php b/modules/authorize/templates/authorize_403.php deleted file mode 100644 index 0c102a1bc28d60bf2581f480328a6bd9348e998d..0000000000000000000000000000000000000000 --- a/modules/authorize/templates/authorize_403.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php -/** - * Template which is shown when there is only a short interval since the user was last authenticated. - * - * Parameters: - * - 'target': Target URL. - * - 'params': Parameters which should be included in the request. - * - * @package SimpleSAMLphp - */ - - -$this->data['403_header'] = $this->t('{authorize:Authorize:403_header}'); -$this->data['403_text'] = $this->t('{authorize:Authorize:403_text}'); - -if (array_key_exists('reject_msg', $this->data)) { - if (isset($this->data['reject_msg'][$this->getLanguage()])) { - $this->data['403_text'] = $this->data['reject_msg'][$this->getLanguage()]; - } -} -$this->includeAtTemplateBase('includes/header.php'); - -echo '<h1>'.$this->data['403_header'].'</h1>'; -echo '<p>'.$this->data['403_text'].'</p>'; -if (isset($this->data['logoutURL'])) { - echo '<p><a href="'.htmlspecialchars($this->data['logoutURL']).'">'.$this->t('{status:logout}').'</a></p>'; -} - -$this->includeAtTemplateBase('includes/footer.php'); diff --git a/modules/authorize/templates/authorize_403.twig b/modules/authorize/templates/authorize_403.twig deleted file mode 100644 index 52d9a24308851c10625ca655bafde3577c389f99..0000000000000000000000000000000000000000 --- a/modules/authorize/templates/authorize_403.twig +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "base.twig" %} - -{% block content %} - <h1>{% trans %}{authorize:Authorize:403_header}{% endtrans %}</h1> -{% if reject_msg %} - <p>{{ reject_msg|translateFromArray }}</p> -{% else %} - <p>{% trans %}{authorize:Authorize:403_text}{% endtrans %}</p> -{% endif %} - {% if logoutURL %} - <p> - <a href="{{ logoutURL }}">{% trans %}{status:logout}{% endtrans %}</a> - </p> - {% endif %} -{% endblock%} diff --git a/modules/authorize/www/authorize_403.php b/modules/authorize/www/authorize_403.php deleted file mode 100644 index 032e1ecffdad1e17a4d44005b232975f023443f9..0000000000000000000000000000000000000000 --- a/modules/authorize/www/authorize_403.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php -/** - * Show a 403 Forbidden page about not authorized to access an application. - * - * @package SimpleSAMLphp - */ - -if (!array_key_exists('StateId', $_REQUEST)) { - throw new \SimpleSAML\Error\BadRequest('Missing required StateId query parameter.'); -} -$state = \SimpleSAML\Auth\State::loadState($_REQUEST['StateId'], 'authorize:Authorize'); - -$globalConfig = \SimpleSAML\Configuration::getInstance(); -$t = new \SimpleSAML\XHTML\Template($globalConfig, 'authorize:authorize_403.php'); -if (isset($state['Source']['auth'])) { - $t->data['logoutURL'] = \SimpleSAML\Module::getModuleURL( - 'core/authenticate.php', - ['as' => $state['Source']['auth']] - )."&logout"; -} -if (isset($state['authprocAuthorize_reject_msg'])) { - $t->data['reject_msg'] = $state['authprocAuthorize_reject_msg']; -} -header('HTTP/1.0 403 Forbidden'); -$t->show(); diff --git a/tests/modules/authorize/lib/Auth/Process/AuthorizeTest.php b/tests/modules/authorize/lib/Auth/Process/AuthorizeTest.php deleted file mode 100644 index 4bae5fdbac6cef616f73fcda97db1fb3e0f9c862..0000000000000000000000000000000000000000 --- a/tests/modules/authorize/lib/Auth/Process/AuthorizeTest.php +++ /dev/null @@ -1,162 +0,0 @@ -<?php -/** - * Test for the authorize:Authorize authproc filter. - */ - -namespace SimpleSAML\Test\Module\authorize\Auth\Process; - -use PHPUnit\Framework\TestCase; -use SimpleSAML\Utils\Attributes; - -class AuthorizeTest extends TestCase -{ - - /** - * Helper function to run the filter with a given configuration. - * - * @param array $config The filter configuration. - * @param array $request The request state. - * @return array The state array after processing. - */ - private function processFilter(array $config, array $request) - { - $filter = new TestableAuthorize($config, null); - $filter->process($request); - return $request; - } - - /** - * Test that having a matching attribute grants access - * @dataProvider allowScenarioProvider - * @param array $userAttributes The attributes to test - * @param bool $isAuthorized Should the user be authorized - */ - public function testAllowScenarios($userAttributes, $isAuthorized) - { - $userAttributes = Attributes::normalizeAttributesArray($userAttributes); - $config = [ - 'uid' => [ - '/^.*@example.com$/', - '/^(user1|user2|user3)@example.edu$/', - ], - 'schacUserStatus' => '@urn:mace:terena.org:userStatus:example.org:service:active.*@', - ]; - - $resultState = $this->processFilter($config, ['Attributes' => $userAttributes]); - - $resultAuthorized = isset($resultState['NOT_AUTHORIZED']) ? false : true; - $this->assertEquals($isAuthorized, $resultAuthorized); - } - - public function allowScenarioProvider() - { - return [ - // Should be allowed - [['uid' => 'anything@example.com'], true], - [['uid' => 'user2@example.edu'], true], - [['schacUserStatus' => 'urn:mace:terena.org:userStatus:example.org:service:active.my.service'], true], - [ - [ - 'uid' => ['wrongValue', 'user2@example.edu', 'wrongValue2'], - 'schacUserStatus' => 'incorrectstatus' - ], - true - ], - - //Should be denied - [['wrongAttributes' => ['abc']], false], - [ - [ - 'uid' => [ - 'anything@example.com.wrong', - 'wronguser@example.edu', - 'user2@example.edu.wrong', - 'prefixuser2@example.edu' - ] - ], - false - ], - ]; - } - - /** - * Test that having a matching attribute prevents access - * @dataProvider invertScenarioProvider - * @param array $userAttributes The attributes to test - * @param bool $isAuthorized Should the user be authorized - */ - public function testInvertAllowScenarios($userAttributes, $isAuthorized) - { - $userAttributes = Attributes::normalizeAttributesArray($userAttributes); - $config = [ - 'deny' => true, - 'uid' => [ - '/.*@students.example.edu$/', - '/^(stu1|stu2|stu3)@example.edu$/', - ], - 'schacUserStatus' => '@urn:mace:terena.org:userStatus:example.org:service:blocked.*@', - ]; - - $resultState = $this->processFilter($config, ['Attributes' => $userAttributes]); - - $resultAuthorized = isset($resultState['NOT_AUTHORIZED']) ? false : true; - $this->assertEquals($isAuthorized, $resultAuthorized); - } - - public function invertScenarioProvider() - { - return [ - // Should be allowed - [['noMatch' => 'abc'], true], - [['uid' => 'anything@example.edu'], true], - - //Should be denied - [['uid' => 'anything@students.example.edu'], false], - [['uid' => 'stu3@example.edu'], false], - [['schacUserStatus' => 'urn:mace:terena.org:userStatus:example.org:service:blocked'], false], - // Matching any of the attributes results in denial - [ - [ - 'uid' => ['noMatch', 'abc@students.example.edu', 'noMatch2'], - 'schacUserStatus' => 'noMatch' - ], - false - ], - ]; - } - - /** - * Test that having a matching attribute prevents access - * @dataProvider noregexScenarioProvider - * @param array $userAttributes The attributes to test - * @param bool $isAuthorized Should the user be authorized - */ - public function testDisableRegex($userAttributes, $isAuthorized) - { - $userAttributes = Attributes::normalizeAttributesArray($userAttributes); - $config = [ - 'regex' => false, - 'group' => [ - 'CN=SimpleSAML Students,CN=Users,DC=example,DC=edu', - 'CN=All Teachers,OU=Staff,DC=example,DC=edu', - ], - ]; - - $resultState = $this->processFilter($config, ['Attributes' => $userAttributes]); - - $resultAuthorized = isset($resultState['NOT_AUTHORIZED']) ? false : true; - $this->assertEquals($isAuthorized, $resultAuthorized); - } - - public function noregexScenarioProvider() - { - return [ - // Should be allowed - [['group' => 'CN=SimpleSAML Students,CN=Users,DC=example,DC=edu'], true], - - //Should be denied - [['wrongAttribute' => 'CN=SimpleSAML Students,CN=Users,DC=example,DC=edu'], false], - [['group' => 'CN=wrongCN=SimpleSAML Students,CN=Users,DC=example,DC=edu'], false], - ]; - } -} diff --git a/tests/modules/authorize/lib/Auth/Process/TestableAuthorize.php b/tests/modules/authorize/lib/Auth/Process/TestableAuthorize.php deleted file mode 100644 index f15d65d96ad443915854ab5ff069f2a64cb7988d..0000000000000000000000000000000000000000 --- a/tests/modules/authorize/lib/Auth/Process/TestableAuthorize.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php -/** - * Subclass authorize filter to make it unit testable. - */ - -namespace SimpleSAML\Test\Module\authorize\Auth\Process; - -use SimpleSAML\Module\authorize\Auth\Process\Authorize; - -class TestableAuthorize extends Authorize -{ - /** - * Override the redirect behavior since its difficult to test - * @param array $request the state - */ - protected function unauthorized(&$request) - { - $request['NOT_AUTHORIZED'] = true; - } -}