Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
LibiaoRobot
New Contributor II

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

1 Solution
LibiaoRobot
New Contributor II

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>

 

View solution in original post

2 REPLIES 2
slovepreet
Staff
Staff

You can follow these instructions as per this kb

 

 https://community.fortinet.com/t5/FortiGate/Technical-Tip-Authentication-fails-with-clock-skew-error...

 

specifically this part 

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

Lovepreet
LibiaoRobot
New Contributor II

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>

 

Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors