Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docker/configs/keycloak/Example-realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@
"containerId" : "6b350bb7-8ea6-438b-be38-fb58f6523f45",
"attributes" : { }
} ],
"http://nextcloud.dev.local/index.php/apps/user_saml/saml/metadata" : [ ]
"http://nextcloud.local/index.php/apps/user_saml/saml/metadata" : [ ]
}
},
"groups" : [ ],
Expand Down Expand Up @@ -689,15 +689,15 @@
"optionalClientScopes" : [ "address", "phone", "offline_access", "microprofile-jwt" ]
}, {
"id" : "555c2809-b153-4cf4-8bb1-a6306e5179c7",
"clientId" : "http://nextcloud.dev.local/index.php/apps/user_saml/saml/metadata",
"adminUrl" : "http://keycloak.dev.local/auth/realms/Example",
"clientId" : "http://nextcloud.local/index.php/apps/user_saml/saml/metadata",
"adminUrl" : "http://keycloak.local/auth/realms/Example",
"surrogateAuthRequired" : false,
"enabled" : true,
"alwaysDisplayInConsole" : false,
"clientAuthenticatorType" : "client-secret",
"secret" : "FipRMpAHMklMkZtbQfAKkUhxe7gkRZzR",
"redirectUris" : [ "http://nextcloud.dev.local/index.php/apps/user_saml/saml/acs" ],
"webOrigins" : [ "http://nextcloud.dev.local" ],
"redirectUris" : [ "http://nextcloud.local/index.php/apps/user_saml/saml/acs" ],
"webOrigins" : [ "http://nextcloud.local" ],
"notBefore" : 0,
"bearerOnly" : false,
"consentRequired" : false,
Expand All @@ -713,12 +713,12 @@
"client.secret.creation.time" : "1670752721",
"saml.force.post.binding" : "true",
"post.logout.redirect.uris" : "+",
"saml_assertion_consumer_url_post" : "http://nextcloud.dev.local/index.php/apps/user_saml/saml/acs",
"saml_assertion_consumer_url_post" : "http://nextcloud.local/index.php/apps/user_saml/saml/acs",
"saml.server.signature" : "true",
"saml.server.signature.keyinfo.ext" : "false",
"saml.signing.certificate" : "MIICvjCCAaYCCQDS+w+GXVpJsDANBgkqhkiG9w0BAQsFADAhMQswCQYDVQQGEwJERTESMBAGA1UECgwJZGV2LmxvY2FsMB4XDTIyMTIxMDA1MjgxMloXDTIzMDEwOTA1MjgxMlowITELMAkGA1UEBhMCREUxEjAQBgNVBAoMCWRldi5sb2NhbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOXPQ1YfI0aNUJEVdqFprGGtVMCZ5WIQsk7elS2KqljCHFX6eqpFR8FrQoZgcDVsi4zjX85bAdCPAW2ikfk5hNOypeJx1WSr7mtg/60p0m/T5Lim4QBCyItSARYulV9KYEijIYadTiFQJRE0PJKijlyOZ69FRt3lG+3vqE5xgQc+ZA59Pex7fB/R9jWwORxRMrzZQDP7cvKkvOlq13mR5WbCQkLXG0n6Fd2/Av27TNEP8gkITUlkrv7DkKoHcBRpUGLBuod+C/GM9aZYXxtlIStyIkz27ulsU7+VdNympFkEL+vzRrptW/S0C0RT4xKBbFeA+pCwgoIMeJsnBaAP2OkCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAOJ3+a1d06LN83gh3iNEvwWNudKVPi7MvyltW2WVBzQBoN2wCYC0crl7PRxXqACvpw2nE2qZaJ0KrrbVWUVMf2lAwRKk4g2F3WcwBjqakWwWEgIDuocLt1WX5nHbI6hb9E2jAwa8wpYbAiRQF5HnZGxI+1ZXKROZvhOPIiAVTv4jTPGr5lgxJ1lKqnVRfKIHZlPWPFGTmuwSkuq+9lwqp/HdCOIiV54c5yi0XBMvEjLhqoE5cxSVNswLF7thD7B2E1NTpyH83Z7rHtK/HDHinUVfOTKhnt15JAf2I2zwh9HErW/Bz4zQlmmBL0uMpgOjTix9h55p2JMuM7/Bd7ng2Dg==",
"saml.artifact.binding.identifier" : "0TDhGxUTNYmRM8Yd/PcR55vLtAs=",
"saml_single_logout_service_url_redirect" : "http://nextcloud.dev.local/index.php/apps/user_saml/saml/sls",
"saml_single_logout_service_url_redirect" : "http://nextcloud.local/index.php/apps/user_saml/saml/sls",
"saml.signature.algorithm" : "RSA_SHA256",
"saml_force_name_id_format" : "false",
"saml.client.signature" : "true",
Expand Down Expand Up @@ -775,15 +775,15 @@
}, {
"id" : "a7bab497-e991-491b-aae2-785f049cf361",
"clientId" : "nextcloud",
"rootUrl" : "https://nextcloud.dev.local",
"adminUrl" : "https://nextcloud.dev.local",
"rootUrl" : "http://nextcloud.local",
"adminUrl" : "http://nextcloud.local",
"surrogateAuthRequired" : false,
"enabled" : true,
"alwaysDisplayInConsole" : false,
"clientAuthenticatorType" : "client-secret",
"secret" : "09e3c268-d8bc-42f1-b7c6-74d307ef5fde",
"redirectUris" : [ "https://nextcloud.dev.local/*" ],
"webOrigins" : [ "https://nextcloud.dev.local" ],
"redirectUris" : [ "https://nextcloud.local/*", "http://nextcloud.local/*" ],
"webOrigins" : [ "https://nextcloud.local", "http://nextcloud.local" ],
"notBefore" : 0,
"bearerOnly" : false,
"consentRequired" : false,
Expand Down
17 changes: 12 additions & 5 deletions docs/services/sso.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@

## [Keycloak](https://www.keycloak.org/)

- Keycloak is using LDAP as a user backend (make sure the LDAP container is also running)
- `occ user_oidc:provider Keycloak -c nextcloud -s 09e3c268-d8bc-42f1-b7c6-74d307ef5fde -d http://keycloak.dev.local/auth/realms/Example/.well-known/openid-configuration`
- <http://keycloak.dev.local/auth/realms/Example/.well-known/openid-configuration>
- nextcloud
- 09e3c268-d8bc-42f1-b7c6-74d307ef5fde
```
docker compose up -d keycloak ldap
```

Keycloak is using LDAP as a user backend (make sure the LDAP container is also running)
- Discovery endpoint: <http://keycloak.local/realms/Example/.well-known/openid-configuration>
- Client ID: nextcloud
- Client Secret: 09e3c268-d8bc-42f1-b7c6-74d307ef5fde

```
docker compose exec nextcloud /bin/bash -c 'occ user_oidc:provider Keycloak -c nextcloud -s 09e3c268-d8bc-42f1-b7c6-74d307ef5fde -d http://keycloak.local/realms/Example/.well-known/openid-configuration'
```

## SAML

Expand Down