Repository navigation
Implement Keycloak SAML Authentication With Slack #13971
|
Hello! I'm trying to implement keycloak as a SAML authentication provider on my slack workspace but it does not seem to work. I am not sure if this is a bug or something that I am doing wrong. I followed this documentation. Here're keycloak logs: |
Replies: 1 comment 11 replies
|
This may be an issue with the fact that Keycloak expects the client's domains to be present in the certificate's Subject Alternate Names of the SAML certificate and it is not properly set. If you can generate the certificate yourself, make sure to add the valid URLs in the certificate's SAN. Otherwise, you may need to disable the You can view the certificate's fields by copying the X509 component of the exported SAML XML and using an online tool, or using the CLI using You could use the following command to generate a certificate with the SAN field set (similar to this answer): openssl req -x509 -nodes -newkey rsa:4096 -out cert.pem -keyout cert.key \
-addext 'subjectAltName = DNS:clafoutistest-xpt3710.slack.com |
This may be an issue with the fact that Keycloak expects the client's domains to be present in the certificate's Subject Alternate Names of the SAML certificate and it is not properly set. If you can generate the certificate yourself, make sure to add the valid URLs in the certificate's SAN. Otherwise, you may need to disable the
Sign assertions(or maybeSign documents) setting.You can view the certificate's fields by copying the X509 component of the exported SAML XML and using an online tool, or using the CLI using
echo $CERT | base64 -d | openssl x509 -inform DER -noout -text. In this case,CERTwould be the base64 encoded certificate that is in theX509Certificatefield of the XML.Y…