I created a simple django app which simulates sso for discourse using the scripts mentioned here.
The parameters of sso payload has to be hard coded. But you will be able to get this thing woking within several seconds. I will provide a readme soon. Please give feed-back about any issue.