From 33d5dc989923765754d723a81d3c581dbf8be44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= <brousek@ics.muni.cz> Date: Thu, 20 Apr 2023 14:22:37 +0200 Subject: [PATCH] fix indentation --- .../OIDC + Python Django/mozilla-django-oidc.md" | 10 +++++----- .../SAML + PHP/simplesamlphp.md" | 8 ++++---- .../OIDC + Python Django/mozilla-django-oidc.md | 4 ++-- .../SAML + PHP/simplesamlphp.md | 8 ++++---- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git "a/docs-cs/Vlastn\303\255 aplikace/OIDC + Python Django/mozilla-django-oidc.md" "b/docs-cs/Vlastn\303\255 aplikace/OIDC + Python Django/mozilla-django-oidc.md" index e5d7fc8..cd8c22a 100644 --- "a/docs-cs/Vlastn\303\255 aplikace/OIDC + Python Django/mozilla-django-oidc.md" +++ "b/docs-cs/Vlastn\303\255 aplikace/OIDC + Python Django/mozilla-django-oidc.md" @@ -65,12 +65,12 @@ Jedná se o knihovnu pro framework Python Django (a Django REST framework), kter 4. Rozhodněte se, jak se budou uživatelské účty v Django aplikaci párovat na data z přihlášení a postupujte podle [odkazovaného návodu](https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html#connecting-oidc-user-identities-to-django-users). 5. Rozhodněte se, jestli se mají uživatelské účty vytvářet automaticky každému přihlášenému uživateli: - - Pokud **ano**, postupujte podle [odkazovaných kroků](https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html#creating-django-users). - - Pokud **ne**, přidejte pouze následující řádek do **settings.py**: + - Pokud **ano**, postupujte podle [odkazovaných kroků](https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html#creating-django-users). + - Pokud **ne**, přidejte pouze následující řádek do **settings.py**: - ```python - OIDC_CREATE_USER = False - ``` + ```python + OIDC_CREATE_USER = False + ``` 6. Pokud má vaše aplikace webové rozhraní, [vložte přihlašovací tlačítko nebo odkaz do stránky](https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html#enable-login-and-logout-functionality-in-templates), např. takto: diff --git "a/docs-cs/Vlastn\303\255 aplikace/SAML + PHP/simplesamlphp.md" "b/docs-cs/Vlastn\303\255 aplikace/SAML + PHP/simplesamlphp.md" index 045aaab..eef71fb 100644 --- "a/docs-cs/Vlastn\303\255 aplikace/SAML + PHP/simplesamlphp.md" +++ "b/docs-cs/Vlastn\303\255 aplikace/SAML + PHP/simplesamlphp.md" @@ -12,8 +12,8 @@ SimpleSAMLphp je knihovna v jazyce PHP pro připojení aplikace k poskytovateli ## Konfigurace 1. Nastavte poskytovatele služby. - 1. Připravte si pár klíčů, např. **/var/simplesamlphp/cert/example.key** a **/var/simplesamlphp/cert/example.crt**. - 2. Upravte **config/authsources.php**: + 1. Připravte si pár klíčů, např. **/var/simplesamlphp/cert/example.key** a **/var/simplesamlphp/cert/example.crt**. + 2. Upravte **config/authsources.php**: ```php // ... @@ -38,8 +38,8 @@ SimpleSAMLphp je knihovna v jazyce PHP pro připojení aplikace k poskytovateli ``` 2. Nastavte automatický refresh metadat. - 1. Povolte [dle návodu](https://simplesamlphp.org/docs/contrib_modules/metarefresh/simplesamlphp-automated_metadata.html) moduly **cron** a **metarefresh**. - 2. Nahraďte obsah souboru **config/config-metarefresh.php**: + 1. Povolte [dle návodu](https://simplesamlphp.org/docs/contrib_modules/metarefresh/simplesamlphp-automated_metadata.html) moduly **cron** a **metarefresh**. + 2. Nahraďte obsah souboru **config/config-metarefresh.php**: ```php <?php diff --git a/docs-en/Own server-side applications/OIDC + Python Django/mozilla-django-oidc.md b/docs-en/Own server-side applications/OIDC + Python Django/mozilla-django-oidc.md index 4f60d64..f50b2fd 100644 --- a/docs-en/Own server-side applications/OIDC + Python Django/mozilla-django-oidc.md +++ b/docs-en/Own server-side applications/OIDC + Python Django/mozilla-django-oidc.md @@ -65,8 +65,8 @@ A library for the Python Django framework (and Django REST framework), which all 4. Decide on how will the user accounts in the Django application be paired to the login data and the follow the [linked instructions](https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html#connecting-oidc-user-identities-to-django-users). 5. Decide on whether user accounts should be assigned automatically to every logged in user. - - If **yes**, follow the [referred instructions](https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html#creating-django-users). - - If **no**, add the following line to the **settings.py** file: + - If **yes**, follow the [referred instructions](https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html#creating-django-users). + - If **no**, add the following line to the **settings.py** file: ```python OIDC_CREATE_USER = False diff --git a/docs-en/Own server-side applications/SAML + PHP/simplesamlphp.md b/docs-en/Own server-side applications/SAML + PHP/simplesamlphp.md index 5d1389a..4b27887 100644 --- a/docs-en/Own server-side applications/SAML + PHP/simplesamlphp.md +++ b/docs-en/Own server-side applications/SAML + PHP/simplesamlphp.md @@ -9,8 +9,8 @@ SimpleSAMLphp is a PHP library that allows connecting applications to an Identit ## Configuration 1. Set up the Service Provider. - 1. Create a key pair, e.g. **/var/simplesamlphp/cert/example.key** and **/var/simplesamlphp/cert/example.crt**. - 2. Edit **config/authsources.php**: + 1. Create a key pair, e.g. **/var/simplesamlphp/cert/example.key** and **/var/simplesamlphp/cert/example.crt**. + 2. Edit **config/authsources.php**: ```php // ... @@ -35,8 +35,8 @@ SimpleSAMLphp is a PHP library that allows connecting applications to an Identit ``` 2. Set up automatic metadata refresh. - 1. Follow [the instructions](https://simplesamlphp.org/docs/contrib_modules/metarefresh/simplesamlphp-automated_metadata.html) to allow the **cron** and **metarefresh** modules. - 2. Replace the contents of the **config/config-metarefresh.php** file: + 1. Follow [the instructions](https://simplesamlphp.org/docs/contrib_modules/metarefresh/simplesamlphp-automated_metadata.html) to allow the **cron** and **metarefresh** modules. + 2. Replace the contents of the **config/config-metarefresh.php** file: ```php <?php -- GitLab