SAML seems to work perfectly fine but on starting another project, I have noticed that first time logins always return with this error: “An unexpected error occured while creating a session” If I click “Try Again” everything is peachy and and works fine. Additionally every other login attempt after this one does not generate this error. What would cause a session to not be created on first time login and how would I go about fixing this? Thanks in advance!
Did you set the SAML loglevel to trace? Otherwise you do not get the complete error in your logs. And use SAML tracer a firefox plugin to see what is happening.
I suspect there is some sort of transaction roll back that is happening, check your transaction boundaries.