Edgard 3 лет назад
Родитель
Сommit
4a8fedc486
6 измененных файлов с 221 добавлено и 179 удалено
  1. 2 2
      composer.json
  2. 57 52
      locales/en_GB.po
  3. 59 47
      locales/fr_FR.po
  4. 51 30
      locales/pt_BR.po
  5. 51 47
      locales/singlesignon.pot
  6. 1 1
      setup.php

+ 2 - 2
composer.json

@@ -11,8 +11,8 @@
     "scripts": {
     "scripts": {
         "lint": "phpcs",
         "lint": "phpcs",
         "lint:fix": "phpcbf",
         "lint:fix": "phpcbf",
-        "make-release": "@php tools/make-release.php",
-        "update-locales": "@php tools/update-locales.php"
+        "make-release": "robo build",
+        "update-locales": "robo update_locales"
     },
     },
     "config": {
     "config": {
         "allow-plugins": {
         "allow-plugins": {

+ 57 - 52
locales/en_GB.po

@@ -1,14 +1,15 @@
 # English translations for singlesignon package.
 # English translations for singlesignon package.
-# Copyright (C) 2021 THE singlesignon'S COPYRIGHT HOLDER
+# Copyright (C) 2022 THE singlesignon'S COPYRIGHT HOLDER
 # This file is distributed under the same license as the singlesignon package.
 # This file is distributed under the same license as the singlesignon package.
-# Automatically generated, 2021.
+# Automatically generated, 2022.
 #
 #
 msgid ""
 msgid ""
 msgstr ""
 msgstr ""
-"Project-Id-Version: singlesignon 1.3.1\n"
-"Report-Msgid-Bugs-To: https://github.com/edgardmessias/glpi-singlesignon/issues\n"
-"POT-Creation-Date: 2021-03-17 09:30-0300\n"
-"PO-Revision-Date: 2022-03-23 14:36+0100\n"
+"Project-Id-Version: singlesignon 1.3.2\n"
+"Report-Msgid-Bugs-To: https://github.com/edgardmessias/glpi-singlesignon/"
+"issues\n"
+"POT-Creation-Date: 2022-06-28 23:02-0300\n"
+"PO-Revision-Date: 2022-06-28 23:02-0300\n"
 "Last-Translator: Automatically generated\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
 "Language-Team: none\n"
 "Language: en_GB\n"
 "Language: en_GB\n"
@@ -16,7 +17,6 @@ msgstr ""
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: Poedit 3.0.1\n"
 
 
 #: front/callback.php:15
 #: front/callback.php:15
 msgid "Provider not defined."
 msgid "Provider not defined."
@@ -31,11 +31,12 @@ msgid "Provider not active."
 msgstr "Provider not active."
 msgstr "Provider not active."
 
 
 #: front/provider.form.php:61 front/provider.form.php:63 front/provider.php:8
 #: front/provider.form.php:61 front/provider.form.php:63 front/provider.php:8
-#: front/provider.php:10 inc/preference.class.php:64 inc/provider.class.php:57 setup.php:40
+#: front/provider.php:10 inc/preference.class.php:64 inc/provider.class.php:59
+#: setup.php:40
 msgid "Single Sign-on"
 msgid "Single Sign-on"
 msgstr "Single Sign-on"
 msgstr "Single Sign-on"
 
 
-#: inc/preference.class.php:147 inc/provider.class.php:50
+#: inc/preference.class.php:147 inc/provider.class.php:52
 msgid "Single Sign-on Provider"
 msgid "Single Sign-on Provider"
 msgstr "Single Sign-on Provider"
 msgstr "Single Sign-on Provider"
 
 
@@ -43,112 +44,132 @@ msgstr "Single Sign-on Provider"
 msgid "Linked accounts"
 msgid "Linked accounts"
 msgstr "Linked accounts"
 msgstr "Linked accounts"
 
 
-#: inc/provider.class.php:98
+#: inc/provider.class.php:100
 msgid "SSO Type"
 msgid "SSO Type"
 msgstr "SSO Type"
 msgstr "SSO Type"
 
 
-#: inc/provider.class.php:106 inc/provider.class.php:423
+#: inc/provider.class.php:108 inc/provider.class.php:445
 msgid "Client ID"
 msgid "Client ID"
 msgstr "Client ID"
 msgstr "Client ID"
 
 
-#: inc/provider.class.php:108 inc/provider.class.php:431
+#: inc/provider.class.php:110 inc/provider.class.php:453
 msgid "Client Secret"
 msgid "Client Secret"
 msgstr "Client Secret"
 msgstr "Client Secret"
 
 
-#: inc/provider.class.php:113 inc/provider.class.php:439
+#: inc/provider.class.php:121 inc/provider.class.php:461
 msgid "Scope"
 msgid "Scope"
 msgstr "Scope"
 msgstr "Scope"
 
 
-#: inc/provider.class.php:115 inc/provider.class.php:447
+#: inc/provider.class.php:123 inc/provider.class.php:469
 msgid "Extra Options"
 msgid "Extra Options"
 msgstr "Extra Options"
 msgstr "Extra Options"
 
 
-#: inc/provider.class.php:126 inc/provider.class.php:455
+#: inc/provider.class.php:128 inc/provider.class.php:477
 msgid "Authorize URL"
 msgid "Authorize URL"
 msgstr "Authorize URL"
 msgstr "Authorize URL"
 
 
-#: inc/provider.class.php:131 inc/provider.class.php:463
+#: inc/provider.class.php:133 inc/provider.class.php:485
 msgid "Access Token URL"
 msgid "Access Token URL"
 msgstr "Access Token URL"
 msgstr "Access Token URL"
 
 
-#: inc/provider.class.php:136 inc/provider.class.php:471
+#: inc/provider.class.php:138 inc/provider.class.php:493
 msgid "Resource Owner Details URL"
 msgid "Resource Owner Details URL"
 msgstr "Resource Owner Details URL"
 msgstr "Resource Owner Details URL"
 
 
-#: inc/provider.class.php:224
+#: inc/provider.class.php:145
+msgid "PopupAuth"
+msgstr "PopupAuth"
+
+#: inc/provider.class.php:151
+msgid "SplitDomain"
+msgstr "SplitDomain"
+
+#: inc/provider.class.php:155
+msgid "AuthorizedDomains"
+msgstr "AuthorizedDomains"
+
+#: inc/provider.class.php:157
+msgid "AuthorizedDomainsTooltip"
+msgstr "AuthorizedDomainsTooltip"
+
+#: inc/provider.class.php:246
 msgid "Callback URL"
 msgid "Callback URL"
 msgstr "Callback URL"
 msgstr "Callback URL"
 
 
-#: inc/provider.class.php:228
+#: inc/provider.class.php:250
 msgid "Test Single Sign-on"
 msgid "Test Single Sign-on"
 msgstr "Test Single Sign-on"
 msgstr "Test Single Sign-on"
 
 
-#: inc/provider.class.php:286
+#: inc/provider.class.php:308
 msgid "A Name is required"
 msgid "A Name is required"
 msgstr "A Name is required"
 msgstr "A Name is required"
 
 
-#: inc/provider.class.php:292
+#: inc/provider.class.php:314
 #, php-format
 #, php-format
 msgid "The \"%s\" is a Invalid type"
 msgid "The \"%s\" is a Invalid type"
 msgstr "The \"%s\" is a Invalid type"
 msgstr "The \"%s\" is a Invalid type"
 
 
-#: inc/provider.class.php:296
+#: inc/provider.class.php:318
 msgid "A Client ID is required"
 msgid "A Client ID is required"
 msgstr "A Client ID is required"
 msgstr "A Client ID is required"
 
 
-#: inc/provider.class.php:300
+#: inc/provider.class.php:322
 msgid "A Client Secret is required"
 msgid "A Client Secret is required"
 msgstr "A Client Secret is required"
 msgstr "A Client Secret is required"
 
 
-#: inc/provider.class.php:305
+#: inc/provider.class.php:327
 msgid "An Authorize URL is required"
 msgid "An Authorize URL is required"
 msgstr "An Authorize URL is required"
 msgstr "An Authorize URL is required"
 
 
-#: inc/provider.class.php:307
+#: inc/provider.class.php:329
 msgid "The Authorize URL is invalid"
 msgid "The Authorize URL is invalid"
 msgstr "The Authorize URL is invalid"
 msgstr "The Authorize URL is invalid"
 
 
-#: inc/provider.class.php:311
+#: inc/provider.class.php:333
 msgid "An Access Token URL is required"
 msgid "An Access Token URL is required"
 msgstr "An Access Token URL is required"
 msgstr "An Access Token URL is required"
 
 
-#: inc/provider.class.php:313
+#: inc/provider.class.php:335
 msgid "The Access Token URL is invalid"
 msgid "The Access Token URL is invalid"
 msgstr "The Access Token URL is invalid"
 msgstr "The Access Token URL is invalid"
 
 
-#: inc/provider.class.php:317
+#: inc/provider.class.php:339
 msgid "A Resource Owner Details URL is required"
 msgid "A Resource Owner Details URL is required"
 msgstr "A Resource Owner Details URL is required"
 msgstr "A Resource Owner Details URL is required"
 
 
-#: inc/provider.class.php:319
+#: inc/provider.class.php:341
 msgid "The Resource Owner Details URL is invalid"
 msgid "The Resource Owner Details URL is invalid"
 msgstr "The Resource Owner Details URL is invalid"
 msgstr "The Resource Owner Details URL is invalid"
 
 
-#: inc/provider.class.php:530
+#: inc/provider.class.php:552
 msgid "Generic"
 msgid "Generic"
 msgstr "Generic"
 msgstr "Generic"
 
 
-#: inc/provider.class.php:531
+#: inc/provider.class.php:553
+msgid "Azure"
+msgstr "Azure"
+
+#: inc/provider.class.php:554
 msgid "Facebook"
 msgid "Facebook"
 msgstr "Facebook"
 msgstr "Facebook"
 
 
-#: inc/provider.class.php:532
+#: inc/provider.class.php:555
 msgid "GitHub"
 msgid "GitHub"
 msgstr "GitHub"
 msgstr "GitHub"
 
 
-#: inc/provider.class.php:533
+#: inc/provider.class.php:556
 msgid "Google"
 msgid "Google"
 msgstr "Google"
 msgstr "Google"
 
 
-#: inc/provider.class.php:534
+#: inc/provider.class.php:557
 msgid "Instagram"
 msgid "Instagram"
 msgstr "Instagram"
 msgstr "Instagram"
 
 
-#: inc/provider.class.php:535
+#: inc/provider.class.php:558
 msgid "LinkdeIn"
 msgid "LinkdeIn"
 msgstr "LinkdeIn"
 msgstr "LinkdeIn"
 
 
-#: inc/toolbox.class.php:154
+#: inc/toolbox.class.php:166
 #, php-format
 #, php-format
 msgid "Login with %s"
 msgid "Login with %s"
 msgstr "Login with %s"
 msgstr "Login with %s"
@@ -161,19 +182,3 @@ msgstr "Please, rename the plugin folder \"%s\" to \"singlesignon\""
 #: setup.php:57
 #: setup.php:57
 msgid "This plugin requires GLPI >= 0.85"
 msgid "This plugin requires GLPI >= 0.85"
 msgstr "This plugin requires GLPI >= 0.85"
 msgstr "This plugin requires GLPI >= 0.85"
-
-#: inc/provider.class.php:141
-msgid "IsDefault"
-msgstr "Default Authentication"
-
-msgid "PopupAuth"
-msgstr "Authentication through a Pop-up"
-
-msgid "SplitDomain"
-msgstr "Do not take into account the domain for the matching with the GLPI user identifier"
-
-msgid "AuthorizedDomains"
-msgstr "Authorized domains"
-
-msgid "AuthorizedDomainsTooltip"
-msgstr "Allowed domains separated by ','. Empty : all domains are allowed"

+ 59 - 47
locales/fr_FR.po

@@ -6,12 +6,13 @@
 msgid ""
 msgid ""
 msgstr ""
 msgstr ""
 "Project-Id-Version: singlesignon 1.3.1\n"
 "Project-Id-Version: singlesignon 1.3.1\n"
-"Report-Msgid-Bugs-To: https://github.com/edgardmessias/glpi-singlesignon/issues\n"
-"POT-Creation-Date: 2021-03-17 09:30-0300\n"
+"Report-Msgid-Bugs-To: https://github.com/edgardmessias/glpi-singlesignon/"
+"issues\n"
+"POT-Creation-Date: 2022-06-28 23:01-0300\n"
 "PO-Revision-Date: 2022-03-23 14:35+0100\n"
 "PO-Revision-Date: 2022-03-23 14:35+0100\n"
 "Last-Translator: Automatically generated\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
 "Language-Team: none\n"
-"Language: en_GB\n"
+"Language: fr_FR\n"
 "MIME-Version: 1.0\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Content-Transfer-Encoding: 8bit\n"
@@ -31,12 +32,12 @@ msgid "Provider not active."
 msgstr "Provider not active."
 msgstr "Provider not active."
 
 
 #: front/provider.form.php:61 front/provider.form.php:63 front/provider.php:8
 #: front/provider.form.php:61 front/provider.form.php:63 front/provider.php:8
-#: front/provider.php:10 inc/preference.class.php:64 inc/provider.class.php:57
+#: front/provider.php:10 inc/preference.class.php:64 inc/provider.class.php:59
 #: setup.php:40
 #: setup.php:40
 msgid "Single Sign-on"
 msgid "Single Sign-on"
 msgstr "Single Sign-on"
 msgstr "Single Sign-on"
 
 
-#: inc/preference.class.php:147 inc/provider.class.php:50
+#: inc/preference.class.php:147 inc/provider.class.php:52
 msgid "Single Sign-on Provider"
 msgid "Single Sign-on Provider"
 msgstr "Single Sign-on Provider"
 msgstr "Single Sign-on Provider"
 
 
@@ -44,112 +45,136 @@ msgstr "Single Sign-on Provider"
 msgid "Linked accounts"
 msgid "Linked accounts"
 msgstr "Linked accounts"
 msgstr "Linked accounts"
 
 
-#: inc/provider.class.php:98
+#: inc/provider.class.php:100
 msgid "SSO Type"
 msgid "SSO Type"
 msgstr "SSO Type"
 msgstr "SSO Type"
 
 
-#: inc/provider.class.php:106 inc/provider.class.php:423
+#: inc/provider.class.php:108 inc/provider.class.php:445
 msgid "Client ID"
 msgid "Client ID"
 msgstr "Client ID"
 msgstr "Client ID"
 
 
-#: inc/provider.class.php:108 inc/provider.class.php:431
+#: inc/provider.class.php:110 inc/provider.class.php:453
 msgid "Client Secret"
 msgid "Client Secret"
 msgstr "Client Secret"
 msgstr "Client Secret"
 
 
-#: inc/provider.class.php:113 inc/provider.class.php:439
+#: inc/provider.class.php:121 inc/provider.class.php:461
 msgid "Scope"
 msgid "Scope"
 msgstr "Scope"
 msgstr "Scope"
 
 
-#: inc/provider.class.php:115 inc/provider.class.php:447
+#: inc/provider.class.php:123 inc/provider.class.php:469
 msgid "Extra Options"
 msgid "Extra Options"
 msgstr "Extra Options"
 msgstr "Extra Options"
 
 
-#: inc/provider.class.php:126 inc/provider.class.php:455
+#: inc/provider.class.php:128 inc/provider.class.php:477
 msgid "Authorize URL"
 msgid "Authorize URL"
 msgstr "Authorize URL"
 msgstr "Authorize URL"
 
 
-#: inc/provider.class.php:131 inc/provider.class.php:463
+#: inc/provider.class.php:133 inc/provider.class.php:485
 msgid "Access Token URL"
 msgid "Access Token URL"
 msgstr "Access Token URL"
 msgstr "Access Token URL"
 
 
-#: inc/provider.class.php:136 inc/provider.class.php:471
+#: inc/provider.class.php:138 inc/provider.class.php:493
 msgid "Resource Owner Details URL"
 msgid "Resource Owner Details URL"
 msgstr "Resource Owner Details URL"
 msgstr "Resource Owner Details URL"
 
 
-#: inc/provider.class.php:224
+#: inc/provider.class.php:145
+msgid "PopupAuth"
+msgstr "Authentification via Pop-up"
+
+#: inc/provider.class.php:151
+msgid "SplitDomain"
+msgstr ""
+"Ne pas prendre en compte le domaine pour la correspondance de l'identifiant "
+"GLPI"
+
+#: inc/provider.class.php:155
+msgid "AuthorizedDomains"
+msgstr "Domaines autorisés"
+
+#: inc/provider.class.php:157
+msgid "AuthorizedDomainsTooltip"
+msgstr ""
+"Domaines autorisés séparés par des ','. Vide : tous les domaines sont "
+"autorisés"
+
+#: inc/provider.class.php:246
 msgid "Callback URL"
 msgid "Callback URL"
 msgstr "Callback URL"
 msgstr "Callback URL"
 
 
-#: inc/provider.class.php:228
+#: inc/provider.class.php:250
 msgid "Test Single Sign-on"
 msgid "Test Single Sign-on"
 msgstr "Test Single Sign-on"
 msgstr "Test Single Sign-on"
 
 
-#: inc/provider.class.php:286
+#: inc/provider.class.php:308
 msgid "A Name is required"
 msgid "A Name is required"
 msgstr "A Name is required"
 msgstr "A Name is required"
 
 
-#: inc/provider.class.php:292
+#: inc/provider.class.php:314
 #, php-format
 #, php-format
 msgid "The \"%s\" is a Invalid type"
 msgid "The \"%s\" is a Invalid type"
 msgstr "The \"%s\" is a Invalid type"
 msgstr "The \"%s\" is a Invalid type"
 
 
-#: inc/provider.class.php:296
+#: inc/provider.class.php:318
 msgid "A Client ID is required"
 msgid "A Client ID is required"
 msgstr "A Client ID is required"
 msgstr "A Client ID is required"
 
 
-#: inc/provider.class.php:300
+#: inc/provider.class.php:322
 msgid "A Client Secret is required"
 msgid "A Client Secret is required"
 msgstr "A Client Secret is required"
 msgstr "A Client Secret is required"
 
 
-#: inc/provider.class.php:305
+#: inc/provider.class.php:327
 msgid "An Authorize URL is required"
 msgid "An Authorize URL is required"
 msgstr "An Authorize URL is required"
 msgstr "An Authorize URL is required"
 
 
-#: inc/provider.class.php:307
+#: inc/provider.class.php:329
 msgid "The Authorize URL is invalid"
 msgid "The Authorize URL is invalid"
 msgstr "The Authorize URL is invalid"
 msgstr "The Authorize URL is invalid"
 
 
-#: inc/provider.class.php:311
+#: inc/provider.class.php:333
 msgid "An Access Token URL is required"
 msgid "An Access Token URL is required"
 msgstr "An Access Token URL is required"
 msgstr "An Access Token URL is required"
 
 
-#: inc/provider.class.php:313
+#: inc/provider.class.php:335
 msgid "The Access Token URL is invalid"
 msgid "The Access Token URL is invalid"
 msgstr "The Access Token URL is invalid"
 msgstr "The Access Token URL is invalid"
 
 
-#: inc/provider.class.php:317
+#: inc/provider.class.php:339
 msgid "A Resource Owner Details URL is required"
 msgid "A Resource Owner Details URL is required"
 msgstr "A Resource Owner Details URL is required"
 msgstr "A Resource Owner Details URL is required"
 
 
-#: inc/provider.class.php:319
+#: inc/provider.class.php:341
 msgid "The Resource Owner Details URL is invalid"
 msgid "The Resource Owner Details URL is invalid"
 msgstr "The Resource Owner Details URL is invalid"
 msgstr "The Resource Owner Details URL is invalid"
 
 
-#: inc/provider.class.php:530
+#: inc/provider.class.php:552
 msgid "Generic"
 msgid "Generic"
 msgstr "Generic"
 msgstr "Generic"
 
 
-#: inc/provider.class.php:531
+#: inc/provider.class.php:553
+msgid "Azure"
+msgstr ""
+
+#: inc/provider.class.php:554
 msgid "Facebook"
 msgid "Facebook"
 msgstr "Facebook"
 msgstr "Facebook"
 
 
-#: inc/provider.class.php:532
+#: inc/provider.class.php:555
 msgid "GitHub"
 msgid "GitHub"
 msgstr "GitHub"
 msgstr "GitHub"
 
 
-#: inc/provider.class.php:533
+#: inc/provider.class.php:556
 msgid "Google"
 msgid "Google"
 msgstr "Google"
 msgstr "Google"
 
 
-#: inc/provider.class.php:534
+#: inc/provider.class.php:557
 msgid "Instagram"
 msgid "Instagram"
 msgstr "Instagram"
 msgstr "Instagram"
 
 
-#: inc/provider.class.php:535
+#: inc/provider.class.php:558
 msgid "LinkdeIn"
 msgid "LinkdeIn"
 msgstr "LinkdeIn"
 msgstr "LinkdeIn"
 
 
-#: inc/toolbox.class.php:154
+#: inc/toolbox.class.php:166
 #, php-format
 #, php-format
 msgid "Login with %s"
 msgid "Login with %s"
 msgstr "Se connecter avec %s"
 msgstr "Se connecter avec %s"
@@ -163,18 +188,5 @@ msgstr "Please, rename the plugin folder \"%s\" to \"singlesignon\""
 msgid "This plugin requires GLPI >= 0.85"
 msgid "This plugin requires GLPI >= 0.85"
 msgstr "This plugin requires GLPI >= 0.85"
 msgstr "This plugin requires GLPI >= 0.85"
 
 
-#: inc/provider.class.php:141
-msgid "IsDefault"
-msgstr "Authentification par défaut"
-
-msgid "PopupAuth"
-msgstr "Authentification via Pop-up"
-
-msgid "SplitDomain"
-msgstr "Ne pas prendre en compte le domaine pour la correspondance de l'identifiant GLPI"
-
-msgid "AuthorizedDomains"
-msgstr "Domaines autorisés"
-
-msgid "AuthorizedDomainsTooltip"
-msgstr "Domaines autorisés séparés par des ','. Vide : tous les domaines sont autorisés"
+#~ msgid "IsDefault"
+#~ msgstr "Authentification par défaut"

+ 51 - 30
locales/pt_BR.po

@@ -8,7 +8,7 @@ msgstr ""
 "Project-Id-Version: singlesignon 1.0.0\n"
 "Project-Id-Version: singlesignon 1.0.0\n"
 "Report-Msgid-Bugs-To: https://github.com/edgardmessias/glpi-singlesignon/"
 "Report-Msgid-Bugs-To: https://github.com/edgardmessias/glpi-singlesignon/"
 "issues\n"
 "issues\n"
-"POT-Creation-Date: 2021-01-23 15:50-0300\n"
+"POT-Creation-Date: 2022-06-28 23:01-0300\n"
 "PO-Revision-Date: 2019-04-26 11:04-0300\n"
 "PO-Revision-Date: 2019-04-26 11:04-0300\n"
 "Last-Translator: Edgard Lorraine Messias <edgardmessias@gmail.com>\n"
 "Last-Translator: Edgard Lorraine Messias <edgardmessias@gmail.com>\n"
 "Language-Team: none\n"
 "Language-Team: none\n"
@@ -31,12 +31,12 @@ msgid "Provider not active."
 msgstr "Provedor não ativo."
 msgstr "Provedor não ativo."
 
 
 #: front/provider.form.php:61 front/provider.form.php:63 front/provider.php:8
 #: front/provider.form.php:61 front/provider.form.php:63 front/provider.php:8
-#: front/provider.php:10 inc/preference.class.php:64 inc/provider.class.php:57
+#: front/provider.php:10 inc/preference.class.php:64 inc/provider.class.php:59
 #: setup.php:40
 #: setup.php:40
 msgid "Single Sign-on"
 msgid "Single Sign-on"
 msgstr "Logon Único"
 msgstr "Logon Único"
 
 
-#: inc/preference.class.php:147 inc/provider.class.php:50
+#: inc/preference.class.php:147 inc/provider.class.php:52
 msgid "Single Sign-on Provider"
 msgid "Single Sign-on Provider"
 msgstr "Provedor de Logon Único"
 msgstr "Provedor de Logon Único"
 
 
@@ -44,112 +44,133 @@ msgstr "Provedor de Logon Único"
 msgid "Linked accounts"
 msgid "Linked accounts"
 msgstr "Contas vinculadas"
 msgstr "Contas vinculadas"
 
 
-#: inc/provider.class.php:98
+#: inc/provider.class.php:100
 msgid "SSO Type"
 msgid "SSO Type"
 msgstr "Tipo SSO"
 msgstr "Tipo SSO"
 
 
-#: inc/provider.class.php:106 inc/provider.class.php:423
+#: inc/provider.class.php:108 inc/provider.class.php:445
 msgid "Client ID"
 msgid "Client ID"
 msgstr "ID de Cliente"
 msgstr "ID de Cliente"
 
 
-#: inc/provider.class.php:108 inc/provider.class.php:431
+#: inc/provider.class.php:110 inc/provider.class.php:453
 msgid "Client Secret"
 msgid "Client Secret"
 msgstr "Segredo do Cliente"
 msgstr "Segredo do Cliente"
 
 
-#: inc/provider.class.php:113 inc/provider.class.php:439
+#: inc/provider.class.php:121 inc/provider.class.php:461
 msgid "Scope"
 msgid "Scope"
 msgstr "Escopo"
 msgstr "Escopo"
 
 
-#: inc/provider.class.php:115 inc/provider.class.php:447
+#: inc/provider.class.php:123 inc/provider.class.php:469
 msgid "Extra Options"
 msgid "Extra Options"
 msgstr "Opções Extras"
 msgstr "Opções Extras"
 
 
-#: inc/provider.class.php:126 inc/provider.class.php:455
+#: inc/provider.class.php:128 inc/provider.class.php:477
 msgid "Authorize URL"
 msgid "Authorize URL"
 msgstr "URL de Autorização"
 msgstr "URL de Autorização"
 
 
-#: inc/provider.class.php:131 inc/provider.class.php:463
+#: inc/provider.class.php:133 inc/provider.class.php:485
 msgid "Access Token URL"
 msgid "Access Token URL"
 msgstr "URL de Token de Acesso"
 msgstr "URL de Token de Acesso"
 
 
-#: inc/provider.class.php:136 inc/provider.class.php:471
+#: inc/provider.class.php:138 inc/provider.class.php:493
 msgid "Resource Owner Details URL"
 msgid "Resource Owner Details URL"
 msgstr "URL de Detalhes do Proprietário do Recurso"
 msgstr "URL de Detalhes do Proprietário do Recurso"
 
 
-#: inc/provider.class.php:224
+#: inc/provider.class.php:145
+msgid "PopupAuth"
+msgstr ""
+
+#: inc/provider.class.php:151
+msgid "SplitDomain"
+msgstr ""
+
+#: inc/provider.class.php:155
+#, fuzzy
+msgid "AuthorizedDomains"
+msgstr "URL de Autorização"
+
+#: inc/provider.class.php:157
+msgid "AuthorizedDomainsTooltip"
+msgstr ""
+
+#: inc/provider.class.php:246
 msgid "Callback URL"
 msgid "Callback URL"
 msgstr "URL de Retorno"
 msgstr "URL de Retorno"
 
 
-#: inc/provider.class.php:228
+#: inc/provider.class.php:250
 msgid "Test Single Sign-on"
 msgid "Test Single Sign-on"
 msgstr "Testar Logon Único"
 msgstr "Testar Logon Único"
 
 
-#: inc/provider.class.php:286
+#: inc/provider.class.php:308
 msgid "A Name is required"
 msgid "A Name is required"
 msgstr "Nome é obrigatório"
 msgstr "Nome é obrigatório"
 
 
-#: inc/provider.class.php:292
+#: inc/provider.class.php:314
 #, php-format
 #, php-format
 msgid "The \"%s\" is a Invalid type"
 msgid "The \"%s\" is a Invalid type"
 msgstr "O \"%s\" é um tipo inválido"
 msgstr "O \"%s\" é um tipo inválido"
 
 
-#: inc/provider.class.php:296
+#: inc/provider.class.php:318
 msgid "A Client ID is required"
 msgid "A Client ID is required"
 msgstr "ID de cliente é obrigatório"
 msgstr "ID de cliente é obrigatório"
 
 
-#: inc/provider.class.php:300
+#: inc/provider.class.php:322
 msgid "A Client Secret is required"
 msgid "A Client Secret is required"
 msgstr "Segredo do Cliente é obrigatório"
 msgstr "Segredo do Cliente é obrigatório"
 
 
-#: inc/provider.class.php:305
+#: inc/provider.class.php:327
 msgid "An Authorize URL is required"
 msgid "An Authorize URL is required"
 msgstr "URL de Autorização é obrigatório"
 msgstr "URL de Autorização é obrigatório"
 
 
-#: inc/provider.class.php:307
+#: inc/provider.class.php:329
 msgid "The Authorize URL is invalid"
 msgid "The Authorize URL is invalid"
 msgstr "A URL de Autorização é inválida"
 msgstr "A URL de Autorização é inválida"
 
 
-#: inc/provider.class.php:311
+#: inc/provider.class.php:333
 msgid "An Access Token URL is required"
 msgid "An Access Token URL is required"
 msgstr "URL de Token de Acesso é obrigatório"
 msgstr "URL de Token de Acesso é obrigatório"
 
 
-#: inc/provider.class.php:313
+#: inc/provider.class.php:335
 msgid "The Access Token URL is invalid"
 msgid "The Access Token URL is invalid"
 msgstr "A URL de Token de Acesso é inválida"
 msgstr "A URL de Token de Acesso é inválida"
 
 
-#: inc/provider.class.php:317
+#: inc/provider.class.php:339
 msgid "A Resource Owner Details URL is required"
 msgid "A Resource Owner Details URL is required"
 msgstr "URL de Detalhes do Proprietário do Recurso é obrigatório"
 msgstr "URL de Detalhes do Proprietário do Recurso é obrigatório"
 
 
-#: inc/provider.class.php:319
+#: inc/provider.class.php:341
 msgid "The Resource Owner Details URL is invalid"
 msgid "The Resource Owner Details URL is invalid"
 msgstr "A URL de Detalhes do Proprietário do Recurso é inválida"
 msgstr "A URL de Detalhes do Proprietário do Recurso é inválida"
 
 
-#: inc/provider.class.php:530
+#: inc/provider.class.php:552
 msgid "Generic"
 msgid "Generic"
 msgstr "Genérico"
 msgstr "Genérico"
 
 
-#: inc/provider.class.php:531
+#: inc/provider.class.php:553
+msgid "Azure"
+msgstr ""
+
+#: inc/provider.class.php:554
 msgid "Facebook"
 msgid "Facebook"
 msgstr "Facebook"
 msgstr "Facebook"
 
 
-#: inc/provider.class.php:532
+#: inc/provider.class.php:555
 msgid "GitHub"
 msgid "GitHub"
 msgstr "GitHub"
 msgstr "GitHub"
 
 
-#: inc/provider.class.php:533
+#: inc/provider.class.php:556
 msgid "Google"
 msgid "Google"
 msgstr "Google"
 msgstr "Google"
 
 
-#: inc/provider.class.php:534
+#: inc/provider.class.php:557
 msgid "Instagram"
 msgid "Instagram"
 msgstr "Instagram"
 msgstr "Instagram"
 
 
-#: inc/provider.class.php:535
+#: inc/provider.class.php:558
 msgid "LinkdeIn"
 msgid "LinkdeIn"
 msgstr "LinkdeIn"
 msgstr "LinkdeIn"
 
 
-#: inc/toolbox.class.php:154
+#: inc/toolbox.class.php:166
 #, php-format
 #, php-format
 msgid "Login with %s"
 msgid "Login with %s"
 msgstr "Entrar com %s"
 msgstr "Entrar com %s"

+ 51 - 47
locales/singlesignon.pot

@@ -6,10 +6,10 @@
 #, fuzzy
 #, fuzzy
 msgid ""
 msgid ""
 msgstr ""
 msgstr ""
-"Project-Id-Version: singlesignon 1.3.1\n"
+"Project-Id-Version: singlesignon 1.3.2\n"
 "Report-Msgid-Bugs-To: https://github.com/edgardmessias/glpi-singlesignon/"
 "Report-Msgid-Bugs-To: https://github.com/edgardmessias/glpi-singlesignon/"
 "issues\n"
 "issues\n"
-"POT-Creation-Date: 2021-03-17 09:30-0300\n"
+"POT-Creation-Date: 2022-06-28 23:02-0300\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -31,12 +31,12 @@ msgid "Provider not active."
 msgstr ""
 msgstr ""
 
 
 #: front/provider.form.php:61 front/provider.form.php:63 front/provider.php:8
 #: front/provider.form.php:61 front/provider.form.php:63 front/provider.php:8
-#: front/provider.php:10 inc/preference.class.php:64 inc/provider.class.php:57
+#: front/provider.php:10 inc/preference.class.php:64 inc/provider.class.php:59
 #: setup.php:40
 #: setup.php:40
 msgid "Single Sign-on"
 msgid "Single Sign-on"
 msgstr ""
 msgstr ""
 
 
-#: inc/preference.class.php:147 inc/provider.class.php:50
+#: inc/preference.class.php:147 inc/provider.class.php:52
 msgid "Single Sign-on Provider"
 msgid "Single Sign-on Provider"
 msgstr ""
 msgstr ""
 
 
@@ -44,112 +44,132 @@ msgstr ""
 msgid "Linked accounts"
 msgid "Linked accounts"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:98
+#: inc/provider.class.php:100
 msgid "SSO Type"
 msgid "SSO Type"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:106 inc/provider.class.php:423
+#: inc/provider.class.php:108 inc/provider.class.php:445
 msgid "Client ID"
 msgid "Client ID"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:108 inc/provider.class.php:431
+#: inc/provider.class.php:110 inc/provider.class.php:453
 msgid "Client Secret"
 msgid "Client Secret"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:113 inc/provider.class.php:439
+#: inc/provider.class.php:121 inc/provider.class.php:461
 msgid "Scope"
 msgid "Scope"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:115 inc/provider.class.php:447
+#: inc/provider.class.php:123 inc/provider.class.php:469
 msgid "Extra Options"
 msgid "Extra Options"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:126 inc/provider.class.php:455
+#: inc/provider.class.php:128 inc/provider.class.php:477
 msgid "Authorize URL"
 msgid "Authorize URL"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:131 inc/provider.class.php:463
+#: inc/provider.class.php:133 inc/provider.class.php:485
 msgid "Access Token URL"
 msgid "Access Token URL"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:136 inc/provider.class.php:471
+#: inc/provider.class.php:138 inc/provider.class.php:493
 msgid "Resource Owner Details URL"
 msgid "Resource Owner Details URL"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:224
+#: inc/provider.class.php:145
+msgid "PopupAuth"
+msgstr ""
+
+#: inc/provider.class.php:151
+msgid "SplitDomain"
+msgstr ""
+
+#: inc/provider.class.php:155
+msgid "AuthorizedDomains"
+msgstr ""
+
+#: inc/provider.class.php:157
+msgid "AuthorizedDomainsTooltip"
+msgstr ""
+
+#: inc/provider.class.php:246
 msgid "Callback URL"
 msgid "Callback URL"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:228
+#: inc/provider.class.php:250
 msgid "Test Single Sign-on"
 msgid "Test Single Sign-on"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:286
+#: inc/provider.class.php:308
 msgid "A Name is required"
 msgid "A Name is required"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:292
+#: inc/provider.class.php:314
 #, php-format
 #, php-format
 msgid "The \"%s\" is a Invalid type"
 msgid "The \"%s\" is a Invalid type"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:296
+#: inc/provider.class.php:318
 msgid "A Client ID is required"
 msgid "A Client ID is required"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:300
+#: inc/provider.class.php:322
 msgid "A Client Secret is required"
 msgid "A Client Secret is required"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:305
+#: inc/provider.class.php:327
 msgid "An Authorize URL is required"
 msgid "An Authorize URL is required"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:307
+#: inc/provider.class.php:329
 msgid "The Authorize URL is invalid"
 msgid "The Authorize URL is invalid"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:311
+#: inc/provider.class.php:333
 msgid "An Access Token URL is required"
 msgid "An Access Token URL is required"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:313
+#: inc/provider.class.php:335
 msgid "The Access Token URL is invalid"
 msgid "The Access Token URL is invalid"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:317
+#: inc/provider.class.php:339
 msgid "A Resource Owner Details URL is required"
 msgid "A Resource Owner Details URL is required"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:319
+#: inc/provider.class.php:341
 msgid "The Resource Owner Details URL is invalid"
 msgid "The Resource Owner Details URL is invalid"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:530
+#: inc/provider.class.php:552
 msgid "Generic"
 msgid "Generic"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:531
+#: inc/provider.class.php:553
+msgid "Azure"
+msgstr ""
+
+#: inc/provider.class.php:554
 msgid "Facebook"
 msgid "Facebook"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:532
+#: inc/provider.class.php:555
 msgid "GitHub"
 msgid "GitHub"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:533
+#: inc/provider.class.php:556
 msgid "Google"
 msgid "Google"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:534
+#: inc/provider.class.php:557
 msgid "Instagram"
 msgid "Instagram"
 msgstr ""
 msgstr ""
 
 
-#: inc/provider.class.php:535
+#: inc/provider.class.php:558
 msgid "LinkdeIn"
 msgid "LinkdeIn"
 msgstr ""
 msgstr ""
 
 
-#: inc/toolbox.class.php:154
+#: inc/toolbox.class.php:166
 #, php-format
 #, php-format
 msgid "Login with %s"
 msgid "Login with %s"
 msgstr ""
 msgstr ""
@@ -162,19 +182,3 @@ msgstr ""
 #: setup.php:57
 #: setup.php:57
 msgid "This plugin requires GLPI >= 0.85"
 msgid "This plugin requires GLPI >= 0.85"
 msgstr ""
 msgstr ""
-
-#: inc/provider.class.php:141
-msgid "IsDefault"
-msgstr ""
-
-msgid "PopupAuth"
-msgstr ""
-
-msgid "SplitDomain"
-msgstr ""
-
-msgid "AuthorizedDomains"
-msgstr ""
-
-msgid "AuthorizedDomainsTooltip"
-msgstr ""

+ 1 - 1
setup.php

@@ -1,6 +1,6 @@
 <?php
 <?php
 
 
-define('PLUGIN_SINGLESIGNON_VERSION', '1.3.2');
+define('PLUGIN_SINGLESIGNON_VERSION', '1.3.3');
 
 
 $folder = basename(dirname(__FILE__));
 $folder = basename(dirname(__FILE__));