In Safari browsers you might see the following error: "An error occurred while trying to authenticate you using Single-Sign-On. Please ask your administrator for assistance.". or you see this image.
The reason this is happening is that Safari is blocking third-party cookies by default, so the JWT is invalid. This can be solved by changing the default configuration of the browser.
Safari
Figure 7
Safari version 4 and lower:
Safari
Figure 5
Enable Third Party Cookies (Safari 5.1 and later)
In some cases your browser needs to accept third party cookies for the website to work properly. This function is disabled as default in Safari 6.
To enable third party cookies in Safari please follow these steps:
Open Safari and in the top left corner of your screen click on Safari and select Preferences.
In the preference window select the Privacy option, then unselect the the "Prevent cross-site tracking" and "Block all cookies" options
Your browser should now accept all third party cookies.
Enable Third Party Cookies (Safari 5.0.x and earlier)