Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Run prettier on authentication-methods.md.
Tim Abbott908e1e6d19bd
diff --git a/docs/production/authentication-methods.md b/docs/production/authentication-methods.mdindex ac2e1235071..e1057fc1109 100644--- a/docs/production/authentication-methods.md+++ b/docs/production/authentication-methods.md@@ -541,7 +541,7 @@ to the root and `engineering` subdomains:`https://keycloak.example.com/auth/realms/master/protocol/saml`3. Your Keycloak public certificate must be saved on the Zulip serveras `{idp_name}.crt` in `/etc/zulip/idps/`. You can obtain the- certificate from the Keycloak UI in the `Keys` tab. Click on the+ certificate from the Keycloak UI in the `Keys` tab. Click on thebutton `Certificate` and copy the content.(Alternatively, open the URL in your browser@@ -551,6 +551,7 @@ to the root and `engineering` subdomains:`<ds:X509Certificate>[...]</ds:X509Certificate>`).Save the certificate in a new `{idp_name}.crt` file constructed as follows:+```-----BEGIN CERTIFICATE-----{Paste the content here}@@ -558,12 +559,14 @@ to the root and `engineering` subdomains:```4. If you want to sign SAML requests, you have to do two things in Keycloak:+1. In the Keycloak client settings you setup previously, open the`Settings` tab and **enable** `Client Signature Required`.2. Keycloak can generate the Client private key and certificateautomatically, but Zulip's SAML library does not support the- resulting certificates. Instead, you must generate the key and+ resulting certificates. Instead, you must generate the key andcertificate on the Zulip server and import them into Keycloak:+1. Generate **Zulip server public certificate** and the corresponding **private key**:```bashopenssl req -x509 -newkey rsa:2056 -keyout zulip-private-key.key \@@ -571,6 +574,7 @@ to the root and `engineering` subdomains:```2. Generate a JKS keystore (replace `{mypassword}` and`{myalias}` in the `keytool` invocation):+```bashopenssl pkcs12 -export -out domainname.pfx -inkey zulip-private-key.key -in zulip-cert.crtkeytool -importkeystore -srckeystore domainname.pfx -srcstoretype pkcs12 \@@ -582,6 +586,7 @@ to the root and `engineering` subdomains:it on a Mac, you may want to use the keychainadministration tool to generate the JKS keystore with a UI instead ofusing the `keytool` command. (see also: https://stackoverflow.com/a/41250334)+3. Then switch to the `SAML Keys` tab of your Keycloakclient. Import `domainname.pfx` into Keycloak. Afterimporting, only the certificate will be displayed (not the private