authenticationjekylldisqus

How can I provide login feature to a Jekyll site?


How can I provide login feature to a Jekyll site?

I'm not sure if I am asking the correct question. Basically, I'm setting up a Jekyll blog for an intranet, and when any person (who connected to the intranet) comments on the blog, I want the site to use Windows's username as the display-name of the comment. In this way, I would know which comment is posted by which user (connected to the intranet), and I don't want the commenters to choose any other name as display-name to discourage trolling. Can it be done?

I was thinking if I could force the poster to login before commenting (and verify it Windows's athentication somehow), then maybe that username can be used as display-name. I'm not sure if that is possible, as I don't know if Jekyll provides that much flexibility.

I'm using Disqus as comment-provider. I may switch to a suitable comment-provider if required.


Solution

  • Jekyll is a static blog, so it can't display dynamic data as username.

    EDIT: Disqus is hosted on the cloud and you use javascript to bring it from the cloud to your static jekyll powered website.

    So if you want to do the same, you have to build an application that is completely outside of jekyll, a Sign On Web Services and query it with Javascript in your jekyll blog.