-
- Downloads
Deal with SAML responses having whitespace (#23451) (#23633)
Pursuant to #23451. The end effect of whitespace existing in a SAML response is us choking on it as reported in #23451. Two possible interpretations of causes of this bug: There was an upstream change in our fork of the clojure SAML lib as flamber noted, The decoding of base64 in our SAML endpoint (which uses the SAML lib) chokes on whitespace. The proximate cause is the second one and ultimate cause is the first. However, I tend to believe that fixing the second one would be the better fix. For comparison, onelogin's first party SAML thing for java decodes base64 (https://github.com/onelogin/java-saml/blob/master/core/src/main/java/com/onelogin/saml2/util/Util.java) via apache's lib, which seems to do the thing that a lot of base64 decoders do of skipping whitespace.
Showing
- enterprise/backend/src/metabase_enterprise/sso/integrations/saml.clj 6 additions, 6 deletions...backend/src/metabase_enterprise/sso/integrations/saml.clj
- enterprise/backend/test/metabase_enterprise/sso/integrations/saml_test.clj 19 additions, 4 deletions...d/test/metabase_enterprise/sso/integrations/saml_test.clj
Please register or sign in to comment