<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SAML SSO for Mattermost using FusionAuth]]></title><description><![CDATA[<p dir="auto">Hello Guys, I have run into an issue integrating FusionAuth with <a href="https://mattermost.com/" rel="nofollow ugc">Mattermost</a>. I was supposed to configure the integration between FusionAuth and Sonarqube, Gitlab, Mattermost. While the first 2 were fairly straight forward, I get an error status code500 when I click on the SAML button that takes me to the FusionAuth login page. I have not been able to understand why it's behaving so. I have opened a ticket with Mattermost but I would like to check here if there is anyone who has configured this before.</p>
<p dir="auto">The full trace is</p>
<pre><code>fusionauth_1      | Aug 19, 2020 11:38:58.636 PM ERROR io.fusionauth.app.primeframework.error.ExceptionExceptionHandler - An unhandled exception was thrown
fusionauth_1      | java.lang.IllegalArgumentException: Invalid SAML v2.0 Name ID format []
fusionauth_1      | 	at io.fusionauth.samlv2.domain.NameIDFormat.fromSAMLFormat(NameIDFormat.java:162)
fusionauth_1      | 	at io.fusionauth.samlv2.service.DefaultSAMLv2Service.parseRequest(DefaultSAMLv2Service.java:471)
fusionauth_1      | 	at io.fusionauth.app.action.samlv2.LoginAction.get(LoginAction.java:91)
fusionauth_1      | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
fusionauth_1      | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
fusionauth_1      | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
fusionauth_1      | 	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
fusionauth_1      | 	at org.primeframework.mvc.util.ReflectionUtils.invoke(ReflectionUtils.java:414)
fusionauth_1      | 	at org.primeframework.mvc.action.DefaultActionInvocationWorkflow.execute(DefaultActionInvocationWorkflow.java:79)
fusionauth_1      | 	at org.primeframework.mvc.action.DefaultActionInvocationWorkflow.perform(DefaultActionInvocationWorkflow.java:62)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.validation.DefaultValidationWorkflow.perform(DefaultValidationWorkflow.java:47)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.security.DefaultSecurityWorkflow.perform(DefaultSecurityWorkflow.java:60)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.parameter.DefaultPostParameterWorkflow.perform(DefaultPostParameterWorkflow.java:50)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.content.DefaultContentWorkflow.perform(DefaultContentWorkflow.java:52)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.parameter.DefaultParameterWorkflow.perform(DefaultParameterWorkflow.java:57)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.parameter.DefaultURIParameterWorkflow.perform(DefaultURIParameterWorkflow.java:102)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.scope.DefaultScopeRetrievalWorkflow.perform(DefaultScopeRetrievalWorkflow.java:58)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.message.DefaultMessageWorkflow.perform(DefaultMessageWorkflow.java:45)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at io.fusionauth.app.primeframework.FrontEndTenantWorkflow.perform(FrontEndTenantWorkflow.java:165)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.action.DefaultActionMappingWorkflow.perform(DefaultActionMappingWorkflow.java:126)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.workflow.StaticResourceWorkflow.perform(StaticResourceWorkflow.java:97)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.parameter.RequestBodyWorkflow.perform(RequestBodyWorkflow.java:89)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at org.primeframework.mvc.security.DefaultSavedRequestWorkflow.perform(DefaultSavedRequestWorkflow.java:57)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at io.fusionauth.app.primeframework.CORSFilter.handleNonCORS(CORSFilter.java:291)
fusionauth_1      | 	at io.fusionauth.app.primeframework.CORSFilter.doFilter(CORSFilter.java:252)
fusionauth_1      | 	at io.fusionauth.app.primeframework.CORSRequestWorkflow.perform(CORSRequestWorkflow.java:48)
fusionauth_1      | 	at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:51)
fusionauth_1      | 	at io.fusionauth.app.primeframework.FusionAuthMVCWorkflow.perform(FusionAuthMVCWorkflow.java:88)
fusionauth_1      | 	at org.primeframework.mvc.workflow.DefaultWorkflowChain.continueWorkflow(DefaultWorkflowChain.java:44)
fusionauth_1      | 	at org.primeframework.mvc.servlet.FilterWorkflowChain.continueWorkflow(FilterWorkflowChain.java:50)
fusionauth_1      | 	at org.primeframework.mvc.servlet.PrimeFilter.doFilter(PrimeFilter.java:82)
fusionauth_1      | 	at com.inversoft.maintenance.servlet.MaintenanceModePrimeFilter.doFilter(MaintenanceModePrimeFilter.java:59)
fusionauth_1      | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
fusionauth_1      | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
fusionauth_1      | 	at com.inversoft.servlet.UTF8Filter.doFilter(UTF8Filter.java:27)
fusionauth_1      | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
fusionauth_1      | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
fusionauth_1      | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
fusionauth_1      | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
fusionauth_1      | 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
fusionauth_1      | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
fusionauth_1      | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
fusionauth_1      | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
fusionauth_1      | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
fusionauth_1      | 	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
fusionauth_1      | 	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
fusionauth_1      | 	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
fusionauth_1      | 	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1623)
fusionauth_1      | 	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
fusionauth_1      | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
fusionauth_1      | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
fusionauth_1      | 	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
fusionauth_1      | 	at java.base/java.lang.Thread.run(Thread.java:832)
</code></pre>
<p dir="auto">Just that I have not seen a place to insert the NameID format. Thanks in advance</p>
]]></description><link>https://fusionauth.io/community/forum/topic/310/saml-sso-for-mattermost-using-fusionauth</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 04:57:12 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/310.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Aug 2020 18:15:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Mon, 31 Aug 2020 22:59:52 GMT]]></title><description><![CDATA[<p dir="auto">thanks , I will do just that</p>
<p dir="auto">Best Regards,</p>
]]></description><link>https://fusionauth.io/community/forum/post/1042</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/1042</guid><dc:creator><![CDATA[misterjoj]]></dc:creator><pubDate>Mon, 31 Aug 2020 22:59:52 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Mon, 31 Aug 2020 22:58:01 GMT]]></title><description><![CDATA[<p dir="auto">Ah, thanks. I didn't catch that it was happening both ways.</p>
<p dir="auto">Looks like you can turn off the assertion encryption, though it is not recommended for production: <a href="https://docs.mattermost.com/administration/config-settings.html" rel="nofollow ugc">https://docs.mattermost.com/administration/config-settings.html</a> . I'd probably try turning it off just to see if you can get it to work end to end. Then you can make the call if that is a security setting you're willing to live with.</p>
<p dir="auto">The bad news is that FusionAuth doesn't support "Service Provider Public Certificates" for assertion encryption at this time. Please feel free to file an issue: <a href="https://github.com/fusionauth/fusionauth-issues/issues" rel="nofollow ugc">https://github.com/fusionauth/fusionauth-issues/issues</a> requesting such support (I didn't see anything previously filed).</p>
<p dir="auto">Here's guidance regarding our roadmap: <a href="https://fusionauth.io/community/forum/topic/172/the-fusionauth-roadmap">https://fusionauth.io/community/forum/topic/172/the-fusionauth-roadmap</a></p>
]]></description><link>https://fusionauth.io/community/forum/post/1041</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/1041</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Mon, 31 Aug 2020 22:58:01 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Mon, 31 Aug 2020 22:47:29 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/20">@dan</a> ,</p>
<p dir="auto">Thanks for your reply. At first, I also thought the certificate being referred to is the same as the one generated but I believe the scenarios are different.</p>
<p dir="auto">It looks to me that 2 certificates are being used.</p>
<p dir="auto">1- Service Provider generates a certificate that is imported into the Identity provider for Assertion Encryption. (Step 8 of the okta example )<br />
2 The Identity provider generated certificate that is imported in the service provider (Step 12 of the otka example)</p>
<p dir="auto">So in FusionAuth SAML section I only know or see Identity provider public certificate being configured. Nothing pops out to me on where to put the service provider certificate along side with its own Identity provided generated one.</p>
<p dir="auto">I don't know if you get my point.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://fusionauth.io/community/forum/post/1039</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/1039</guid><dc:creator><![CDATA[misterjoj]]></dc:creator><pubDate>Mon, 31 Aug 2020 22:47:29 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Mon, 31 Aug 2020 21:44:09 GMT]]></title><description><![CDATA[<p dir="auto">Hiya,</p>
<p dir="auto">I'm glad you figured this out.</p>
<p dir="auto">Here's a SAML example where a signing key was created: <a href="https://fusionauth.io/docs/v1/tech/samlv2/zendesk" rel="nofollow ugc">https://fusionauth.io/docs/v1/tech/samlv2/zendesk</a></p>
<p dir="auto">You can either generate one in the "SAML" tab of your application when you are setting it up, or you can go to "Key Master" and create or import one. You can see the private and public key by going to "Settings" and then "Key Master".</p>
<p dir="auto">Then, in the "SAML" tab of your application you can set the "Signing key" to the value of the key you created.</p>
<p dir="auto">Hope that helps.</p>
]]></description><link>https://fusionauth.io/community/forum/post/1034</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/1034</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Mon, 31 Aug 2020 21:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Sat, 29 Aug 2020 19:39:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello Guys,</p>
<p dir="auto">Finally here is the feedback from Mattermost:</p>
<p dir="auto"><em><strong>So one issue that we found is that this incorrect format of the NameIDPolicy is actually part of the go-saml library we're using to create the assertions.<br />
There's been a PR opened in the repository of this library that is supposed to fix this, however we do not necessarily know when this will get merged.<br />
For that reason we'll merge the fix into a fork we maintain until the <a href="https://github.com/russellhaering/gosaml2/pull/67/files" rel="nofollow ugc">PR</a> is merged upstream.</strong></em></p>
<p dir="auto">Now I have used the old saml implementation with dependency on xmlsec. I hit a blocker there as well and I figure out that there is a step that I can't seem to get around to. If you follow the documentation for okta <a href="https://docs.mattermost.com/deployment/sso-saml-okta.html" rel="nofollow ugc">https://docs.mattermost.com/deployment/sso-saml-okta.html</a> the step 8: <strong>Set Assertion Encryption as Encrypted and upload the Service Provider Public Certificate you generated in step 2 to the Encryption Certificate</strong><br />
Same for oneLogin <a href="https://docs.mattermost.com/deployment/sso-saml-onelogin.html" rel="nofollow ugc">https://docs.mattermost.com/deployment/sso-saml-onelogin.html</a> section 2. b. <strong>Paste the Public key that you generated earlier into the SAML Encryption field.</strong></p>
<p dir="auto">I haven't seem a way to do SAML assertion encryption with fusionauth. Is there a way to do that? With that I am sure I can complete the setup. Thanks in advance</p>
]]></description><link>https://fusionauth.io/community/forum/post/1026</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/1026</guid><dc:creator><![CDATA[misterjoj]]></dc:creator><pubDate>Sat, 29 Aug 2020 19:39:40 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Wed, 26 Aug 2020 04:28:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/220">@misterjoj</a> do you mind dropping a link (if you filed an issue in a public issue list)? I'd like to follow along if possible.</p>
]]></description><link>https://fusionauth.io/community/forum/post/968</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/968</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Wed, 26 Aug 2020 04:28:23 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Wed, 26 Aug 2020 04:07:33 GMT]]></title><description><![CDATA[<p dir="auto">Great! Let us know what you find out.</p>
]]></description><link>https://fusionauth.io/community/forum/post/966</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/966</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 26 Aug 2020 04:07:33 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Tue, 25 Aug 2020 16:15:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/20">@dan</a></p>
<p dir="auto">I have opened a ticket on Mattermost and provided them with the URL to this post. They are looking into it. Thanks for the insights. Will update if there is a way around this.</p>
<p dir="auto">Best Regards,</p>
]]></description><link>https://fusionauth.io/community/forum/post/959</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/959</guid><dc:creator><![CDATA[misterjoj]]></dc:creator><pubDate>Tue, 25 Aug 2020 16:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Tue, 25 Aug 2020 00:01:27 GMT]]></title><description><![CDATA[<p dir="auto">Here's part of section 3.4.1.1 of the <a href="https://www.oasis-open.org/committees/download.php/35711/sstc-saml-core-errata-2.0-wd-06-diff.pdf" rel="nofollow ugc">SAML 2.0 Core spec</a>:</p>
<blockquote>
<p dir="auto">Format [Optional]<br />
Specifies the URI reference corresponding to a name identifier format defined in this or another specification (see Section 8.3 for examples). The additional value of <code>urn:oasis:names:tc:SAML:2.0:nameid-format:encrypted</code> is defined specifically for use within this attribute to indicate a request that the resulting identifier be encrypted</p>
</blockquote>
<p dir="auto">Section 8.3 doesn't show any examples of blank identifiers, and just before section 3.4.1.2, the type of format is specified:</p>
<p dir="auto"><code>&lt;attribute name="Format" type="anyURI" use="optional"/&gt;</code></p>
<p dir="auto">I don't believe <a href="https://stackoverflow.com/questions/43333664/is-there-an-empty-uri" rel="nofollow ugc">an empty string is a valid URI</a>.</p>
<p dir="auto">I'd probably file an issue with Mattermark and see what they think, if you haven't yet, <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/220">@misterjoj</a> .</p>
]]></description><link>https://fusionauth.io/community/forum/post/950</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/950</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Tue, 25 Aug 2020 00:01:27 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Mon, 24 Aug 2020 19:18:04 GMT]]></title><description><![CDATA[<p dir="auto">Ok, this is helpful.</p>
<pre><code>&lt;samlp:NameIDPolicy AllowCreate="true" Format="" /&gt;
</code></pre>
<p dir="auto">Next step is to identify if this is a valid value according to SAML, if so we need to handle it. Or if it is not, you'll have to see what you can do in your Mattermost config to ensure a value is sent, or omitted.</p>
<p dir="auto">We can do a little investigation on our end to see if the SAML spec says that <code>Format=""</code> is an acceptable value. My previous understanding was that <code>NameIDPolicy</code> is optional, and if there is not a requested format, the element should be omitted from the document.</p>
]]></description><link>https://fusionauth.io/community/forum/post/949</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/949</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 24 Aug 2020 19:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Mon, 24 Aug 2020 18:56:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/20">@dan</a></p>
<p dir="auto">Thanks to <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3">@robotdan</a>  I have been able to switch on the debug level. Below is the XML being sent</p>
<pre><code>fusionauth_1      | Aug 24, 2020 6:09:52.024 PM DEBUG io.fusionauth.samlv2.service.DefaultSAMLv2Service - SAMLRequest XML is
fusionauth_1      | &lt;samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" AssertionConsumerServiceURL="http://localhost:8000/login/sso/saml" Destination="http://localhost:9011/samlv2/login/7dc5ea85-3495-3e94-62db-fc50e759d978" ID="_07e838e3-6d4a-45fd-9f97-307ea33802b6" IssueInstant="2020-08-24T18:09:51Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Version="2.0"&gt;&lt;saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"&gt;http://localhost:8000/login/sso/saml&lt;/saml:Issuer&gt;&lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;&lt;ds:SignedInfo&gt;&lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;&lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/&gt;&lt;ds:Reference URI="#_07e838e3-6d4a-45fd-9f97-307ea33802b6"&gt;&lt;ds:Transforms&gt;&lt;ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/&gt;&lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;&lt;/ds:Transforms&gt;&lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/&gt;&lt;ds:DigestValue&gt;7j2BZ5Gtd7D9QwgV5lrjjduK+uY=&lt;/ds:DigestValue&gt;&lt;/ds:Reference&gt;&lt;/ds:SignedInfo&gt;&lt;ds:SignatureValue&gt;OY96Y439syU7Zfz5esljLalM3/4SsVsm7xY/f61vrC2AM50EA1nUk4zQ6IbhEfy99npPxtbStqZ8KSWymq4dZbb0Q5xpi211y/hEOPVh+fcoSIPcL8EopaJ/HxJRNSYGv29oALwnMggET/0ORDawSBep8c2VEjDJozIL9RPwW70fD/HMi92dhOLi+uiofdr7w552igwxsMOLDj6swOs9tdNZrSQ2VcOcA9N6RvJSi4qWm9nMnaXQqzZcZewmL/nQ80Wz8XzTIngIqUSOL4Ulj88PvFsIb+fWsCnTZVFmSTq9WqRSYKv5ldIkckU5Hm1MY20607RPx82Dl91AEzWQLCCGnQvED3STg8AmFOe9aIlN/kMyd4Q4eutdRqH0Vzy8hPAPs2DPzNzesLhMBkIEu5iDdu0JFrWoc+Ysj0rAinCSvGQhPdPievLHaelzF2Yzyr4KSfjSLJhxs0Uqb30c1tqcAtAAH3+u7NLHpEbc0/+Bx8ao9AJpWKiFfVGPLw9KNLbTUVTs61zwNTnGp24d7rq84IcHWGd5UZMX9WFu66LmvnxansuC5xR4TUAvmAIoryuAPEiR6EK1Vt4A9MMjRGmx+cLjd1V+z+Pe6iWgcMv8iAB912MytKMms2u7XUKXng2GthkH8UE/HjXg89gjENajpoJCmhqecdeOjTNSU3s=&lt;/ds:SignatureValue&gt;&lt;ds:KeyInfo&gt;&lt;ds:X509Data&gt;&lt;ds:X509Certificate&gt;MIIFjDCCA3SgAwIBAgIUCeAwhCwAOr8GKURZEYhJskUIjTEwDQYJKoZIhvcNAQELBQAwZjELMAkGA1UEBhMC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TMBGCCWxvY2FsaG9zdIcEfwAAATANBgkqhkiG9w0BAQsFAAOCAgEAiWlqVfSO093GUBOCEzlP7d5HRh3coZtMl/HPf0/evMfnzrqoDpPmMmdWb24tlVhVsE8l1ojr4b3WeHICkOyVGx5/SW1mDpbcZVbza3xwuwVQFvIAx49smZv4KdUM5lAGKTqVYxDogl7eZX+g9jwKMwxTXAOI3DJEjtg0inTk765crqkpPm6vGPKZy00Y5ydYXIePh+LjDLkPYk++1/KEJGGMBMcwywjhMQr3GAd9+uLXq6gO7Qf04HU0lkvHOSXIPfHkBc9+jbsPx8//WvLrYyK5w2UMawkWNYjWFy5XECljBsoFGPXsB6iSRzV/4X3AMIQyZozVpCgIh0YL+RSEjpx8HvDZXb6lCOSJigu5uUViRuExYc5a2RHqH3Vic4up98272B/5peqY/zilpL3bbBZHdJkEVxlzNPExkdwAhE6e/f4uMP3VI86XRysTP/FBb+0MCyeu2d6nikh/RFk/zRiXfyMWWVbUivnkc9jGkgbOshc1UE/G3xscBU0Wr36EJh42G95Vu15OicGOB2ULgy9hSapt3svYEYenVFG7ZEINePGtVwETGEDz6rCuXiteomfO1SE3Pa8oF6okEb/U3oENxRsPo1rfZoKtB1ZokMPYR5D2JnqUZgp0YFuKWj2estGf/D45RgV6himhOxejNJstcl4SdI7yPOQFbnHtMrU=&lt;/ds:X509Certificate&gt;&lt;/ds:X509Data&gt;&lt;/ds:KeyInfo&gt;&lt;/ds:Signature&gt;&lt;samlp:NameIDPolicy AllowCreate="true" Format=""/&gt;&lt;/samlp:AuthnRequest&gt;
</code></pre>
<p dir="auto">when formatted using an online tool we have the following</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" AssertionConsumerServiceURL="http://localhost:8000/login/sso/saml" Destination="http://localhost:9011/samlv2/login/7dc5ea85-3495-3e94-62db-fc50e759d978" ID="_07e838e3-6d4a-45fd-9f97-307ea33802b6" IssueInstant="2020-08-24T18:09:51Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Version="2.0"&gt;
   &lt;saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"&gt;http://localhost:8000/login/sso/saml&lt;/saml:Issuer&gt;
   &lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
      &lt;ds:SignedInfo&gt;
         &lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /&gt;
         &lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /&gt;
         &lt;ds:Reference URI="#_07e838e3-6d4a-45fd-9f97-307ea33802b6"&gt;
            &lt;ds:Transforms&gt;
               &lt;ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /&gt;
               &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /&gt;
            &lt;/ds:Transforms&gt;
            &lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /&gt;
            &lt;ds:DigestValue&gt;7j2BZ5Gtd7D9QwgV5lrjjduK+uY=&lt;/ds:DigestValue&gt;
         &lt;/ds:Reference&gt;
      &lt;/ds:SignedInfo&gt;
      &lt;ds:SignatureValue&gt;OY96Y439syU7Zfz5esljLalM3/4SsVsm7xY/f61vrC2AM50EA1nUk4zQ6IbhEfy99npPxtbStqZ8KSWymq4dZbb0Q5xpi211y/hEOPVh+fcoSIPcL8EopaJ/HxJRNSYGv29oALwnMggET/0ORDawSBep8c2VEjDJozIL9RPwW70fD/HMi92dhOLi+uiofdr7w552igwxsMOLDj6swOs9tdNZrSQ2VcOcA9N6RvJSi4qWm9nMnaXQqzZcZewmL/nQ80Wz8XzTIngIqUSOL4Ulj88PvFsIb+fWsCnTZVFmSTq9WqRSYKv5ldIkckU5Hm1MY20607RPx82Dl91AEzWQLCCGnQvED3STg8AmFOe9aIlN/kMyd4Q4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uXiteomfO1SE3Pa8oF6okEb/U3oENxRsPo1rfZoKtB1ZokMPYR5D2JnqUZgp0YFuKWj2estGf/D45RgV6himhOxejNJstcl4SdI7yPOQFbnHtMrU=&lt;/ds:X509Certificate&gt;
         &lt;/ds:X509Data&gt;
      &lt;/ds:KeyInfo&gt;
   &lt;/ds:Signature&gt;
   &lt;samlp:NameIDPolicy AllowCreate="true" Format="" /&gt;
&lt;/samlp:AuthnRequest&gt;
</code></pre>
<p dir="auto">I am also sharing the metadata from my mattermost install got using the following <code>curl http://localhost:8000/api/v4/saml/metadata -o metadata.xml</code></p>
<pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
&lt;EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" validUntil="2020-08-31T18:08:27.516331114Z" entityID="http://localhost:8000/login/sso/saml"&gt;
    &lt;SPSSODescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" AuthnRequestsSigned="true" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"&gt;
        &lt;KeyDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" use="signing"&gt;
            &lt;KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
                &lt;X509Data xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
                    &lt;X509Certificate xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;MIIFjDCCA3SgAwIBAgIUCeAwhCwAOr8GKURZEYhJskUIjTEwDQYJKoZIhvcNAQELBQAwZjELMAkGA1UEBhMCVVMxEjAQBgNVBAcMCVBhbG8gQWx0bzETMBEGA1UECgwKTWF0dGVybW9zdDEPMA0GA1UECwwGRGV2T3BzMR0wGwYDVQQDDBRtYXR0ZXJtb3N0LmxvY2FsaG9zdDAeFw0yMDA4MTkxNDE0MjVaFw0zMDA4MTcxNDE0MjVaMGYxCzAJBgNVBAYTAlVTMRIwEAYDVQQHDAlQYWxvIEFsdG8xEzARBgNVBAoMCk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00Y5ydYXIePh+LjDLkPYk++1/KEJGGMBMcwywjhMQr3GAd9+uLXq6gO7Qf04HU0lkvHOSXIPfHkBc9+jbsPx8//WvLrYyK5w2UMawkWNYjWFy5XECljBsoFGPXsB6iSRzV/4X3AMIQyZozVpCgIh0YL+RSEjpx8HvDZXb6lCOSJigu5uUViRuExYc5a2RHqH3Vic4up98272B/5peqY/zilpL3bbBZHdJkEVxlzNPExkdwAhE6e/f4uMP3VI86XRysTP/FBb+0MCyeu2d6nikh/RFk/zRiXfyMWWVbUivnkc9jGkgbOshc1UE/G3xscBU0Wr36EJh42G95Vu15OicGOB2ULgy9hSapt3svYEYenVFG7ZEINePGtVwETGEDz6rCuXiteomfO1SE3Pa8oF6okEb/U3oENxRsPo1rfZoKtB1ZokMPYR5D2JnqUZgp0YFuKWj2estGf/D45RgV6himhOxejNJstcl4SdI7yPOQFbnHtMrU=&lt;/X509Certificate&gt;
                &lt;/X509Data&gt;
            &lt;/KeyInfo&gt;
        &lt;/KeyDescriptor&gt;
        &lt;KeyDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" use="encryption"&gt;
            &lt;KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
                &lt;X509Data xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
                    &lt;X509Certificate xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;MIIFjDCCA3SgAwIBAgIUCeAwhCwAOr8GKURZEYhJskUIjTEwDQYJKoZIhvcNAQELBQAwZjELMAkGA1UEBhMCVVMxEjAQBgNVBAcMCVBhbG8gQWx0bzETMBEGA1UECgwKTWF0dGVybW9zdDEPMA0GA1UECwwGRGV2T3BzMR0wGwYDVQQDDBRtYXR0ZXJtb3N0LmxvY2FsaG9zdDAeFw0yMDA4MTkxNDE0MjVaFw0zMDA4MTcxNDE0MjVaMGYxCzAJBgNVBAYTAlVTMRIwEAYDVQQHDAlQYWxvIEFsdG8xEzARBgNVBAoMCk1hdHRlcm1vc3QxDzANBgNV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1/KEJGGMBMcwywjhMQr3GAd9+uLXq6gO7Qf04HU0lkvHOSXIPfHkBc9+jbsPx8//WvLrYyK5w2UMawkWNYjWFy5XECljBsoFGPXsB6iSRzV/4X3AMIQyZozVpCgIh0YL+RSEjpx8HvDZXb6lCOSJigu5uUViRuExYc5a2RHqH3Vic4up98272B/5peqY/zilpL3bbBZHdJkEVxlzNPExkdwAhE6e/f4uMP3VI86XRysTP/FBb+0MCyeu2d6nikh/RFk/zRiXfyMWWVbUivnkc9jGkgbOshc1UE/G3xscBU0Wr36EJh42G95Vu15OicGOB2ULgy9hSapt3svYEYenVFG7ZEINePGtVwETGEDz6rCuXiteomfO1SE3Pa8oF6okEb/U3oENxRsPo1rfZoKtB1ZokMPYR5D2JnqUZgp0YFuKWj2estGf/D45RgV6himhOxejNJstcl4SdI7yPOQFbnHtMrU=&lt;/X509Certificate&gt;
                &lt;/X509Data&gt;
            &lt;/KeyInfo&gt;
            &lt;EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes128-gcm"&gt;
                &lt;DigestMethod&gt;&lt;/DigestMethod&gt;
            &lt;/EncryptionMethod&gt;
            &lt;EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"&gt;
                &lt;DigestMethod&gt;&lt;/DigestMethod&gt;
            &lt;/EncryptionMethod&gt;
            &lt;EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"&gt;
                &lt;DigestMethod&gt;&lt;/DigestMethod&gt;
            &lt;/EncryptionMethod&gt;
        &lt;/KeyDescriptor&gt;
        &lt;AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://localhost:8000/login/sso/saml" index="1"&gt;&lt;/AssertionConsumerService&gt;
    &lt;/SPSSODescriptor&gt;
&lt;/EntityDescriptor&gt;
</code></pre>
<p dir="auto">As suspected <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/20">@dan</a> the Format is an empty string <code>&lt;samlp:NameIDPolicy AllowCreate="true" Format="" /&gt;</code> I would want to check with mattermost if there is a way of setting the format in a way. Thanks a lot</p>
]]></description><link>https://fusionauth.io/community/forum/post/946</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/946</guid><dc:creator><![CDATA[misterjoj]]></dc:creator><pubDate>Mon, 24 Aug 2020 18:56:46 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Mon, 24 Aug 2020 13:34:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/220">@misterjoj</a> Thanks!</p>
<p dir="auto">I think before we move forward with a code change, it'd be good to take a look at the XML which is being sent.</p>
]]></description><link>https://fusionauth.io/community/forum/post/922</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/922</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Mon, 24 Aug 2020 13:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Sun, 23 Aug 2020 14:25:18 GMT]]></title><description><![CDATA[<p dir="auto">I don't think your <code>curl</code> request is correct.You do not need to escape anything if you double quote it. If you are going to quote the URL, then it would look like this:</p>
<pre><code>curl -H "Authorization: 6YJsGGVP2BGOWni_y8sp0IgyhuCEekhH6070MP_k4gc" "http://localhost:9011/api/logger?name=io.fusionauth.samlv2.service&amp;level=debug"
</code></pre>
<p dir="auto">Or in my example, I did not quote the URL, so I had to escape it.</p>
<pre><code>curl -H "Authorization: 6YJsGGVP2BGOWni_y8sp0IgyhuCEekhH6070MP_k4gc" http://localhost:9011/api/logger\?name\=io.fusionauth.samlv2.service\&amp;level\=debug
</code></pre>
<p dir="auto">Being able to review the SAML XML request will be our best chance to understand how to fix it.</p>
]]></description><link>https://fusionauth.io/community/forum/post/916</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/916</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 23 Aug 2020 14:25:18 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Sun, 23 Aug 2020 07:48:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/20">@dan</a></p>
<p dir="auto">hmmm I understand. It will adventurous for me to think I can send a pull request for a SAML project. I haven't dealt with SAML from a programming perspective before. Now for a pure java code perspective, I would have submitted this:</p>
<pre><code>/**
   * Locates the NameIDFormat using the given SAML String. This is the value from the StatusCode element's value.
   *
   * @param samlFormat The SAML string.
   * @return The NameIDFormat enum instance.
   * @throws IllegalArgumentException If the samlFormat String is not a valid name ID format.
   */
  public static NameIDFormat fromSAMLFormat(String samlFormat) {
    if (string.IsNullOrWhiteSpace(samlFormat)) { /// or add if((samlFormat?.Trim().length == 0) {return null;} after the original if (samlFormat == null)
      return null;
    }
   
    for (NameIDFormat nameID : NameIDFormat.values()) {
      if (nameID.toSAMLFormat().equals(samlFormat)) {
        return nameID;
      }
    }

    // SAML sucks, so just guess.
    // - It seems people are using urn:oasis:names:tc:SAML:2.0:nameid-format:emailAddress even though this is not valid.
    if (samlFormat.toLowerCase().contains("email")) {
      return EmailAddress;
    }

    throw new IllegalArgumentException("Invalid SAML v2.0 Name ID format [" + samlFormat + "]");
  }
</code></pre>
]]></description><link>https://fusionauth.io/community/forum/post/915</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/915</guid><dc:creator><![CDATA[misterjoj]]></dc:creator><pubDate>Sun, 23 Aug 2020 07:48:09 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Sun, 23 Aug 2020 07:28:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3">@robotdan</a></a> said in <a href="/community/forum/post/908">SAML SSO for Mattermost using FusionAuth</a>:</p>
<blockquote>
<p dir="auto">usionauth-app.log</p>
</blockquote>
<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3">@robotdan</a></a>. Thanks for your insights. There is no place in mattermost for specifying a name id format and there is no place I have seen in FusionAuth to mark the name id format as unspecified like in the documentation for okta. But as <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/20">@dan</a> explains it's because it's in blank format. One option is to check from mattermost if the name id should be blank or null or blank.</p>
<p dir="auto">I have also not been able to run the  /logger command successfully. I have also looked into the API to see if there was a typo but, I didn't find it. Below is what it produces when I run the command:</p>
<pre><code>curl -H "Authorization: 6YJsGGVP2BGOWni_y8sp0IgyhuCEekhH6070MP_k4gc" "http://localhost:9011/api/logger\?name\=io.fusionauth.samlv2.service\&amp;level\=debug"                 ✔  07:56:57
&lt;!doctype html&gt;&lt;html lang="en"&gt;&lt;head&gt;&lt;title&gt;HTTP Status 400 – Bad Request&lt;/title&gt;&lt;style type="text/css"&gt;body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 400 – Bad Request&lt;/h1&gt;&lt;hr class="line" /&gt;&lt;p&gt;&lt;b&gt;Type&lt;/b&gt; Exception Report&lt;/p&gt;&lt;p&gt;&lt;b&gt;Message&lt;/b&gt; Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986&lt;/p&gt;&lt;p&gt;&lt;b&gt;Description&lt;/b&gt; The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).&lt;/p&gt;&lt;p&gt;&lt;b&gt;Exception&lt;/b&gt;&lt;/p&gt;&lt;pre&gt;java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
	org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:509)
	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:502)
	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1623)
	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	java.base&amp;#47;java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	java.base&amp;#47;java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.base&amp;#47;java.lang.Thread.run(Thread.java:832)
&lt;/pre&gt;&lt;p&gt;&lt;b&gt;Note&lt;/b&gt; The full stack trace of the root cause is available in the server logs.&lt;/p&gt;&lt;hr class="line" /&gt;&lt;h3&gt;Apache Tomcat/8.5.53&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
</code></pre>
]]></description><link>https://fusionauth.io/community/forum/post/914</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/914</guid><dc:creator><![CDATA[misterjoj]]></dc:creator><pubDate>Sun, 23 Aug 2020 07:28:17 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Fri, 21 Aug 2020 23:34:39 GMT]]></title><description><![CDATA[<p dir="auto">If I understand correctly, you are using FusionAuth as the SAML v2 Identity Provider (IdP), and Mattermost is the SAML Service Provider (SP).</p>
<p dir="auto">The example XML request doesn't seem to line up with the exception you received. The exception indicates that a <code>NameIDPolicy</code> element was found in the request but it did not have a <code>format</code> assigned.  But in the example XML request there is not a <code>NameIDPolicy</code> element. If we encounter a request without the <code>NameIDPolicy</code> we default to email (<code>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</code>).</p>
<p dir="auto">When you set up your application in Mattermost, what did you set for the <code>Name ID format</code> configuration? And what are the available choices?</p>
<p dir="auto"><img src="/community/forum/assets/uploads/files/1598052588649-8cf53bc2-eed1-4f35-918d-64d48cc438d8-image.png" alt="8cf53bc2-eed1-4f35-918d-64d48cc438d8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Additionally, if you want to enable debug logging in FusionAuth, we will print the XML request to the log and that will also help debug this issue.</p>
<p dir="auto">To enable debug for the SAML parser, use the following <code>curl</code> request and replace <code>&lt;YOUR API KEY&gt;</code> with your API key, and <code>http://localhost:9011</code> with the URL of your FusionAuth instance.</p>
<pre><code>curl -H"Authorization: &lt;YOUR API KEY&gt;" http://localhost:9011/logger\?name\=io.fusionauth.samlv2.service\&amp;level\=debug
</code></pre>
<p dir="auto">Once you do that, recreate the error, and then capture the XML request in the <code>fusionauth-app.log</code> file.</p>
]]></description><link>https://fusionauth.io/community/forum/post/908</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/908</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 21 Aug 2020 23:34:39 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Fri, 21 Aug 2020 20:50:40 GMT]]></title><description><![CDATA[<p dir="auto">Hmm. SAML seems such an intricate protocol. Thanks for the XML file, it really helps.</p>
<p dir="auto">OK, so it turns our our SAML processing code is open source, so you can check out the classes referenced in the stack trace here:</p>
<p dir="auto"><a href="https://github.com/FusionAuth/fusionauth-samlv2/blob/master/src/main/java/io/fusionauth/samlv2/domain/NameIDFormat.java#L162" rel="nofollow ugc">https://github.com/FusionAuth/fusionauth-samlv2/blob/master/src/main/java/io/fusionauth/samlv2/domain/NameIDFormat.java#L162</a></p>
<p dir="auto"><a href="https://github.com/FusionAuth/fusionauth-samlv2/blob/master/src/main/java/io/fusionauth/samlv2/service/DefaultSAMLv2Service.java#L471" rel="nofollow ugc">https://github.com/FusionAuth/fusionauth-samlv2/blob/master/src/main/java/io/fusionauth/samlv2/service/DefaultSAMLv2Service.java#L471</a></p>
<p dir="auto">It looks to me like the <code>NameIDPolicy</code> is optional (per <a href="https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf" rel="nofollow ugc">https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf</a> ) and I don't see it in the XML you provide. We handle that on line 468 in the service file, but for some reason this XML file is slipping through and we're getting a blank format, which the code doesn't know how to handle.</p>
<p dir="auto">Depending on your skill, desire and timeframe, you could submit a pull request to that repository fixing this issue. Another option is to create a bug report here: <a href="https://github.com/fusionauth/fusionauth-issues" rel="nofollow ugc">https://github.com/fusionauth/fusionauth-issues</a> and reference this forum post.</p>
<p dir="auto">Unfortunately we can't commit to a timeframe for a fix, but filing it there will put it on the engineers' radar. (More about our roadmap: <a href="https://fusionauth.io/community/forum/topic/172/the-fusionauth-roadmap">https://fusionauth.io/community/forum/topic/172/the-fusionauth-roadmap</a> )</p>
]]></description><link>https://fusionauth.io/community/forum/post/904</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/904</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Fri, 21 Aug 2020 20:50:40 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Fri, 21 Aug 2020 17:59:55 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/20">@dan</a> ,</p>
<p dir="auto">Thanks so much for your insights. I am using :<br />
FusionAuth: 1.18.4<br />
Mattermost: 5.26.0<br />
Below is the SAML request Payload, it's from <a href="https://docs.mattermost.com/deployment/sso-saml-technical.html" rel="nofollow ugc">https://docs.mattermost.com/deployment/sso-saml-technical.html</a></p>
<pre><code>&lt;samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlsig="http://www.w3.org/2000/09/xmldsig#" ID="_u5mpjadp1fdozfih4cj8ap4brh" Version="2.0" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" AssertionConsumerServiceURL="http://localhost:8065/login/sso/saml" IssueInstant="2019-06-08T16:00:31Z"&gt;
    &lt;saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"&gt;http://www.okta.com/exkoxukx1D8OIfY03356&lt;/saml:Issuer&gt;
    &lt;samlsig:Signature Id="Signature1"&gt;
        &lt;samlsig:SignedInfo&gt;
            &lt;samlsig:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"&gt;&lt;/samlsig:CanonicalizationMethod&gt;
            &lt;samlsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"&gt;&lt;/samlsig:SignatureMethod&gt;
            &lt;samlsig:Reference URI="#_u5mpjadp1fdozfih4cj8ap4brh"&gt;
                &lt;samlsig:Transforms&gt;
                    &lt;samlsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"&gt;&lt;/samlsig:Transform&gt;
                &lt;/samlsig:Transforms&gt;
                &lt;samlsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"&gt;&lt;/samlsig:DigestMethod&gt;
                &lt;samlsig:DigestValue&gt;&lt;/samlsig:DigestValue&gt;
            &lt;/samlsig:Reference&gt;
        &lt;/samlsig:SignedInfo&gt;
        &lt;samlsig:SignatureValue&gt;&lt;/samlsig:SignatureValue&gt;
        &lt;samlsig:KeyInfo&gt;
            &lt;samlsig:X509Data&gt;
                &lt;samlsig:X509Certificate&gt;MIIFmzCCA4OgAwIBAgIJAIusvV3gZIwiMA0GCSqGSIb3DQEBCwUAMGIxCzAJBgNVBAYTAlVTMRIwEAYDVQQHDAlQYWxvIEFsdG8xEzARBg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YcEwKgAAYcEfwAAATANBgkqhkiG9w0BAQsFAAOCAgEAH1O91BABHXZjrU7v1OwG+GbU/4TYZqBXXNxax++OFSRCkEEoNKGg49R6J7lY4lrm12zBlw+oGSyjIOerzi39/dcxDkKpzyhGvEN4mExbDlybmdCVrHPeWgZl7uwqn4Bj1xiu97M6eMthgxJE7KVNDGDHthGL0/fTlONIh3qS7Far33hLHJJKy3+lC1MDB8cNltV3mf/ctHCx5Wa0bfZId0MJgd/seP0WU1HCf3kIxhnhsnOYs32xu7EGiM4/lgnquVd/q/f99ueSaDSHrep373/w2ce9iF3U0qcLd2iP8ayF/daGeW1dVPL9R10Oe4BpRjMkjlLwhZdjJeKSg9GBa2GXUEn1Ru9vpSw/C10no3Qx/6ZHweYbSmJ6hBg4T0nDBp6iVS1eQULNXxDuDWb26U0ESOO5jK8ATywuc45o0bqdvD1XOrGYGfGnofx7ofRWwKHWfltvxurnbsyo2vH6nM6K41K2DpVdyQOKAGvKe/oCWfdi+WyBQJGWcIp2OTC1XyWHv7JsY3lo04+islkHEcqJyd8Rf8GWmRHdXz0WzGiZbxWzAuvRRWnzM31VAws8kQBHTBwIJlJoGX4AXfEvPi+NTxkntf8cQdJucK9ZZbP4ycXHULO4LneyJoJ9Q7nxX11xWv7BDWxxclOXy6tyUkg9Fjb7pQ/HCVvGhRzilVU=&lt;/samlsig:X509Certificate&gt;
            &lt;/samlsig:X509Data&gt;
        &lt;/samlsig:KeyInfo&gt;
    &lt;/samlsig:Signature&gt;
&lt;/samlp:AuthnRequest&gt;
</code></pre>
<p dir="auto">Best Regards,</p>
]]></description><link>https://fusionauth.io/community/forum/post/899</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/899</guid><dc:creator><![CDATA[misterjoj]]></dc:creator><pubDate>Fri, 21 Aug 2020 17:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to SAML SSO for Mattermost using FusionAuth on Fri, 21 Aug 2020 03:41:38 GMT]]></title><description><![CDATA[<p dir="auto">Hiya,</p>
<p dir="auto">The <code>NameId</code> format is determined by values in the SAML document, and at this time can't be specified in configuration. From the error you are seeing, it looks like they don't provide the header specifying their format, but the <a href="https://docs.mattermost.com/deployment/sso-saml-okta.html" rel="nofollow ugc">Okta instructions</a> imply that it is the <code>Unspecified</code> format:</p>
<blockquote>
<p dir="auto">Name ID format: unspecified</p>
</blockquote>
<p dir="auto">Can you please provide:</p>
<ul>
<li>the version of mattermost you are working with</li>
<li>the version of FusionAuth you are using as your IdP</li>
<li>a copy of the SAML XML would be awesome</li>
</ul>
<p dir="auto">It looks like <a href="https://docs.mattermost.com/overview/auth.html" rel="nofollow ugc">mattermost doesn't support OIDC</a> at this time, which is a bummer.</p>
]]></description><link>https://fusionauth.io/community/forum/post/896</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/896</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Fri, 21 Aug 2020 03:41:38 GMT</pubDate></item></channel></rss>