<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/filters/simple-authentication.lua, branch v1.2</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/filters/simple-authentication.lua?h=v1.2</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/filters/simple-authentication.lua?h=v1.2'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2015-03-05T14:51:22Z</updated>
<entry>
<title>simple-authentication.lua: tie secure cookies to field names</title>
<updated>2015-03-05T14:51:22Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2015-03-05T14:45:25Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=ecd6b7230c88deb23f880ee1df75ae4b230cf9ec'/>
<id>urn:sha1:ecd6b7230c88deb23f880ee1df75ae4b230cf9ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>simple-authentication: style</title>
<updated>2014-01-22T23:58:07Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-22T23:58:07Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=aa6d5b105de9de6d01855c15217e46fd36890dbc'/>
<id>urn:sha1:aa6d5b105de9de6d01855c15217e46fd36890dbc</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>auth: document tweakables in lua script</title>
<updated>2014-01-17T14:34:44Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-17T14:34:44Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=9dde6d38e9fc273fc62386eeda0da2e89a2cebfc'/>
<id>urn:sha1:9dde6d38e9fc273fc62386eeda0da2e89a2cebfc</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>auth: have cgit calculate login address</title>
<updated>2014-01-16T22:21:54Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-16T22:21:54Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=a431326e8fab8153905fbde036dd3c9fb4cc8eaa'/>
<id>urn:sha1:a431326e8fab8153905fbde036dd3c9fb4cc8eaa</id>
<content type='text'>
This way we're sure to use virtual root, or any other strangeness
encountered.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>auth: lua string comparisons are time invariant</title>
<updated>2014-01-16T18:47:35Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-16T18:47:35Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=df00ab1096868b3cffe563c48de5572f78b50392'/>
<id>urn:sha1:df00ab1096868b3cffe563c48de5572f78b50392</id>
<content type='text'>
By default, strings are compared by hash, so we can remove this comment.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>authentication: use hidden form instead of referer</title>
<updated>2014-01-16T11:13:39Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-16T10:39:17Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=b826537cb4aa2358027ffcb1dd6a87274734e962'/>
<id>urn:sha1:b826537cb4aa2358027ffcb1dd6a87274734e962</id>
<content type='text'>
This also gives us some CSRF protection. Note that we make use of the
hmac to protect the redirect value.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>auth: add basic authentication filter framework</title>
<updated>2014-01-16T01:28:12Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-14T20:49:31Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=d6e9200cc35411f3f27426b608bcfdef9348e6d3'/>
<id>urn:sha1:d6e9200cc35411f3f27426b608bcfdef9348e6d3</id>
<content type='text'>
This leverages the new lua support. See
filters/simple-authentication.lua for explaination of how this works.
There is also additional documentation in cgitrc.5.txt.

Though this is a cookie-based approach, cgit's caching mechanism is
preserved for authenticated pages.

Very plugable and extendable depending on user needs.

The sample script uses an HMAC-SHA1 based cookie to store the
currently logged in user, with an expiration date.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
</feed>
