Add config sample

This commit is contained in:
decentral1se 2021-05-12 16:35:41 +02:00
parent 3e371b385e
commit bc3cd1029a
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 16 additions and 1 deletions

View File

@ -20,7 +20,22 @@ Check [this approach](https://git.autonomic.zone/ruangrupa/login.lumbung.space).
Use [this plugin](https://github.com/pulsejet/nextcloud-oidc-login). You can use [this trick](https://janikvonrotz.ch/2020/10/20/openid-connect-with-nextcloud-and-keycloak/) (see "Cryptic Usernames" work-around) to get proper usernames.
> TODO(decentral1se): copy over keycloak client config and nextcloud config.php
```
'oidc_login_client_id' => 'nextcloud',
'oidc_login_client_secret' => 'mysecret',
'oidc_login_provider_url' => 'https://example.com/auth/realms/myrealm',
'oidc_login_disable_registration' => false,
'oidc_login_hide_password_form' => true,
'oidc_login_button_text' => 'Log in with your myssodomain',
'oidc_login_default_group' => 'mygroup',
'oidc_login_attributes' =>
array (
'id' => 'sub',
'name' => 'name',
'mail' => 'email',
),
'oidc_create_groups' => true,
```
#### Why is my synchronisation client freezing on the "grant access" step?