Skip to content

Conversation

@juliusknorr
Copy link
Owner

@juliusknorr juliusknorr commented Dec 10, 2022

Keycloak is nicer for testing SSO with SAML than simplesamlphp. Config is working, but needs documentation and auto setup.

Notes for later

occ saml:config:create
occ saml:config:set \
        --general-idp0_display_name "Keycloak SAML" \
        --general-uid_mapping "username" \
        --idp-entityId "http://keycloak.dev.local/auth/realms/Example" \
        --idp-singleLogoutService.url "http://keycloak.dev.local/auth/realms/Example/protocol/saml" \
        --idp-singleSignOnService.url "http://keycloak.dev.local/auth/realms/Example/protocol/saml" \
        --idp-x509cert="$(cat keycloak.crt)" \
        --security-authnRequestsSigned 1 \
        --security-logoutRequestSigned 1 \
        --security-logoutResponseSigned 1 \
        --security-wantAssertionsEncrypted 0 \
        --security-wantAssertionsSigned 1 \
        --security-wantMessagesSigned 1 \
        --security-nameIdEncrypted 0 --security-wantNameId 0 \
        --security-wantNameIdEncrypted 0 \
        --sp-x509cert="$(cat public.cert)" \
        --sp-privateKey="$(cat private.key)" \
        "1"

dummycertkeys.zip

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr marked this pull request as ready for review December 21, 2022 15:18
@juliusknorr juliusknorr merged commit 485ae2b into master Dec 21, 2022
@juliusknorr juliusknorr deleted the saml branch December 21, 2022 20:19
mahmoudajawad added a commit to mahmoudajawad/nextcloud-docker-dev that referenced this pull request Oct 29, 2025
Duplicate `docker-compose.yml` for Podman Compose support per juliusknorr#123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants