Use Discourse as an identity provider (SSO, DiscourseConnect)

Right now I am implementing SSO in my app, login works very good so far, logout is not.

My Discourse Instance is redirecting correctly back to the return URL without any sso or sig parameter, but when I open Discourse, my Account is still logged in.

Any idea?