Skip to content
Snippets Groups Projects
Verified Commit 33d5dc98 authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

fix indentation

parent cae47421
No related branches found
No related tags found
No related merge requests found
Pipeline #261400 passed
...@@ -65,12 +65,12 @@ Jedná se o knihovnu pro framework Python Django (a Django REST framework), kter ...@@ -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). 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: 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 **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 **ne**, přidejte pouze následující řádek do **settings.py**:
```python ```python
OIDC_CREATE_USER = False 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: 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:
......
...@@ -12,8 +12,8 @@ SimpleSAMLphp je knihovna v jazyce PHP pro připojení aplikace k poskytovateli ...@@ -12,8 +12,8 @@ SimpleSAMLphp je knihovna v jazyce PHP pro připojení aplikace k poskytovateli
## Konfigurace ## Konfigurace
1. Nastavte poskytovatele služby. 1. Nastavte poskytovatele služby.
1. Připravte si pár klíčů, např. **/var/simplesamlphp/cert/example.key** a **/var/simplesamlphp/cert/example.crt**. 1. Připravte si pár klíčů, např. **/var/simplesamlphp/cert/example.key** a **/var/simplesamlphp/cert/example.crt**.
2. Upravte **config/authsources.php**: 2. Upravte **config/authsources.php**:
```php ```php
// ... // ...
...@@ -38,8 +38,8 @@ SimpleSAMLphp je knihovna v jazyce PHP pro připojení aplikace k poskytovateli ...@@ -38,8 +38,8 @@ SimpleSAMLphp je knihovna v jazyce PHP pro připojení aplikace k poskytovateli
``` ```
2. Nastavte automatický refresh metadat. 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**. 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**: 2. Nahraďte obsah souboru **config/config-metarefresh.php**:
```php ```php
<?php <?php
......
...@@ -65,8 +65,8 @@ A library for the Python Django framework (and Django REST framework), which all ...@@ -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). 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. 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 **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 **no**, add the following line to the **settings.py** file:
```python ```python
OIDC_CREATE_USER = False OIDC_CREATE_USER = False
......
...@@ -9,8 +9,8 @@ SimpleSAMLphp is a PHP library that allows connecting applications to an Identit ...@@ -9,8 +9,8 @@ SimpleSAMLphp is a PHP library that allows connecting applications to an Identit
## Configuration ## Configuration
1. Set up the Service Provider. 1. Set up the Service Provider.
1. Create a key pair, e.g. **/var/simplesamlphp/cert/example.key** and **/var/simplesamlphp/cert/example.crt**. 1. Create a key pair, e.g. **/var/simplesamlphp/cert/example.key** and **/var/simplesamlphp/cert/example.crt**.
2. Edit **config/authsources.php**: 2. Edit **config/authsources.php**:
```php ```php
// ... // ...
...@@ -35,8 +35,8 @@ SimpleSAMLphp is a PHP library that allows connecting applications to an Identit ...@@ -35,8 +35,8 @@ SimpleSAMLphp is a PHP library that allows connecting applications to an Identit
``` ```
2. Set up automatic metadata refresh. 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. 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: 2. Replace the contents of the **config/config-metarefresh.php** file:
```php ```php
<?php <?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment