Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 125EB10680 for ; Fri, 12 Dec 2014 20:24:24 +0000 (UTC) Received: (qmail 49129 invoked by uid 500); 12 Dec 2014 20:24:24 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 49074 invoked by uid 500); 12 Dec 2014 20:24:23 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 49061 invoked by uid 99); 12 Dec 2014 20:24:23 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2014 20:24:23 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A4E78954A2C; Fri, 12 Dec 2014 20:24:23 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davisp@apache.org To: commits@couchdb.apache.org Date: Fri, 12 Dec 2014 20:24:24 -0000 Message-Id: <9fc6a5ed62f942f29f3f64f540577eb0@git.apache.org> In-Reply-To: <85d08eed83c9424fb45080c1f86093fd@git.apache.org> References: <85d08eed83c9424fb45080c1f86093fd@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] couch commit: updated refs/heads/master to a4dbd64 Export session utility functions Other auth solutions will want to reuse these functions. These should probably be moved to a separate auth utility module but this seems like the most prudent course of action. COUCHDB-2491 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/0bb4cb5f Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/0bb4cb5f Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/0bb4cb5f Branch: refs/heads/master Commit: 0bb4cb5fe0819432cbfb88c7a5da707dc690cf29 Parents: 3e8286d Author: Paul J. Davis Authored: Fri Dec 5 10:55:04 2014 -0600 Committer: Paul J. Davis Committed: Fri Dec 5 10:55:04 2014 -0600 ---------------------------------------------------------------------- src/couch_httpd_auth.erl | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/0bb4cb5f/src/couch_httpd_auth.erl ---------------------------------------------------------------------- diff --git a/src/couch_httpd_auth.erl b/src/couch_httpd_auth.erl index e1af621..b6733cb 100644 --- a/src/couch_httpd_auth.erl +++ b/src/couch_httpd_auth.erl @@ -21,6 +21,11 @@ -export([cookie_auth_header/2]). -export([handle_session_req/1, handle_session_req/2]). +-export([authenticate/2, verify_totp/2, maybe_upgrade_password_hash/6]). +-export([ensure_cookie_auth_secret/0, make_cookie_time/0]). +-export([cookie_auth_cookie/4, cookie_scheme/1]). +-export([auth_name/1, maybe_value/3]). + -import(couch_httpd, [header_value/2, send_json/2,send_json/4, send_method_not_allowed/2]). -compile({no_auto_import,[integer_to_binary/1]}).