Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pariahsoft/libvmod-authentication
Basic HTTP authentication module for Varnish Cache.
https://github.com/pariahsoft/libvmod-authentication
Last synced: 16 days ago
JSON representation
Basic HTTP authentication module for Varnish Cache.
- Host: GitHub
- URL: https://github.com/pariahsoft/libvmod-authentication
- Owner: pariahsoft
- License: other
- Created: 2011-08-18T13:26:10.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-24T11:55:22.000Z (almost 13 years ago)
- Last Synced: 2024-07-31T22:56:32.899Z (3 months ago)
- Language: C
- Homepage:
- Size: 121 KB
- Stars: 15
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===================
vmod_authentication
===================----------------------------------
Varnish HTTP Authentication Module
----------------------------------:Author: Omega Software Development Group
:Date: 2011-11-24
:Version: 0.9
:Manual section: 3SYNOPSIS
========import authentication;
DESCRIPTION
===========Implements basic HTTP authentication in Varnish.
FUNCTIONS
=========match
-----Prototype
match(STRING username, STRING password)
Return value
BOOL
Description
Tests the client's given credentials (if any) against a specified username and password, returning true if matched.
Example
Throwing a "401 Authentication Required" error if the client fails to authenticate as **admin** with password **test**.
::
if(req.url ~ "^/protected/") {
if(!authentication.match("admin", "test")) {
error 401 "Authentication Required";
}
}COPYRIGHT
=========This document is licensed under the same license as the
libvmod-example project. See LICENSE for details.* Copyright (c) 2011 Omega Software Development Group