Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 84198200BE6 for ; Sun, 25 Dec 2016 20:34:26 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 829D3160B2C; Sun, 25 Dec 2016 19:34:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ADA6F160B25 for ; Sun, 25 Dec 2016 20:34:25 +0100 (CET) Received: (qmail 77001 invoked by uid 500); 25 Dec 2016 19:34:24 -0000 Mailing-List: contact commits-help@ponymail.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ponymail.incubator.apache.org Delivered-To: mailing list commits@ponymail.incubator.apache.org Received: (qmail 76978 invoked by uid 99); 25 Dec 2016 19:34:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Dec 2016 19:34:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3B322180298; Sun, 25 Dec 2016 19:34:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.479 X-Spam-Level: X-Spam-Status: No, score=0.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id g_TAMdj30v2Q; Sun, 25 Dec 2016 19:34:21 +0000 (UTC) Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id F16CF5F1BA; Sun, 25 Dec 2016 19:34:20 +0000 (UTC) Received: by mail-it0-f50.google.com with SMTP id o141so118067406itc.0; Sun, 25 Dec 2016 11:34:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Yrg3s8hZ44dYpbX8WTi3CpZwrJcNC/bsmrGrUJ+bVWY=; b=d37DPufQyLza64Q/5ek14AVJB3qJV6mDAujpO35lIxa+wZmpfZfZFkU3TCwcbElODO H4xr6kSMfu/yzZ9lI5Io67OL3wJGiZd67D5+exjJf2Hqo1J91DK7XgejoHZmEo1PqK5c dnbxbViwFAO7sxMzVpqbe02KLeC6X9rxGtOPz8aFeT1iP18ltgEeI+ZFNUrEN+Ffhx5U Sg1OGPUlPHQB5xn0wI8skRiWnGOlgD4QtoVz4iVhfTDH3NpPri+S/3ShvPCGvdl2H+g6 53Qpi4fghU+pAn1brcw6D7VDPZyK2ncWYXlS4GeBxpN6KFTv3LpIUgURW3yjbeOjtqUn PsNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Yrg3s8hZ44dYpbX8WTi3CpZwrJcNC/bsmrGrUJ+bVWY=; b=A2SDVW7SAbyYL9Eew1wjwq5UtEPA/mPSk7h7BozD6/DSpvd8biKDDF5X2GuTp3jkI2 Xf3p0p7uE8/7BmYIxR8zA6DFPaayWxPSIXU71ZwZvlUwe+jSWxAYZ4SysgK96rKyUWnS fuENXi+frUHgko9k5rYIttrEs0Q3DCNPAZy8V7P4wn+S4ldm6w1nZSxFnvtItJYN3PhW utnTu4wLJv5eSnr6g8UNEvLpc9maFX0QLnmjcf+Rc1IgNuyFquS9s7CFZ/1sh2F3BEIs 3+A/IKat4Gr4Fx4MCWucbhu88NZw89xZXsWb+sS6hNnRqS9vxr0kchjtgEMrCLrT0juZ W68g== X-Gm-Message-State: AIkVDXLvajOQvV8GmgbE7S2Y1OShqn0hxMyAsZW9ce9gctKXQhI00jkr4AXm6semsshCg7YwfiDX/GgMeahNwA== X-Received: by 10.36.48.196 with SMTP id q187mr22372316itq.64.1482694460061; Sun, 25 Dec 2016 11:34:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.164.155 with HTTP; Sun, 25 Dec 2016 11:34:19 -0800 (PST) In-Reply-To: <24130eec0ffe4a5d8fc194254e2aa7ad@git.apache.org> References: <24130eec0ffe4a5d8fc194254e2aa7ad@git.apache.org> From: sebb Date: Sun, 25 Dec 2016 19:34:19 +0000 Message-ID: Subject: Re: [2/2] incubator-ponymail git commit: Kill off Persona login To: dev@ponymail.incubator.apache.org Cc: commits@ponymail.incubator.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Sun, 25 Dec 2016 19:34:26 -0000 Persona is still mentioned as being supported on the website and in the Git readme On 24 December 2016 at 12:14, wrote: > Kill off Persona login > > it's been shut down. > > > Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo > Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/d2ce7252 > Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/d2ce7252 > Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/d2ce7252 > > Branch: refs/heads/master > Commit: d2ce7252d5ffd4a7090088f6eae7994ee7c7d1a9 > Parents: 7737cdd > Author: Daniel Gruno > Authored: Sat Dec 24 13:14:42 2016 +0100 > Committer: Daniel Gruno > Committed: Sat Dec 24 13:14:42 2016 +0100 > > ---------------------------------------------------------------------- > CHANGELOG.md | 1 + > site/images/persona.png | Bin 8021 -> 0 bytes > site/js/config.js.sample | 3 --- > site/js/oauth.js | 13 ------------ > site/js/persona.js | 47 ------------------------------------------ > site/oauth.html | 2 -- > 6 files changed, 1 insertion(+), 65 deletions(-) > ---------------------------------------------------------------------- > > > http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/d2ce7252/CHANGELOG.md > ---------------------------------------------------------------------- > diff --git a/CHANGELOG.md b/CHANGELOG.md > index 43f8e4c..607214b 100644 > --- a/CHANGELOG.md > +++ b/CHANGELOG.md > @@ -94,6 +94,7 @@ > - import-mbox.py fails to unescape >From lines (#212) > - Updated Google+ API for logins > - Fixed a redirect bug with oauth > +- Removed support for Mozilla Persona > > ## CHANGES in 0.9b: > > > http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/d2ce7252/site/images/persona.png > ---------------------------------------------------------------------- > diff --git a/site/images/persona.png b/site/images/persona.png > deleted file mode 100644 > index cad27de..0000000 > Binary files a/site/images/persona.png and /dev/null differ > > http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/d2ce7252/site/js/config.js.sample > ---------------------------------------------------------------------- > diff --git a/site/js/config.js.sample b/site/js/config.js.sample > index 3614229..74cdd65 100644 > --- a/site/js/config.js.sample > +++ b/site/js/config.js.sample > @@ -69,9 +69,6 @@ var pm_config = { > } > */ > }, > - persona: { > - enabled: false // Is Mozilla Persona something we'd use? > - }, > indexMode: 'table', // front page view mode: > // phonebook: Standard phonebook mode, sort/list by domain name (a.org, b.org, c.org...) > // phonebook_short: Same as above, but sort/list by list name (dev@a.org, dev@.org, user@a.org...) > > http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/d2ce7252/site/js/oauth.js > ---------------------------------------------------------------------- > diff --git a/site/js/oauth.js b/site/js/oauth.js > index 57f5242..c6604c5 100644 > --- a/site/js/oauth.js > +++ b/site/js/oauth.js > @@ -107,19 +107,6 @@ function oauthOptions() { > oobj.appendChild(document.createElement('br')) > } > } > - > - // Mozilla Persona > - if (pm_config.persona && pm_config.persona.enabled) { > - var img = document.createElement('img') > - img.setAttribute("src", "images/persona.png") > - img.setAttribute("title", "Log on with persona") > - img.setAttribute("onclick", "navigator.id.request();") > - img.style.cursor = "pointer" > - oobj.appendChild(img) > - oobj.appendChild(document.createElement('br')) > - oobj.appendChild(document.createTextNode(' ')) > - oobj.appendChild(document.createElement('br')) > - } > } > > // onLoad function for oauth. If args (query string or bookmark) are supplied, > > http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/d2ce7252/site/js/persona.js > ---------------------------------------------------------------------- > diff --git a/site/js/persona.js b/site/js/persona.js > deleted file mode 100644 > index e0ec157..0000000 > --- a/site/js/persona.js > +++ /dev/null > @@ -1,47 +0,0 @@ > -/* > - Licensed to the Apache Software Foundation (ASF) under one or more > - contributor license agreements. See the NOTICE file distributed with > - this work for additional information regarding copyright ownership. > - The ASF licenses this file to You under the Apache License, Version 2.0 > - (the "License"); you may not use this file except in compliance with > - the License. You may obtain a copy of the License at > - > - http://www.apache.org/licenses/LICENSE-2.0 > - > - Unless required by applicable law or agreed to in writing, software > - distributed under the License is distributed on an "AS IS" BASIS, > - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. > - See the License for the specific language governing permissions and > - limitations under the License. > -*/ > - > -// We need to fetch the account data, so we can determine how to set up the > -// persona stuff here > -GetAsync("/api/preferences.lua", null, setupPersona) > - > - > -function setupPersona(json) { > - > - navigator.id.watch({ > - loggedInUser: json.login ? json.login.email : 'not@logged.in', > - onlogin: function(assertion) { > - $.ajax({ > - type: 'POST', > - url: '/api/oauth.lua?mode=persona', > - data: {assertion: assertion}, > - success: function(res, status, xhr) { location.href = "/"; }, > - error: function(xhr, status, err) { > - navigator.id.logout(); > - alert("Login failure: " + err); > - } > - }); > - }, > - onlogout: function() { > - $.ajax({ > - type: 'POST', > - url: '/api/persona.lua?mode=logout', // This does nothing atm! > - success: function(res, status, xhr) { } > - }); > - } > - }); > -} > \ No newline at end of file > > http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/d2ce7252/site/oauth.html > ---------------------------------------------------------------------- > diff --git a/site/oauth.html b/site/oauth.html > index fa82dad..ed843ca 100644 > --- a/site/oauth.html > +++ b/site/oauth.html > @@ -63,7 +63,5 @@ the License. --> > > > > - > - > > > \ No newline at end of file >