single sign on - Auto Login to User from Site to Disqus -
i added disqus website , making use of script
sso configuration this:
name: example slug: example
no call url set @ end.
<script type="text/javascript"> /* * * configuration variables * * */ var disqus_shortname = 'myexample'; var disqus_identifier = 'http://www.example.com/welcome... var disqus_title = 'my example'; var disqus_url = 'http://www.example.com/welcome... var remote_auth_s3 = "<%=payload%>";//its generate server side code var api_key = "public api key here"; /* * * don't edit below line * * */ (function () { var dsq = document.createelement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getelementsbytagname('head')[0] || document.getelementsbytagname('body')[0]).appendchild(dsq); })(); </script>
i using above script , passing values. script auto login website users disqus or have other efforts.
thanks dalvir
my issue fixed after making use of variable this
var disqus_config = function () { // generated payload authenticates users disqus this.page.remote_auth_s3 = "<%=payload%>"; this.page.api_key = "<%=key%>"; };
Comments
Post a Comment