diff --git a/config-templates/config.php b/config-templates/config.php index d16b2beed2058cf6e7b920408ee6da9e2b12590d..d0f3dc454801432495c2be706d9992edba5311f6 100644 --- a/config-templates/config.php +++ b/config-templates/config.php @@ -491,12 +491,6 @@ $config = array ( 'metadata.sign.privatekey_pass' => NULL, 'metadata.sign.certificate' => NULL, - /* - * This is the default URL to a MetaShare service where a SAML 2.0 IdP can register its metadata. - * This is a highly experimentar feature. - */ - 'metashare.publishurl' => NULL, - ); diff --git a/config-templates/metashare.php b/config-templates/metashare.php deleted file mode 100644 index f0b7d3c938d7d88343d1a1118f127c912e5365ba..0000000000000000000000000000000000000000 --- a/config-templates/metashare.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php - -/* - * Configuration for the MetaShare service. - */ -$config = array( - - /* - * Whether the MetaShare service is enabled. Set to TRUE to enable the MetaShare service. - */ - 'metashare.enable' => FALSE, - - /* - * The path we will store the metadata in. Set this to a directory which is writeable by - * the web server. We will attempt to create this directory if it doesn't exists. - * - * If the path name is relative, it will be interpreted to be relative to the simpleSAMLphp - * directory. - */ - 'metashare.path' => '/tmp/metashare', - - /* - * Whether we should validate the metadata we receive against the schema before allowing them - * to be added. - */ - 'metashare.validateschema' => TRUE, - - /* - * The MetaShare service can optionally sign the list of metadata it generates. Set this to - * TRUE to enable that. - */ - 'metashare.signmetadatalist' => FALSE, - - /* - * When signing metadata, you need to provide a private key and a certificate. You can also - * specify a password for the private key. All paths are relative to the simpleSAMLphp cert - * directory. - */ - 'metashare.privatekey' => NULL, - 'metashare.privatekey_pass' => NULL, - 'metashare.certificate' => NULL, - -); - -?> \ No newline at end of file diff --git a/dictionaries/metashare.definition.json b/dictionaries/metashare.definition.json deleted file mode 100644 index a053a8a68d7ddb6474390e184aa61bfbbf889186..0000000000000000000000000000000000000000 --- a/dictionaries/metashare.definition.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "front_header": { - "en": "MetaShare" - }, - "front_desc": { - "en": "This is a metadata sharing service. It allows you to add dynamically generated metadata to a shared store." - }, - "add_title": { - "en": "Add entity" - }, - "add_desc": { - "en": "Add new or updated metadata by specifying the URL of the metadata. This URL must match the entity identifier of the entity described in the metadata." - }, - "add_entityid": { - "en": "Entity identifier of the entity:" - }, - "add_do": { - "en": "Add" - }, - "downloadall_desc": { - "en": "It is possible to download all the metadata as a single XML file. This file will contain a single EntitiesDescriptor which contains all the entities which are atted to this MetaShare. The EntitiesDescriptor may be signed by this MetaShare if that is enabled in the configuration." - }, - "downloadall_link": { - "en": "Download all metadata" - }, - "entities_title": { - "en": "Entities" - }, - "entities_desc": { - "en": "This is a list of all the entities which are currently stored in this MetaShare. Click on a link to download the metadata of the given entity." - }, - "entities_empty": { - "en": "No entities are currently stored in this MetaShare." - }, - "text": { - "en": "text" - }, - "addpage_header": { - "en": "Add metadata" - }, - "addpage_ok": { - "en": "The metadata from \"%URL%\" was successfylly added." - }, - "addpage_nourl": { - "en": "No URL parameter given." - }, - "addpage_invalidurl": { - "en": "Invalid URL\/entity id to metadata. The entity id should be a valid http: or https: URL. The URL you gave was \"%URL%\"." - }, - "addpage_nodownload": { - "en": "Unable to download metadata from \"%URL%\"." - }, - "addpage_invalidxml": { - "en": "Malformed XML in metadata. The URL you gave was \"%URL%\"." - }, - "addpage_notentitydescriptor": { - "en": "The root node of the metadata was not an EntityDescriptor element. The URL you gave was \"%URL%\"." - }, - "addpage_entityid": { - "en": "The entity identifier in the metadata did not match the URL of the metadata (\"%URL%\")." - }, - "addpage_validation": { - "en": "XML validation of the metadata from \"%URL%\" failed:" - }, - "addpage_gofront": { - "en": "Go to metadata list" - } -} diff --git a/dictionaries/metashare.translation.json b/dictionaries/metashare.translation.json deleted file mode 100644 index d507ffd36225461122154648cccd5d051218de13..0000000000000000000000000000000000000000 --- a/dictionaries/metashare.translation.json +++ /dev/null @@ -1,388 +0,0 @@ -{ - "front_header": { - "no": "MetaShare", - "nn": "MetaShare", - "sv": "MetaShare", - "es": "MetaShare", - "nl": "MetaShare", - "sl": "MetaShare", - "da": "Metashare", - "hr": "MetaShare", - "hu": "MetaShare", - "fi": "MetaShare", - "pt-BR": "MetaShare", - "pt": "MetaShare", - "pl": "MetaShare", - "tr": "MetaShare", - "de": "MetaShare", - "fr": "MetaShare" - }, - "add_title": { - "no": "Legg til entitet", - "nn": "Legg til ny entitet", - "sv": "L\u00e4gg till entitet", - "es": "A\u00f1adir entidad", - "nl": "Voeg entiteit toe", - "sl": "Dodaj entiteto", - "da": "Tilf\u00f8j enhed", - "hr": "Dodaj entitet", - "hu": "Bejegyz\u00e9s hozz\u00e1ad\u00e1sa", - "fi": "Lis\u00e4\u00e4 palvelu", - "pt-BR": "Adicionar entidade", - "pt": "Adicionar entidade", - "pl": "Dodaj jednostk\u0119 (SP lub IdP)", - "tr": "Birim ekle", - "de": "Datensatz hinzuf\u00fcgen", - "fr": "Ajouter une entit\u00e9" - }, - "add_do": { - "no": "Legg til", - "nn": "Legg til ", - "sv": "L\u00e4gg till", - "es": "A\u00f1adir", - "nl": "Voeg toe", - "sl": "Dodaj", - "da": "Tilf\u00f8j", - "hr": "Dodaj", - "hu": "Hozz\u00e1ad\u00e1s", - "fi": "Lis\u00e4\u00e4", - "pt-BR": "Adicionar", - "pt": "Adicionar", - "pl": "Dodaj", - "tr": "Ekle", - "de": "Hinzuf\u00fcgen", - "fr": "Ajouter" - }, - "entities_title": { - "no": "Entiteter", - "nn": "Entitetar ", - "sv": "Entiteter", - "es": "Entidades", - "nl": "Entiteiten", - "sl": "Entitete", - "da": "Entiteter", - "hr": "Entiteti", - "hu": "Bejegyz\u00e9sek", - "fi": "Palvelut", - "pt-BR": "Entidades", - "pt": "Entidades", - "pl": "Jednostki", - "tr": "Birimler", - "de": "Datens\u00e4tze", - "fr": "Entit\u00e9s" - }, - "text": { - "no": "Tekst", - "nn": "Tekst", - "sv": "txt", - "es": "Texto", - "nl": "Tekst", - "sl": "Besedilo", - "da": "Tekst", - "hr": "tekst", - "hu": "sz\u00f6veg", - "fi": "teksti", - "pt-BR": "texto", - "pt": "Texto", - "pl": "tekst", - "tr": "metin", - "de": "Text", - "fr": "texte" - }, - "addpage_header": { - "no": "Legg til metadata", - "nn": "Legg til metadata", - "sv": "L\u00e4gg till metadata", - "es": "A\u00f1adir metadatos", - "nl": "Voeg metadata toe", - "sl": "Dodaj metapodatke", - "da": "Tilf\u00f8j metadata", - "hr": "Dodaj metapodatke", - "hu": "Metaadatok hozz\u00e1ad\u00e1sa", - "fi": "Lis\u00e4\u00e4 metatieto", - "pt-BR": "Adicionar metadata", - "pt": "Adicionar metadados", - "pl": "Dodaj Metadane", - "tr": "\u00dcstveri ekle", - "de": "Metadaten hinzuf\u00fcgen", - "fr": "Ajouter des m\u00e9tadonn\u00e9es" - }, - "addpage_nourl": { - "no": "Mangler URL parameter.", - "nn": "Fann ikkje URL. Har du hugsa \u00e5 leggja inn URL?", - "sv": "Ingen URL angavs.", - "es": "No indic\u00f3 el par\u00e1metro URL.", - "nl": "Geen URL parameter opgegeven", - "sl": "Noben URL parameter ni bil podan.", - "da": "URL ikke opgivet", - "hr": "Nije zadan URL parametar.", - "hu": "Hi\u00e1nyz\u00f3 URL param\u00e9ter.", - "fi": "URL parametri puuttuu.", - "pt-BR": "N\u00e3o foi passado o par\u00e2metro URL.", - "pt": "N\u00e3o foi fornecido nenhum URL", - "pl": "Nie podano parametru URL.", - "tr": "URL parametresi verilmemi\u015f.", - "de": "Kein URL-Parameter angegeben.", - "fr": "Aucune URL n'a \u00e9t\u00e9 fournie." - }, - "addpage_gofront": { - "no": "G\u00e5 til metadata liste", - "nn": "G\u00e5 til liste over metadata", - "sv": "G\u00e5 till metadatalistan", - "es": "Ir a la lista de metadatos", - "nl": "Ga naar de metadata lijst", - "sl": "Pojdi na seznam metapodatkov", - "da": "G\u00e5 til metada listen", - "hr": "Idi na popis metapodataka", - "hu": "Metaadatok list\u00e1ja", - "fi": "Siirry metatietolistaan", - "pt-BR": "Ir para a lista de metadata", - "pt": "Voltar \u00e0 lista de metadados", - "pl": "Id\u017a do listy Metadanych", - "tr": "\u00dcstveri listesine git", - "de": "Gehe zur Metadatenliste", - "fr": "Allez \u00e0 la liste des m\u00e9tadonn\u00e9es" - }, - "front_desc": { - "no": "Dette er en metadata distribusjonstjeneste. Den tillater deg \u00e5 legge til dyamisk generert metadata til et delt lager.", - "nn": "Dette er ei teneste for deling av metadata. Du kan leggja til dynamisk genererte metadata til eit felles lager.", - "sv": "Detta delningsj\u00e4nsten f\u00f6r metadata. Den till\u00e5ter att du l\u00e4gger till dynamiskt skapad metadata till ett delat datalager.", - "es": "Servicio de compartici\u00f3n de metadatos. Le permite a\u00f1adir metadatos generados din\u00e1micamente a un almacenamiento compartido.", - "nl": "Dit is een metadata service. Je kan er dynamisch gegenereerde metadata mee toevoegen aan een gedeelde database.", - "sl": "MetaShare je storitev souporabe metapodatkov. Omogo\u010da dodajanje dinami\u010dno generiranih metapodatkov v skladi\u0161\u010de za skupno rabo.", - "da": "Dette er en metadata-delingstjeneste, som g\u00f8r det muligt at tilf\u00f8je dynamisk genereret metadata til et f\u00e6lles repository", - "hr": "Ovo je servis za razmjenu metapodataka. Omogu\u0107uje vam da dodate dinami\u010dki generirane metapodatke u zajedni\u010dki repozitorij.", - "hu": "Ez egy metaadat megoszt\u00f3 szolg\u00e1ltat\u00e1s. Dinamikusan gener\u00e1lt metaadatok megosztott t\u00e1rol\u00e1s\u00e1t teszi lehet\u0151v\u00e9.", - "fi": "T\u00e4m\u00e4 metatietojen jakopalvelu. Sen avulla voi lis\u00e4t\u00e4 dynaamisesti luodun metatiedon jaettuun varastaoon.", - "pt-BR": "Este \u00e9 um servi\u00e7o de compartilhamento de metadata. Ele permite que voc\u00ea adicione metadatas geradas dinamicamente, armazene-as e compartilhe-as.", - "pt": "Est\u00e1 na p\u00e1gina do servi\u00e7o de partilha de metadados. Esta p\u00e1gina permite-lhe adicionar metadados gerados dinamicamente a um reposit\u00f3rio comum de dados.", - "pl": "To jest serwis udost\u0119pniania metadanych. Pozwala Tobie doda\u0107 dynamicznie wygenerowane metadane do udost\u0119pnianych zasob\u00f3w.", - "tr": "Bu \u00fcstveri (metadata) payla\u015f\u0131m servisi. Bu servis, dinamik olarak olu\u015fturulmu\u015f \u00fcstveriyi, payla\u015f\u0131lan bir depoya eklemenize izin verir.", - "de": "Dies ist ein Service zum Teilen von Metadaten. Er erlaubt Ihnen, dynamisch generierte Metadaten einem gemeinsamen Speicher hinzuzuf\u00fcgen.", - "fr": "Ceci est un service de partage de m\u00e9tadonn\u00e9es. Il vous permet d'ajouter des m\u00e9tadonn\u00e9es g\u00e9n\u00e9r\u00e9es dynamiquement \u00e0 un d\u00e9p\u00f4t partag\u00e9." - }, - "add_entityid": { - "no": "EntityID for tjenesten:", - "nn": "EntityID for entiteten: ", - "sv": "Entitetsidentifierare f\u00f6r entiteten:", - "es": "Identificador de la entidad:", - "nl": "Entity identifier van de entiteit.", - "sl": "Identifikator entete:", - "da": "Entitets idetifikatoren for entiteten", - "hr": "Identifikator entiteta:", - "hu": "Bejegyz\u00e9s azonos\u00edt\u00f3ja:", - "fi": "Palvelun tunniste (entityid):", - "pt-BR": "Entidade identificador da entidade:", - "pt": "Identificador de entidade", - "pl": "Identyfikator jednostki", - "tr": "Birimin tan\u0131mlay\u0131c\u0131s\u0131:", - "de": "Datensatzbezeichner des Datensatzes:", - "fr": "Identifiant d'entit\u00e9:" - }, - "downloadall_link": { - "no": "Last ned all metadata ", - "nn": "Last ned alle metadata", - "sv": "H\u00e4mta alla metadata", - "es": "Descargar todos los metadatos", - "nl": "Download alle metadata", - "sl": "Prenesi vse metapodatke k sebi.", - "da": "Download alt metadata", - "hr": "Dohvati sve metapodatke", - "hu": "\u00d6sszes metaadat let\u00f6lt\u00e9se", - "fi": "Lataa kaikki metatiedot", - "pt-BR": "Baixar toda metadata", - "pt": "Efectuar o download de todos os metadados", - "pl": "\u015aci\u0105gnij wszystkie Metadane", - "tr": "T\u00fcm \u00fcstveriyi indir", - "de": "Alle Metadaten herunterladen", - "fr": "T\u00e9l\u00e9charger toutes les m\u00e9tadonn\u00e9es" - }, - "entities_empty": { - "no": "Ingen tjenester er for \u00f8yeblikket lagret i denne MetaShare installasjonen.", - "nn": "Ingen entitetar er lagra i MetaShare her.", - "sv": "Det finns f\u00f6rn\u00e4rvarande inga eniteter lagrade i denna MetaShare.", - "es": "Actualmente no existen entidades almacenadas en este MetaShare.", - "nl": "Er zijn geen entiteiten opgeslagen in deze MetaShare.", - "sl": "V MetaShare trenutno ni shranjene nobene entitete.", - "da": "Ingen entieties ", - "hr": "U MetaShare repozitoriju trenutno nije pohranjen niti jedan entitet.", - "hu": "Egyetlen bejegyz\u00e9s sincs a MetaShare-ben.", - "pt-BR": "N\u00e3o h\u00e1 entidades atualmente guardadas nesta MetaShare.", - "pt": "N\u00e3o existem entidades presentes neste servi\u00e7o de MetaShare.", - "pl": "Aktualnie brak jednostek zapisanych w Metashare.", - "tr": "\u015eu anda MetaShare'de depolanan birim bulunmamaktad\u0131r.", - "de": "Derzeit sind keine Datens\u00e4tze in diesem MetaShare gespeichert.", - "fr": "Aucune entit\u00e9 n'est actuellement stock\u00e9e dans ce d\u00e9p\u00f4t MetaShare." - }, - "addpage_ok": { - "no": "Metadata fra \"%URL\" ble lagt til vellykket.", - "nn": "Metadata fr\u00e5 \"%URL%\" er lagt til", - "sv": "Metadata fr\u00e5n \"%URL%\" har lagts till.", - "es": "Los metadatos de \"%URL%\" se han a\u00f1adido correctamente.", - "nl": "De metadata van \"%URL%\" is succesvol toegevoegd.", - "sl": "Metapodatki z naslova \"%URL%\" so bili uspe\u0161no dodani.", - "da": "Metadata fra \"%URL%\" blev tilf\u00f8jet", - "hr": "Metapodaci s adrese \"%URL%\" su uspje\u0161no dodani.", - "hu": "A(z) \"%URL%\" URL-r\u0151l sz\u00e1rmaz\u00f3 metaadatok hozz\u00e1ad\u00e1sa siker\u00fclt.", - "fi": "Metatieto \"%URL%\" lis\u00e4tty onnistuneesti.", - "pt-BR": "A metadata de \"%URL%\" foi adicionada com sucesso.", - "pt": "Foram adicionados com sucesso os metadados dispon\u00edveis em \"%URL%\" ", - "pl": "Metadane z \"%URL%\" zosta\u0142y pomy\u015blnie dodane.", - "tr": "\"%URL%\"den gelen \u00fcstveri ba\u015far\u0131yla eklendi.", - "de": "Die Metadaten von \"%URL%\" wurden erfolgreich hinzugef\u00fcgt.", - "fr": "R\u00e9ussite de l'import des m\u00e9tadonn\u00e9es depuis \"%URL%\"." - }, - "addpage_entityid": { - "no": "EntityID i metadataene stemmer ikke overens med URL-en til metadata dokumentet (\"%URL%\").", - "nn": "EntityID i metadata stemmer ikkje med URLen for metadata (\"%URL%\").", - "sv": "Entitetsidentifieraren i metadatat st\u00e4mmer inte \u00f6verens med adressen f\u00f6r metadatat (\"%URL%\").", - "es": "El identificador de la entidad en los metadatos no coincide con la URL de los metadatos (\"%URL%\").", - "nl": "De entity identifier in de metadata komt niet overeen met de URL van de metadata (\"%URL%\").", - "sl": "Identifikator entitene se ne ujema z URLjem metapodatkov (\"%URL%\").", - "da": "'EntityIdentifyer' i metadata matchede i metadatas %URL%", - "hr": "Identifikator entiteta u metapodacima ne podudara se s adresom na kojoj se metapodaci nalaze (\"%URL%\").", - "hu": "A entit\u00e1s azonos\u00edt\u00f3 nem egyezik a metaadatok el\u00e9rhet\u0151s\u00e9g\u00e9nek URL-j\u00e9vel (\"%URL%\").", - "pt-BR": "A entidade identificadora na metadata n\u00e3o corresponde a url da metadata (\"%URL%\").", - "pt": "O identificador de entidade (entityID) nos metadados n\u00e3o corresponde ao URL dos metadados (\"%URL%\").", - "tr": "\u00dcstverideki birim tan\u0131mlay\u0131c\u0131s\u0131 \u00fcstverinin URL'i ile e\u015fle\u015fmedi (\"%URL%\").", - "de": "Der Datensatzbezeichner in den Metadaten passte nicht zur URL der Metadaten (\"%URL%\").", - "fr": "L'identifiant d'identit\u00e9 dans les m\u00e9tadonn\u00e9es ne corresponds pas \u00e0 l'URL des m\u00e9tadonn\u00e9es (\"%UEL\")." - }, - "addpage_validation": { - "no": "XML validering av metadata from \"%URL%\" feilet:", - "nn": "Feila XML-validering av metadata for \"%URL%\":", - "sv": "XML-valideringen av metatdatat fr\u00e5n \"%URL%\" misslyckades:", - "es": "La validaci\u00f3n del XML de los metadatos desde \"%URL%\" ha fallado:", - "nl": "XML validatie van de metadata op \"%URL%\" is niet gelukt:", - "sl": "XML validacija metapodatkov z naslova \"%URL%\" je spodletela:", - "da": "Fejl i XML-validering af metadata fra %URL%", - "hr": "XML validacija metapodataka na adresi \"%URL%\" nije uspje\u0161no izvr\u0161ena:", - "hu": "A \"%URL%\" metaadatok XML ellen\u0151rz\u00e9se sikeretelen volt:", - "fi": "Metatiedon \"%URL%\" XML-validointi ep\u00e4onnistui ", - "pt-BR": "A valida\u00e7\u00e3o do XML para a metadata da URL \"%URL%\" falhou.", - "pt": "Falhou a valida\u00e7\u00e3o XML dos metadados do URL \"%URL%\".", - "pl": "Weryfikacja XML metadanych z \"%URL%\" zako\u0144czona b\u0142\u0119dem:", - "tr": "\"%URL%\"den \u00fcstverinin XML do\u011frulamas\u0131 ba\u015far\u0131s\u0131z:", - "de": "XML-Validierung der Metadaten von \"%URL%\" fehlgeschlagen:", - "fr": "Echec de la validation XML des m\u00e9tadonn\u00e9es en provenance de \"%URL%\":" - }, - "addpage_notentitydescriptor": { - "no": "Rotnoden i metadata-dokumentet var ikke en EntityDescriptor. URLen du oppgave var \"%URL%\".", - "nn": "Rotnoden for metadata var ikkje eit EntityDescriptor-element. URLen du oppgav var \"%URL%\".", - "sv": "Toppnoden av metadatat var inte en EntityDescriptor. Adressen du angav var \"%URL%\".", - "es": "El nodo ra\u00edz de los metadatos no es un elemento del tipo EntityDescriptor. La URL indicada fue \"%URL%\".", - "nl": "De root node van de metadata is geen EntityDescriptor element. De URL was: \"%URL%\".", - "sl": "Korensko vozli\u0161\u010de (root node) metapodakov ni element tipa \"entitetni opisnik\". URL, ki ste ga posredovali \"%URL%\".", - "da": "Roden af metadata var ikke en 'EntityDescriptor'. URL'en du gav var \"%URL%\"", - "hr": "Korijenski \u010dvor u metapodacima nije <i>EntityDescriptor<\/i> element. URL koji ste zadali je \"%URL%\".", - "hu": "A metaadatok gy\u00f6k\u00e9releme nem EntityDescriptor volt. Az URL az al\u00e1bbi volt: \"%URL%\".", - "pt-BR": "O n\u00f3 raiz da metadata n\u00e3o era um elemento EntityDescriptor. A URL passada foi \"%URL%\".", - "pt": "O elemento raiz dos metadados n\u00e3o \u00e9 um elemento do tipo EntityDescriptor. O URL fornecido foi \"%URL%\".", - "tr": "\u00dcstverinin k\u00f6k d\u00fc\u011f\u00fcm\u00fc, EntityDescriptor eleman\u0131 de\u011fildi. Verdi\u011finiz URL \"%URL%\" idi.", - "de": "Der Wurzelknoten der Metadaten war kein EntityDescriptor Element. Die URL, die Sie angegeben haben, war \"%URL%\".", - "fr": "Le n\u0153eud racine des m\u00e9tadonn\u00e9es n'est pas un \u00e9l\u00e9ment <i>EntityDescriptor<\/i>. L'URL que vous avez indiqu\u00e9 est \"%URL%\"." - }, - "add_desc": { - "no": "Legg til nytt eller oppdatert metadata ved \u00e5 spesifisere URL-en til metadata. Denne URL-en m\u00e5 ogs\u00e5 matche entity ID-en til entiteten som metadata-dokumentet beskriver.", - "nn": "Legg til nye eller oppdaterte metadata ved \u00e5 spesifisera URLen der du finn metadata. Denne URLen m\u00e5 samsvara med entityID for entiteten i dei aktuelle metadata.", - "sv": "L\u00e4g till ny eller uppdatera metadata genom att ange URL f\u00f6r metadatat. URLen m\u00e5ste matcha entitetsidentifieraren f\u00f6r entiteten som \u00e4r beskriven i metatdatat.", - "es": "A\u00f1adir o actualizar metadatos indicando la URL de los metadatos. Esta URL debe coincidir con el \"identificador de la entidad\" de la entidad descrita en los metadatos.", - "nl": "Voeg nieuwe of bijgewerkte metadata toe door de URL van de metadata op te geven. Deze URL moet overeenkomen met de entity identifier van de entiteit die wordt beschreven in de metadata.", - "sl": "Dodajte nove ali popravljene metapodatke tako, da podate njihov URL. URL se mora ujemati z identifikatorjem entitete.", - "da": "Tilf\u00f8j nyt eller opdaterert metadat ved at skrive den url der f\u00f8rer til metadata. Urlen skal matche entitets identificatoren for den entitet der er beskrevet i metadata", - "hr": "Dodaj nove ili a\u017eurirane metapodatke specificiraju\u0107i URL metapotataka. URL se mora podudarati s identifikatorom entiteta opisanog u metapodacima. ", - "hu": "Adja meg az \u00faj vagy friss\u00edtett metaadatok URL-j\u00e9t! Ennek az URL-nek meg kell egyeznie a metaadatokban le\u00edrt entit\u00e1s azonos\u00edt\u00f3j\u00e1val.", - "fi": "Lis\u00e4\u00e4 uusi tai muuta metatietoja antamalla metatietojen URL. URL:n tulee vastata palvelun tunnistetta metadatassa.", - "pt-BR": "Adicionar novo ou atualizar metadata, especificando a URL da metadata. Essa URL deve corresponder a entidade identificadora da entidade descrita na metadata.", - "pt": "Adicionar metadados novos ou actualizados especificando o URL dos metadados. Este URL tem de coincidir com o identificador de entidade (entityID) descrito nos metadados", - "pl": "Dodaj nowe lub zaktualizowane metadane poprzez okre\u015blenie adresu URL pliku metadanych.", - "tr": "\u00dcstverinin URL'ini belirterek yeni ya da de\u011fi\u015ftirilmi\u015f \u00fcstveri ekle. Bu URL \u00fcstveride tan\u0131mlanan birimin tan\u0131mlay\u0131c\u0131s\u0131 ile e\u015fle\u015fmelidir.", - "de": "F\u00fcgen Sie neue oder aktualisierte Metadaten hinzu, indem Sie die URL der Metadaten angeben. Diese URL muss gleich dem Datensatzbezeichner des in den Metadaten beschriebenen Datensatzes sein.", - "fr": "Ajoutez ou mettez \u00e0 jour des m\u00e9tadonn\u00e9es en indiquant l'URL de l'identifiant de l'entit\u00e9 (attribue <i>providerId<\/i> dans les m\u00e9tadonn\u00e9es)." - }, - "downloadall_desc": { - "no": "Det er mulig \u00e5 laste ned alle metadata i en samlet XML fil. Denne filen inneholder en EntitiesDescriptor med alle entitetene som er lagt til denne MetaShare tjenesten. EntitiesDescriptor elementet kan signeres av MetaShare tjenesten hvis det er p\u00e5sl\u00e5tt i konfigurasjonen.", - "nn": "Du kan lasta ned alle metadata som ei felles XML-fil. Denne fila inneheld ein enkelt EntitiesDescriptor som inneheld alle entitetane som er lagt til i MetaShare. EntitiesDescriptor kan vera signert av denne MetaShare dersom dette er konfigurert inn.", - "sv": "Det \u00e4r m\u00f6jligt att h\u00e4mta all metadata som en enda XML-fil. Denna fil kommer inneh\u00e5lla en enda EntitiesDescriptor som inneh\u00e5ller alla enteiteter som finns lagrade i denna MetaShare. EntitiesDescriptor kan vara signerade av MetaShare om detta \u00e4r aktiverat i konfgiurationen f\u00f6r MetaShare.", - "es": "Es posible descargar todos los metatados en un \u00fanico archivo XML. Este archivo contendr\u00e1 un \u00fanico EntitiesDescriptor con todas las entidades que se han definido en el MetaShare. El EntitiesDescriptor puede que est\u00e9 firmado por este MetaShare si se habilit\u00f3 la opci\u00f3n en la configuraci\u00f3n.", - "nl": "Het is mogelijk om alle metadata in een enkele XML file op te halen. Deze file zal een enkele EntitiesDescriptor bevatten waarin alle entiteiten zitten die bestaan in deze MetaShare. De EntitiesDescriptor kan digitaal worden ondertekend door de MetaShare die is geconfigureerd.", - "sl": "Celotne metapodatke si lahko prenesete kot eno XML datoteko. Ta bo vsebovala opisnik entitet in vse entitete, ki so shranjene v MetaShareu. Opisnik entitet je lahko digitalno podpisan, \u010de je ta mo\u017enost v nastavitvah omogo\u010dena.", - "da": "Det er muligt at downloade metadata som en enkelt XML-fil. Denne fil indeholder en enkelt Entitetsbeskrivelse som indeholder alle de entiteter som er tilf\u00f8jet til det f\u00e6lles metadatarepository. Entitetsbeskrivelsen kan v\u00e6re signeret af metadatrepositoryet, hvis det er tilf\u00f8jet i konfigurationen ", - "hr": "Mogu\u0107e je dohvatiti sve metapodatke u obliku jedne XML datoteke. Ta datoteka sadr\u017eavat \u0107e jedinstveni <i>EntitiesDescriptor<\/i> koji sadr\u017eava sve entitete koji se nalaze u MetaShare repozitoriju. <i>EntitiesDescriptor<\/i> mo\u017ee biti digitalno potpisan ako je ta opcija uklju\u010dena u konfiguraciji.", - "hu": "Lehet\u0151s\u00e9g van az \u00f6sszes metaadat let\u00f6lt\u00e9s\u00e9re egyetlen XML f\u00e1jlk\u00e9nt. A file egyetlen EntitiesDescriptor elmet fog tartalmazni, amely mag\u00e1ba foglalja az \u00f6sszes MetaShare-ben t\u00e1rolt elemet. Az EntitiesDescriptor-t a MetaShare is al\u00e1\u00edrhatja, ha ez enged\u00e9lyezve van a be\u00e1ll\u00edt\u00e1sokn\u00e1l.", - "pt-BR": "\u00c9 poss\u00edvel fazer download de todas as metadatas como um \u00fanico arquivo XML. Esse arquivo ir\u00e1 conter um \u00fanico EntitiesDescriptor que cont\u00e9m todas as entidades que est\u00e3o vinculadas para este MetaShare. O EntitiesDescriptor pode ser assinado por este MetaShare se isto est\u00e1 ativado na configura\u00e7\u00e3o.", - "pt": "\u00c9 poss\u00edvel efectuar o dowload de todos os metadados num \u00fanico ficheiro XML. Este ficheiro ir\u00e1 conter um \u00fanico elemento EntitiesDescriptor com todas as entidades presentes neste MetaShare. O elemento EntitiesDescriptor pode ser assinado por este servi\u00e7o de MetaShare se esta op\u00e7\u00e3o estiver activa na configura\u00e7\u00e3o.", - "pl": "Jest mo\u017cliwe \u015bci\u0105gniecie wszystkich metadanych jako pojedynczy plik XML. Plik ten bedzie zawiera\u0142 pojedynczy EntitiesDescriptor tag, kt\u00f3ry zawiera wszystkich dostawc\u00f3w, kt\u00f3re maj\u0105 by\u0107 w tym Metashare. EntitiesDescriptor mo\u017ce by\u0107 podpisany przez ten MetaShare je\u015bli jest to w\u0142\u0105czone w konfiguracji.", - "tr": "T\u00fcm \u00fcstveriyi tek bir XML dosyas\u0131 olarak indirmek m\u00fcmk\u00fcn. Bu dosya MetaShare'e eklenen t\u00fcm birimlerin bulundu\u011fu tek bir EntitiesDescriptor i\u00e7erecektir. Bu EntitiesDescriptor, e\u011fer yap\u0131land\u0131rma i\u00e7inde etkinle\u015ftirilmi\u015fse MetaShare taraf\u0131ndan imzalanm\u0131\u015f olabilir.", - "de": "Es ist m\u00f6glich, alle Metadaten in einer XML-Datei herunterzuladen. Diese Datei wird einen einzelnen EntitiesDescriptor enthalten, der alle Datens\u00e4tze enth\u00e4lt, die diesem MetaShare hinzugef\u00fcgt werden. Der EntitiesDescriptor kann durch diesen MetaShare unterzeichnet werden, falls Sie dies in Ihrer Konfiguration aktiviert haben.", - "fr": "Vous pouvez t\u00e9l\u00e9charger toutes les m\u00e9tadonn\u00e9es dans un fichier XML unique. Ce fichier contiendra un \u00e9l\u00e9ment <i>EntitiesDescriptor<\/i> englobant toutes les entit\u00e9s enregistr\u00e9es dans ce d\u00e9p\u00f4t MetaShare. Si la configuration le sp\u00e9cifie, cet \u00e9l\u00e9ment <i>EntitiesDescriptor<\/i> peut \u00eatre sign\u00e9." - }, - "entities_desc": { - "no": "Dette er en liste over alle entiteter som n\u00e5 er lagret i MetaShare tjenesten. Klikk p\u00e5 en link for \u00e5 laste ned metadata for en gitt entitet.", - "nn": "Dette er ei liste over alle entitetar som lagra i MetaShare no. Klikk p\u00e5 ein peikar for \u00e5 lasta ned metadata for den aktuelle entiteten.", - "sv": "Detta \u00e4r en lista \u00f6ver alla entiteter som f\u00f6rn\u00e4rvarande finns lagrades i denna MetaShare. Klicka p\u00e5 aktuell l\u00e4nk f\u00f6r att h\u00e4mta f\u00f6r att h\u00e4mta metadata f\u00f6r en viss entitet.", - "es": "Esta es la lista de todas las entidades que est\u00e1n almacenadas actualmente en este MetaShare. Pulse en el enlace para descargar los metadatos de una determinada entidad.", - "nl": "Dit is een lijst van alle entiteiten die zijn opgeslagen in deze MetaShare. Klik op een link op de metadata van een specifieke entiteit op te halen.", - "sl": "To je seznam vseh entitet, ki so trenutnotno shranjene v tem MetaShareu. S klikom na povezavo (entiteto), lahko prenesete njeno metadato.", - "da": "Dette er en liste best\u00e5ende af alle de entiteter der for indev\u00e6rende er gemt i det f\u00e6lles repository.", - "hr": "Ovo je popis svih entiteta koji su trenutno pohranjeni u MetaShare repozitoriju. Kliknite na odgovaraju\u0107u poveznicu da biste dohvatili metapodatke za odre\u0111eni entitet.", - "hu": "Ez a lista a jelenleg a MetaShare-ben t\u00e1rolt \u00f6sszes elemet mutatja. Kattintson a linkre, hogy let\u00f6lthesse a az entit\u00e1shoz tartoz\u00f3 metaadatokat.", - "pt-BR": "Esta \u00e9 uma lista de todas as entidades que est\u00e3o atualmente guardadas nesta MetaShare. Clique em um link para baixar as metadata das determinadas entidades.", - "pt": "Apresenta-se de seguida uma lista de todas as entidades presentes neste servi\u00e7o de MetaShare. Siga uma das liga\u00e7\u00f5es para efectuar o download dos metadados da entidade correspondente.", - "pl": "To jest lista wszystkich jednostek, kt\u00f3re aktualnie s\u0105 zapisane w Metashare. Kliknij na link aby \u015bci\u0105gn\u0105\u0107 metadane wybranej jednostki.", - "tr": "Bu MetaShare'de halihaz\u0131rda depolanan t\u00fcm birimlerin bir listesidir. Verilen bir birimin \u00fcstverisini indirmek i\u00e7in ba\u011flant\u0131ya t\u0131klay\u0131n.", - "de": "Dies ist eine Liste aller Datens\u00e4tze, die derzeit in diesem MetaShare gespeichert sind. Klicken Sie auf einen Link um die Metadaten des jeweiligen Datensatzes herunterzuladen.", - "fr": "Voici une liste des entit\u00e9s stock\u00e9es dans le d\u00e9p\u00f4t MetaShare. Cliquez sur un lien pour t\u00e9l\u00e9charger les m\u00e9tadonn\u00e9es de l'entit\u00e9 correspondante." - }, - "addpage_invalidurl": { - "no": "Ugyldig URL\/entity ID for metadata. Entity ID-en m\u00e5 v\u00e6re en gyldig http: eller https: URL. URL-en du oppgav var \"%URL%\".", - "nn": "Ugyldig URL eller EntityID for metadata. EntityID m\u00e5 vera ein gyldig http: eller https: URL. URLen du oppgav var \"%URL%\".", - "sv": "Felaktig URL\/Entitetsidentifierare f\u00f6r metadata. Entitetsidentifieraren ska vara en giltig http- eller https-adress (URL). Adressen du angav var \"%URL%\".", - "es": "El identificador de la entidad o la URL de los metadatos no es v\u00e1lido. El identificador de la entidad deber\u00eda ser una URL del tipo http o https. La URL indicada fue \"%URL%\".", - "nl": "Geen geldige URL\/entiteit voor metadata. De entity identifier moet een bestaande http: of https: URL zijn. De opgegeven URL was \"%URL%\".", - "sl": "Napa\u010den URL ali ID entitete, le-ta mora biti veljaven http ali https naslov. Posredovali ste naslednji URL: \"%URL%\".", - "da": "Ugyldig URL\/entitet ID i metadata. Entiteten b\u00f8r v\u00e6re p\u00e5 formen http: eller https:. URL'en du gav var \"%URL%\".", - "hr": "Neispravna adresa \/ identifikator entiteta za metapodatke. Identifikator entiteta treba biti valjani http: ili https: URL. URL koji ste zadali je \"%URL%\".", - "hu": "\u00c9rv\u00e9nytelen URL\/entit\u00e1s azonos\u00edt\u00f3. Az entit\u00e1s azonos\u00edt\u00f3j\u00e1nak \u00e9rv\u00e9nyes http: vagy https: protokollt haszn\u00e1l\u00f3 URL-nek kell lennie. A megadott URL ez volt: \"%URL%\".", - "pt-BR": "URL\/Identifica\u00e7\u00e3o da Entidade inv\u00e1lida para a metadata. A identifica\u00e7\u00e3o da entidade deve ser um endere\u00e7o http: ou https: v\u00e1lido. A URL passada foi \"%URL%\".", - "pt": "URL inv\u00e1lido. O identificador de entidade (entityID) deve ser um URL v\u00e1lido do tipo http: ou https:. O URL fornecido foi \"%URL%\".", - "pl": "Niepoprawny URL\/id jednostki. Identyfikator jednostki powinien by\u0107 poprawny http: lub https: URL. URL, kt\u00f3ry poda\u0142e\u015b by\u0142 \"%URL%\".", - "tr": "\u00dcstveriye ge\u00e7ersiz URL\/Birim kimlik nosu. Birim kimlik nosu ge\u00e7erli bir http: ya da https: URL'i olmal\u0131d\u0131r. Verdi\u011finiz URL \"%URL%\" idi.", - "de": "Ung\u00fcltige URL\/entity-ID zu den Metadaten. Die entity-ID sollte eine g\u00fcltige http: oder https: URL sein. Die URL, die Sie angegeben haben war \"%URL%\".", - "fr": "URL ou identifiant d'identit\u00e9 invalide. Un identifiant d'identit\u00e9 doit \u00eatre une URL valide en <i>http:\/\/<\/i> ou <i>https:\/\/<\/i>. L'URL que vous avez indiqu\u00e9 est \"%URL%\"." - }, - "addpage_nodownload": { - "no": "Er ikke i stand til \u00e5 laste ned metadata fra \"%URL%\".", - "nn": "Kunne ikkje lasta ned metadata fr\u00e5 \"%URL%\".", - "sv": "Kunde inte h\u00e4mta metadata fr\u00e5n \"%URL%\".", - "es": "No se pudo descargar los metadatos desde \"%URL%\".", - "nl": "Metadata van \"%URL%\" ophalen is niet gelukt.", - "sl": "Prenos metapodatkov z naslova \"%URL%\" ni mogo\u010d.", - "da": "Kunne ikke hente metadata fra \"%URL%\"", - "hr": "Ne mogu dohvatiti metapodatke s adrese \"%URL%\".", - "hu": "Nem lehet a metaadatokat let\u00f6lteni a(z) \"%URL%\" helyr\u0151l.", - "pt-BR": "N\u00e3o foi poss\u00edvel baixar a metadata de \"%URL%\".", - "pt": "N\u00e3o foi poss\u00edvel efectuar o download dos metadados a partir de \"%URL%\".", - "pl": "Nie mo\u017cna \u015bciagn\u0105\u0107 metadanych z adresu \"%URL%\".", - "tr": "\"%URL%\"den \u00fcstveri indirilemiyor.", - "de": "Nicht in der Lage, Metadaten von \"%URL%\" herunterzuladen.", - "fr": "Impossible d'obtenir les m\u00e9tadonn\u00e9es depuis \"%URL%\"." - }, - "addpage_invalidxml": { - "no": "Feilformattert XML i metadata. URL-en som metadata befant seg p\u00e5 var \"%URL%\".", - "nn": "Feil format p\u00e5 XML i metadata. URLen du oppgav var \"%URL%\".", - "sv": "Felaktigt formaterad XML i metadata. Adressen du angav var \"%URL%\".", - "es": "El XML con los metadatos no es un documento bien formado. La URL indicada fue \"%URL%\".", - "nl": "Ongeldige XML in metadata. De URL is: \"%URL%\".", - "sl": "Napaka v strukturi XML metapodatkov. URL, ki ste ga posredovali \"%URL%\".", - "da": "Ugyldig XML i metadata. URL'en du gav var \"%URL%\".", - "hr": "XML sadr\u017eaj u metapodacima je izobli\u010den. URL koji ste zadali je \"%URL%\".", - "hu": "Hib\u00e1s XML a metaadat-\u00e1llom\u00e1nyban. Az URL az al\u00e1bbi volt: \"%URL%\"", - "pt-BR": "XML incorreto na metadata. A URL passada foi \"%URL%\".", - "pt": "Metadados com XML mal formatado. O URL fornecido foi \"%URL%\".", - "pl": "Nieprawid\u0142owy XML w metadanych. URL, kt\u00f3ry poda\u0142e\u015b by\u0142 \"%URL%\".", - "tr": "\u00dcstveride kusurlu XML. Verdi\u011finiz URL \"%URL%\" idi.", - "de": "Ung\u00fcltiges XML in den Metadaten. Die URL, die Sie angegeben haben war \"%URL%\".", - "fr": "XML mal form\u00e9 dans les m\u00e9tadonn\u00e9es. L'URL que vous avez indiqu\u00e9 est \"%URL%\". " - } -} diff --git a/lib/SimpleSAML/MetaShare/Store.php b/lib/SimpleSAML/MetaShare/Store.php deleted file mode 100644 index 69ee45f5cd6aa93f70b3626bf666fc35a8a83053..0000000000000000000000000000000000000000 --- a/lib/SimpleSAML/MetaShare/Store.php +++ /dev/null @@ -1,184 +0,0 @@ -<?php - -/** - * This class contains accessor-functions for listing and manipulating - * the metadata which is stored by the MetaShare part of simpleSAMLphp. - * - * @author Olav Morken, UNINETT AS. - * @package simpleSAMLphp - * @version $Id$ - */ -class SimpleSAML_MetaShare_Store { - - /** - * The singleton instance of this class. - */ - private static $instance = NULL; - - - /** - * The directory we store metadata in. This path newer ends with a slash. - */ - private $metadataPath; - - - /** - * Initializes the SimpleSAML_MetaShare_Store object. Only called by the getInstance - * singleton accessor. - */ - private function __construct() { - $metaConfig = SimpleSAML_Configuration::getConfig('metashare.php'); - $this->metadataPath = $metaConfig->getString('metashare.path'); - $this->metadataPath = SimpleSAML_Utilities::resolvePath($this->metadataPath); - - if(!is_dir($this->metadataPath)) { - $ret = mkdir($this->metadataPath, 0755, TRUE); - if(!$ret) { - throw new Exception('Unable to create directory: ' . $this->metadataPath); - } - } - } - - - /** - * Singleton accessor for the SimpleSAML_MetaShare_Store object. Will create a new instance - * of the object if no instance exsists. If an instance already exists, this function will - * return that. - * - * @return The SimpleSAML_MetaShare_Store object. - */ - public static function getInstance() { - if(self::$instance === NULL) { - self::$instance = new self(); - } - - return self::$instance; - } - - - /** - * Get the filename (with path) for a given entity id. - * - * @param $entityId The entity id. - * @return The absolute path to where the file for the given entity id should be. - */ - private function entityIdToPath($entityId) { - assert('is_string($entityId)'); - - /* We urlencode the entity id to remove slashes and other troublesome characters. */ - return $this->metadataPath . '/' . urlencode($entityId) . '.xml'; - } - - - /** - * Get the entity id for a given path. - * - * @param $path The path to the file. We only look at the filename part of the path. - * @return The entity id that the path represents, or FALSE if we don't believe that it represents - * an entity id. - */ - private function pathToEntityId($path) { - assert('is_string($path)'); - - $filename = basename($path); - - /* The filename should end with '.xml' */ - if(substr($filename, -4) !== '.xml') { - return FALSE; - } - - $entityId = urldecode(substr($filename, 0, -4)); - return $entityId; - } - - - /** - * Add metadata to the metadata store. Will throw an exception if an error occurs. - * - * This function expects the metadata which is added to be valid. - * - * @param $metadata The metadata in the form of a DOMElement which represents the - * EntityDescriptor of the metadata. - */ - public function addMetadata($metadata) { - assert('$metadata instanceof DOMElement'); - assert('SimpleSAML_Utilities::isDOMElementOfType($metadata, "EntityDescriptor", "@md")'); - - /* We create a new DOMDocument from the metadata. This way we can manipulate it in any way - * we want, without affecting anything else. We can also enforce the character set of the - * resulting XML. - */ - $doc = new DOMDocument('1.0', 'utf-8'); - $metadata = $doc->importNode($metadata, TRUE); - $doc->appendChild($metadata); - - $entityId = $metadata->getAttribute('entityID'); - $filePath = $this->entityIdToPath($entityId); - - $xml = $doc->saveXML(); - if($xml === FALSE) { - throw new Exception('Unable to build XML string from metadata.'); - } - - /* Save it to the file. */ - $ret = file_put_contents($filePath, $xml); - if($ret === FALSE) { - throw new Exception('Unable to save the metadata to ' . $filePath); - } - } - - - /** - * Retrieve metadata from the metadata store. - * - * @param $entityId The entity id whose metadata we should find. - * @return The metadata as a DOMElement, or FALSE if we are unable to locate or load the given metadata. - */ - public function getMetadata($entityId) { - assert('is_string($entityId)'); - - $filePath = $this->entityIdToPath($entityId); - $xmlString = file_get_contents($filePath); - if($xmlString === FALSE) { - return FALSE; - } - - $doc = new DOMDocument(); - $ret = $doc->loadXML($xmlString); - if(!$ret) { - return FALSE; - } - - assert('SimpleSAML_Utilities::isDOMElementOfType($doc->firstChild, "EntityDescriptor", "@md")'); - return $doc->firstChild; - } - - - /** - * Retrieve a list of the entities which are stored in the MetaShare store. - * - * @return An array with the entity ids of all the entities which are stored in the - * MetaShare store. - */ - public function getEntityList() { - $entities = array(); - - $dir = opendir($this->metadataPath); - if($dir === FALSE) { - throw new Exception('Unable to open the MetaShare directory: ' . $this->metadataPath); - } - - while( ($name = readdir($dir)) !== FALSE) { - $entityId = $this->pathToEntityId($name); - if($entityId !== FALSE) { - $entities[] = $entityId; - } - } - - closedir($dir); - - return $entities; - } -} - -?> \ No newline at end of file diff --git a/modules/core/dictionaries/frontpage.definition.json b/modules/core/dictionaries/frontpage.definition.json index 11d385e4c3c954c1cbfd0d775b66ff3eca5cd037..d939b47644b42fe363d6ed02e6d7e36aab47c6d9 100644 --- a/modules/core/dictionaries/frontpage.definition.json +++ b/modules/core/dictionaries/frontpage.definition.json @@ -104,18 +104,6 @@ "link_cleardiscochoices": { "en": "Delete my choices of IdP in the IdP discovery services" }, - "link_publish_saml20-idp": { - "en": "Publish my SAML 2.0 IdP metadata to the configured MetaShare" - }, - "link_publish_saml20-sp": { - "en": "Publish my SAML 2.0 SP metadata to the configured MetaShare" - }, - "link_publish_shib13-idp": { - "en": "Publish my Shib 1.3 IdP metadata to the configured MetaShare" - }, - "link_publish_shib13-sp": { - "en": "Publish my Shib 1.3 SP metadata to the configured MetaShare" - }, "welcome": { "en": "Welcome" }, diff --git a/modules/core/www/frontpage_federation.php b/modules/core/www/frontpage_federation.php index dfefd2704de999a30979b62aec2c332893fa58ff..addf765d096cf77621c3cfa2cbe4042e2832ca89 100644 --- a/modules/core/www/frontpage_federation.php +++ b/modules/core/www/frontpage_federation.php @@ -35,26 +35,6 @@ if($config->getBoolean('idpdisco.enableremember', FALSE)) { ); } -$publishURL = $config->getString('metashare.publishurl', NULL); -if ($publishURL !== NULL) { - $metadataSources = array( - 'saml20-idp' => 'saml2/idp/metadata.php', - 'saml20-sp' => 'saml2/sp/metadata.php', - 'shib13-idp' => 'shib13/idp/metadata.php', - 'shib13-sp' => 'shib13/sp/metadata.php', - ); - foreach($metadataSources as $name => $url) { - if(!$config->getBoolean('enable.' . $name, FALSE)) continue; - - $url = SimpleSAML_Utilities::getBaseURL() . $url; - $linkTarget = SimpleSAML_Utilities::addURLparameter($publishURL, array('url' => $url)); - $links_federation[] = array( - 'href' => $linkTarget, - 'text' => '{core:frontpage:link_publish_' . $name . '}', - ); - } -} - $links_federation[] = array( 'href' => SimpleSAML_Utilities::getBaseURL() . 'admin/metadata-converter.php', diff --git a/templates/metashare-add.php b/templates/metashare-add.php deleted file mode 100644 index 9575dd0d1be5626429623e4859699f6e1441dab2..0000000000000000000000000000000000000000 --- a/templates/metashare-add.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php -$this->data['header'] = $this->t('addpage_header'); -$this->includeAtTemplateBase('includes/header.php'); - - -echo('<h2>' . $this->t('addpage_header') . '</h2>'); - -$url = $this->data['url']; -$status = $this->data['status']; - -$replaceurl = array('%URL%' => htmlspecialchars($this->data['url'])); - -echo('<p>' . $this->t('addpage_' . $status, $replaceurl) . '</p>'); - - -if(array_key_exists('errortext', $this->data)) { - echo('<pre>' . htmlspecialchars($this->data['errortext']) . '</pre>'); -} - -echo('<p><a href="index.php">' . $this->t('addpage_gofront') . '</a></p>'); - -$this->includeAtTemplateBase('includes/footer.php'); - -?> \ No newline at end of file diff --git a/templates/metashare-list.php b/templates/metashare-list.php deleted file mode 100644 index ffce4e62b2e39ca7a2454ff8130470515ff8476b..0000000000000000000000000000000000000000 --- a/templates/metashare-list.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -$this->data['header'] = $this->t('front_header'); -$this->includeAtTemplateBase('includes/header.php'); - - -echo('<h2>' . $this->t('front_header') . '</h2>'); -echo('<p>' . $this->t('front_desc') . '</p>'); - -echo('<h3>' . $this->t('add_title') . '</h3>'); -echo('<p>' . $this->t('add_desc') . '</p>'); -echo('<form action="add.php">'); -echo('<p>'); -echo($this->t('add_entityid') . '<br/>'); -echo('<input type="text" name="url" size="70" />'); -echo('<input type="submit" value="' . $this->t('add_do') . '" />'); -echo('</p>'); -echo('</form>'); - -echo('<h3>' . $this->t('entities_title') . '</h3>'); -if(count($this->data['entities']) > 0) { - echo('<p>' . $this->t('downloadall_desc') . '</p>'); - echo('<p><a href="downloadall.php">' . $this->t('downloadall_link') . - '</a> [<a href="downloadall.php?mimetype=text/plain">' . $this->t('text') . '</a>]</p>'); - echo('<p>' . $this->t('entities_desc') . '</p>'); - echo('<ul>'); - foreach($this->data['entities'] as $entityId) { - $dllink = 'download.php?entityid=' . urlencode($entityId); - echo('<li>'); - echo('<a href="' . htmlspecialchars($dllink) . '">' . - htmlspecialchars($entityId) . '</a>'); - echo(' [<a href="' . htmlspecialchars($dllink . '&mimetype=text/plain') . '">' . - $this->t('text') . '</a>]'); - echo('</li>'); - } - echo('</ul>'); -} else { - echo('<p>' . $this->t('entities_empty') . '</p>'); -} - -$this->includeAtTemplateBase('includes/footer.php'); -?> \ No newline at end of file diff --git a/www/metashare/add.php b/www/metashare/add.php deleted file mode 100644 index bd42b2cf284442f5fac3f07d9b4628729c65613a..0000000000000000000000000000000000000000 --- a/www/metashare/add.php +++ /dev/null @@ -1,104 +0,0 @@ -<?php - -require_once('../_include.php'); - -/** - * This page handles adding of metadata. - */ - -$config = SimpleSAML_Configuration::getInstance(); -$metaConfig = SimpleSAML_Configuration::getConfig('metashare.php'); - -if(!$metaConfig->getBoolean('metashare.enable', FALSE)) { - header('HTTP/1.0 401 Forbidden'); - $session = SimpleSAML_Session::getInstance(); - SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOACCESS'); -} - -$store = SimpleSAML_MetaShare_Store::getInstance(); -$t = new SimpleSAML_XHTML_Template($config, 'metashare-add.php', 'metashare'); - - -if(!array_key_exists('url', $_GET) || empty($_GET['url'])) { - $t->data['url'] = NULL; - $t->data['status'] = 'nourl'; - $t->show(); - exit; -} - -$url = $_GET['url']; -$t->data['url'] = $url; - -/* We accept http or https URLs */ -if(substr($url, 0, 7) !== 'http://' && substr($url, 0, 8) !== 'https://') { - $t->data['status'] = 'invalidurl'; - $t->show(); - exit(); -} - -/* Attempt to download the metadata. */ -$metadata = file_get_contents($url); -if($metadata === FALSE) { - $t->data['status'] = 'nodownload'; - $t->show(); - exit(); -} - -/* Load the metadata into an XML document. */ -SimpleSAML_XML_Errors::begin(); -$doc = new DOMDocument(); -$doc->validateOnParse = FALSE; -$doc->strictErrorChecking = TRUE; -try { - $ok = $doc->loadXML($metadata); - if($ok !== TRUE) { - $doc = NULL; - } -} catch(DOMException $e) { - $doc = NULL; -} -$errors = SimpleSAML_XML_Errors::end(); -if($doc === NULL || count($errors) > 0) { - $t->data['status'] = 'invalidxml'; - $t->data['errortext'] = SimpleSAML_XML_Errors::formatErrors($errors); - $t->show(); - exit(); -} -$metadata = $doc->firstChild; - -/* Check that the metadata is an EntityDescriptor */ -if(!SimpleSAML_Utilities::isDOMElementOfType($metadata, 'EntityDescriptor', '@md')) { - $t->data['status'] = 'notentitydescriptor'; - $t->show(); - exit(); -} - -/* Check that the entity id of the metadata matches the URL. */ -$entityId = $metadata->getAttribute('entityID'); -if($entityId !== $url) { - $t->data['status'] = 'entityid'; - $t->data['errortext'] = 'Entity id: ' . $entityId . "\n" . 'URL: ' . $url . "\n"; - $t->show(); - exit(); -} - -/* Validate the metadata against the metadata schema (if enabled). */ -if($metaConfig->getBoolean('metashare.validateschema')) { - $errors = SimpleSAML_Utilities::validateXML($doc, 'saml-schema-metadata-2.0.xsd'); - if($errors !== '') { - $t->data['status'] = 'validation'; - $t->data['errortext'] = $errors; - $t->show(); - exit(); - } -} - - -/* Add the metadata to the metadata store. */ -$store->addMetadata($metadata); - -$t->data['status'] = 'ok'; -$t->show(); -exit(); - -?> \ No newline at end of file diff --git a/www/metashare/download.php b/www/metashare/download.php deleted file mode 100644 index b509caee88af6c410d5676ed4c2488b3d9e546ce..0000000000000000000000000000000000000000 --- a/www/metashare/download.php +++ /dev/null @@ -1,68 +0,0 @@ -<?php - -require_once('../_include.php'); - -/** - * This page handles downloading of single metadata entries from the MetaShare. - */ - -$metaConfig = SimpleSAML_Configuration::getConfig('metashare.php'); - -if(!$metaConfig->getBoolean('metashare.enable', FALSE)) { - header('HTTP/1.0 401 Forbidden'); - header('Content-Type: text/plain'); - - echo("The MetaShare service is disabled.\n"); - exit(); -} - -/** - * This function shows a minimal 404 Not Found page. - * - * This function newer returns. - * - * @param $entityId The entity identifier which was not found. Can be NULL, - */ -function showNotFound($entityId) { - - header('HTTP/1.0 404 Not Found'); - header('Content-Type: text/plain'); - - echo("Could not find the given entity id.\n"); - - - if($entityId === NULL) { - echo("No entity id given.\n"); - } else { - echo('Entity id: ' . $entityId . "\n"); - } - - exit(); -} - - -if(!array_key_exists('entityid', $_GET)) { - showNotFound(NULL); -} -$entityId = $_GET['entityid']; - - -/* Load the metadata. */ -$store = SimpleSAML_MetaShare_Store::getInstance(); -$metadata = $store->getMetadata($entityId); -if($metadata === FALSE) { - showNotFound($entityId); -} - - -/* Show the metadata. */ -if(array_key_exists('mimetype', $_GET)) { - $mimeType = $_GET['mimetype']; -} else { - $mimeType = 'application/samlmetadata+xml'; -} -header('Content-Type: ' . $mimeType); - -echo($metadata->ownerDocument->saveXML($metadata)); - -?> \ No newline at end of file diff --git a/www/metashare/downloadall.php b/www/metashare/downloadall.php deleted file mode 100644 index c4a4a1421f2670f960da18f16d528602718149fa..0000000000000000000000000000000000000000 --- a/www/metashare/downloadall.php +++ /dev/null @@ -1,66 +0,0 @@ -<?php - -require_once('../_include.php'); - -/** - * This page handles downloading of all metadata entries from the MetaShare. - */ - -$metaConfig = SimpleSAML_Configuration::getConfig('metashare.php'); - -if(!$metaConfig->getBoolean('metashare.enable', FALSE)) { - header('HTTP/1.0 401 Forbidden'); - header('Content-Type: text/plain'); - - echo("The MetaShare service is disabled.\n"); - exit(); -} - -/* Build EntitiesDescriptor. */ - -$doc = new DOMDocument('1.0', 'utf-8'); -$root = $doc->createElementNS('urn:oasis:names:tc:SAML:2.0:metadata', 'EntitiesDescriptor'); -$doc->appendChild($root); - -$store = SimpleSAML_MetaShare_Store::getInstance(); -foreach($store->getEntityList() as $entityId) { - $entityNode = $store->getMetadata($entityId); - if($entityNode === FALSE) { - /* For some reason we were unable to load the metadata - skip entity. */ - continue; - } - - $entityNode = $doc->importNode($entityNode, TRUE); - assert($entityNode !== FALSE); - - $root->appendChild($entityNode); -} - - -/* Sign the metadata if enabled. */ -if($metaConfig->getBoolean('metashare.signmetadatalist', FALSE)) { - $privateKey = $metaConfig->getString('metashare.privatekey'); - $privateKeyPass = $metaConfig->getString('metashare.privatekey_pass', NULL); - $certificate = $metaConfig->getString('metashare.certificate'); - - $signer = new SimpleSAML_XML_Signer(array( - 'privatekey' => $privateKey, - 'privatekey_pass' => $privateKeyPass, - 'certificate' => $certificate, - 'id' => 'ID', - )); - $signer->sign($root, $root, $root->firstChild); -} - - -/* Show the metadata. */ -if(array_key_exists('mimetype', $_GET)) { - $mimeType = $_GET['mimetype']; -} else { - $mimeType = 'application/samlmetadata+xml'; -} -header('Content-Type: ' . $mimeType); - -echo($doc->saveXML()); - -?> \ No newline at end of file diff --git a/www/metashare/index.php b/www/metashare/index.php deleted file mode 100644 index 759194c863fae6007017bb6d7a3218f3b113ae06..0000000000000000000000000000000000000000 --- a/www/metashare/index.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php - -require_once('../_include.php'); - -/** - * This page lists all metadata currently stored in the MetaShare store. - */ - -$config = SimpleSAML_Configuration::getInstance(); -$metaConfig = SimpleSAML_Configuration::getConfig('metashare.php'); - -if(!$metaConfig->getBoolean('metashare.enable', FALSE)) { - header('HTTP/1.0 401 Forbidden'); - $session = SimpleSAML_Session::getInstance(); - SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOACCESS'); -} - -$store = SimpleSAML_MetaShare_Store::getInstance(); -$entities = $store->getEntityList(); - -$t = new SimpleSAML_XHTML_Template($config, 'metashare-list.php', 'metashare'); -$t->data['entities'] = $entities; -$t->show(); -exit; - - -?> \ No newline at end of file