I will add. Keycloak is running in a Docker container. Here is the log of this container when switching to SAML from Discourse:
10:21:53,379 WARN [org.keycloak.events] (default task-198) type=LOGIN_ERROR, realmId=CUBA, clientId=https://cuba-test-forum-en.demo.haulmont.com/discuss, userId=null, ipAddress=172.27.0.1, error=client_not_found