diff options
author | Jason A. Donenfeld | 2014-01-16 23:21:54 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2014-01-16 23:21:54 +0100 |
commit | a431326e8fab8153905fbde036dd3c9fb4cc8eaa (patch) | |
tree | eaff3c6984a1c518c0180d5437853243ca6346a4 /cgitrc.5.txt | |
parent | df00ab1096868b3cffe563c48de5572f78b50392 (diff) | |
download | cgit-a431326e8fab8153905fbde036dd3c9fb4cc8eaa.tar.gz cgit-a431326e8fab8153905fbde036dd3c9fb4cc8eaa.tar.bz2 cgit-a431326e8fab8153905fbde036dd3c9fb4cc8eaa.zip |
auth: have cgit calculate login address
This way we're sure to use virtual root, or any other strangeness
encountered.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'cgitrc.5.txt')
-rw-r--r-- | cgitrc.5.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 682d8bb..8eafc4a 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -645,7 +645,7 @@ source filter:: | |||
645 | filtered contents is expected on standard output. | 645 | filtered contents is expected on standard output. |
646 | 646 | ||
647 | auth filter:: | 647 | auth filter:: |
648 | The authentication filter receives 11 parameters: | 648 | The authentication filter receives 12 parameters: |
649 | - filter action, explained below, which specifies which action the | 649 | - filter action, explained below, which specifies which action the |
650 | filter is called for | 650 | filter is called for |
651 | - http cookie | 651 | - http cookie |
@@ -656,8 +656,9 @@ auth filter:: | |||
656 | - cgit repo | 656 | - cgit repo |
657 | - cgit page | 657 | - cgit page |
658 | - cgit url | 658 | - cgit url |
659 | - cgit login url | ||
659 | When the filter action is "body", this filter must write to output the | 660 | When the filter action is "body", this filter must write to output the |
660 | HTML for displaying the login form, which POSTs to "/?p=login". When | 661 | HTML for displaying the login form, which POSTs to the login url. When |
661 | the filter action is "authenticate-cookie", this filter must validate | 662 | the filter action is "authenticate-cookie", this filter must validate |
662 | the http cookie and return a 0 if it is invalid or 1 if it is invalid, | 663 | the http cookie and return a 0 if it is invalid or 1 if it is invalid, |
663 | in the exit code / close function. If the filter action is | 664 | in the exit code / close function. If the filter action is |