From the debug, we can see that there is no problem with the time on both sides.
Solved! Go to Solution.
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>
You can follow these instructions as per this kb
specifically this part
config user saml
edit <>
set clock-tolerance <in seconds> <-- (0-300, 15 by default).
next
end
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>
User | Count |
---|---|
2640 | |
1401 | |
810 | |
686 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.