Skip to main content
LibiaoRobot
New Member
Oct 15, 2025 1:23 AM UTC
Solved

SAML error: Invalid assertion with 'coin'

From the debug, we can see that there is no problem with the time on both sides.

 

image.png

LibiaoRobot
New Member
Oct 16, 2025 12:42 AM UTC

This error Code: 6 is caused by an Audience error, duplicate Audience, or inconsistent context. I have a duplicate Audience here, so the error is reported.

 

<saml:AudienceRestriction>   <saml:Audience>https://sp.example.com/remote/saml/metadata/</saml:Audience>   <saml:Audience>https://sp.example.com/remote/saml/metadata/</saml:Audience> </saml:AudienceRestriction>

 

If there is an empty Audience, an error Code: 6 will be reported.

<saml:AudienceRestriction>   <saml:Audience>https://sp.example.com/remote/saml/metadata/</saml:Audience>   <saml:Audience/> </saml:AudienceRestriction>

 

The correct one is as follows

<saml:AudienceRestriction>   <saml:Audience>https://sp.example.com/remote/saml/metadata/</saml:Audience> </saml:AudienceRestriction>

 

2 replies

slovepreet
Staff
Staff
Oct 15, 2025 12:14 PM UTC

You can follow these instructions as per this kb

 

 https://community.fortinet.com/t5/FortiGate/Technical-Tip-Authentication-fails-with-clock-skew-errors-in/ta-p/222360

 

specifically this part 

config user saml 
    edit <>
        set clock-tolerance <in seconds>      <-- (0-300, 15 by default). 
    next
end

Translate
LibiaoRobot
LibiaoRobotAuthorAnswer
New Member
Oct 16, 2025 12:42 AM UTC

This error Code: 6 is caused by an Audience error, duplicate Audience, or inconsistent context. I have a duplicate Audience here, so the error is reported.

 

<saml:AudienceRestriction>   <saml:Audience>https://sp.example.com/remote/saml/metadata/</saml:Audience>   <saml:Audience>https://sp.example.com/remote/saml/metadata/</saml:Audience> </saml:AudienceRestriction>

 

If there is an empty Audience, an error Code: 6 will be reported.

<saml:AudienceRestriction>   <saml:Audience>https://sp.example.com/remote/saml/metadata/</saml:Audience>   <saml:Audience/> </saml:AudienceRestriction>

 

The correct one is as follows

<saml:AudienceRestriction>   <saml:Audience>https://sp.example.com/remote/saml/metadata/</saml:Audience> </saml:AudienceRestriction>

 

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024