Skip to content

Commit

Permalink
convert "selectidp-links" template to twig
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 1, 2024
1 parent 32b168e commit 2364cb3
Show file tree
Hide file tree
Showing 10 changed files with 258 additions and 175 deletions.
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ services:
- ./modules/silauth:/data/vendor/simplesamlphp/simplesamlphp/modules/silauth
- ./modules/sildisco:/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco
- ./modules/material:/data/vendor/simplesamlphp/simplesamlphp/modules/material
command: /data/run-debug.sh
command: /data/run.sh
ports:
- "80:80"
environment:
Expand All @@ -130,14 +130,15 @@ services:
SHOW_SAML_ERRORS: "true"
THEME_COLOR_SCHEME: "orange-light_blue"
HUB_MODE: "true"
HELP_CENTER_URL: "https://example.org/help"

ssp-idp1.local: # using a database session store type ("sql")
build: .
depends_on:
- db
volumes:
# Utilize custom certs
- ./development/idp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
- ./development/idp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert

# Utilize custom configs
- ./development/idp-local/config/authsources.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
Expand Down Expand Up @@ -191,12 +192,13 @@ services:
MYSQL_USER: "silauth"
MYSQL_PASSWORD: "silauth"
BASE_URL_PATH: "http://ssp-idp1.local/"
HELP_CENTER_URL: "https://example.org/help"

ssp-idp2.local:
build: .
volumes:
# Utilize custom certs
- ./development/idp2-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
- ./development/idp2-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert

# Utilize custom configs
- ./development/idp2-local/config/authsources.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
Expand Down
5 changes: 3 additions & 2 deletions features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function afterStep(AfterStepScope $scope)
$this->showPageDetails();
}
}

protected function showPageDetails()
{
echo '[' . $this->session->getStatusCode() . '] ';
Expand All @@ -60,7 +60,7 @@ public function iGoToTheHubsDiscoveryPage()
{
$this->visit(self::HUB_DISCO_URL);
}

/**
* @Then I should see our material theme
*/
Expand Down Expand Up @@ -133,6 +133,7 @@ public function iShouldSeeAPage($title)
*/
public function iClickOnTheTile($idpName)
{
$this->showPageDetails();
$page = $this->session->getPage();
$idpTileTitle = sprintf('Login with your %s identity account', $idpName);
$idpTile = $page->find(
Expand Down
18 changes: 18 additions & 0 deletions modules/material/locales/en/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ msgstr "Change"

msgid "{footer:copyright}"
msgstr "Unauthorized use of this site is prohibited and may be subjected to civil and criminal prosecution."

msgid "{selectidp-links:title}"
msgstr "Choose an identity account"

msgid "{selectidp-links:header}"
msgstr "Choose an identity account"

msgid "{selectidp-links:header-for-sp}"
msgstr "Choose an identity account to continue to %spName%"

msgid "{selectidp-links:enabled}"
msgstr "Login with your %idpName% identity account"

msgid "{selectidp-links:disabled}"
msgstr "%idpName% coming soon"

msgid "{selectidp-links:help}"
msgstr "Help"
18 changes: 18 additions & 0 deletions modules/material/locales/es/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ msgstr "Cambiar"

msgid "{footer:copyright}"
msgstr "El uso no autorizado de este sitio está prohibido y puede ser sometido a procesamiento civil y penal."

msgid "{selectidp-links:title}"
msgstr "Elige una cuenta de identidad"

msgid "{selectidp-links:header}"
msgstr "Elige una cuenta de identidad"

msgid "{selectidp-links:header-for-sp}"
msgstr "Elija una cuenta de identidad para continuar en %spName%"

msgid "{selectidp-links:enabled}"
msgstr "Inicie sesión con su cuenta de identidad %idpName%"

msgid "{selectidp-links:disabled}"
msgstr "%idpName% próximamente"

msgid "{selectidp-links:help}"
msgstr "Ayuda"
18 changes: 18 additions & 0 deletions modules/material/locales/fr/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ msgstr "Changer"

msgid "{footer:copyright}"
msgstr "L'utilisation non autorisée de ce site est interdite et peut faire l'objet de poursuites civiles et pénales."

msgid "{selectidp-links:title}"
msgstr "Choisissez un compte d'identité"

msgid "{selectidp-links:header}"
msgstr "Choisissez un compte d'identité"

msgid "{selectidp-links:header-for-sp}"
msgstr "Choisissez un compte d'identité pour continuer vers %spName%"

msgid "{selectidp-links:enabled}"
msgstr "Connectez-vous avec votre compte d'identité %idpName%"

msgid "{selectidp-links:disabled}"
msgstr "%idpName% à venir"

msgid "{selectidp-links:help}"
msgstr "Aidez-moi"
18 changes: 18 additions & 0 deletions modules/material/locales/ko/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ msgstr "바꾸다"

msgid "{footer:copyright}"
msgstr "이 사이트의 무단 사용은 금지되어 있으며 민사 및 형사 고발의 대상이 될 수 있습니다."

msgid "{selectidp-links:title}"
msgstr "ID 계정 선택"

msgid "{selectidp-links:header}"
msgstr "ID 계정 선택"

msgid "{selectidp-links:header-for-sp}"
msgstr "%spName%을 계속 진행하려면 신원 계정을 선택하십시오."

msgid "{selectidp-links:enabled}"
msgstr "%idpName% 신원 계정으로 로그인하십시오."

msgid "{selectidp-links:disabled}"
msgstr "%idpName% 곧 제공됨"

msgid "{selectidp-links:help}"
msgstr "도움"
5 changes: 5 additions & 0 deletions modules/material/themes/material/default/announcement.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if not announcement is empty %}
<div class="mdl-typography--subhead mdl-typography--text-center alert margin" layout-children="column">
{{ announcement|raw }}
</div>
{% endif %}
168 changes: 0 additions & 168 deletions modules/material/themes/material/default/selectidp-links.php

This file was deleted.

Loading

0 comments on commit 2364cb3

Please sign in to comment.