List for cgit developers and users
 help / color / mirror / Atom feed
From: jazepstein at gmail.com (Jeremy Epstein)
Subject: simple-authentication.lua gives "Invalid request"
Date: Sun, 21 Sep 2014 23:48:29 +1000	[thread overview]
Message-ID: <CAFTx33xpCT6tJ8cSBOyuWMBMVypF4=Qkd2HANQoALV7AsgLPgA@mail.gmail.com> (raw)

Hi,

I'm trying to set up cgit on my server, with password protection
per-repository using the "filters/simple-authentication.lua" script:

https://github.com/zx2c4/cgit/blob/master/filters/simple-authentication.lua

After spending some time installing lua and luacrypto, I'm correctly
getting the "Authentication Required" page when I try to view a
protected repo. However, when I enter a username / password and click
"login", all I get after that is "Invalid request" (as a 404
response).

I have cgit running behind nginx, configured more-or-less per these
instructions:

https://gist.github.com/stran12/1394757

Would be great to get this working. As I'll be using cgit for private
repos (for client projects), the password-protection is a must. I
realise that this feature is new, so I understand if there are still
some hiccups involved.

Cheers,
Jeremy.


             reply	other threads:[~2014-09-21 13:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-21 13:48 jazepstein [this message]
2014-09-27  2:44 ` jazepstein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFTx33xpCT6tJ8cSBOyuWMBMVypF4=Qkd2HANQoALV7AsgLPgA@mail.gmail.com' \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).