Article View: mozilla.dev.mdn
Article #1Re: Capability urls for accounts
From: gilbertterrance70
Date: Wed, 05 Aug 2020 04:08
Date: Wed, 05 Aug 2020 04:08
85 lines
3902 bytes
3902 bytes
On Thursday, August 18, 2016 at 4:43:48 PM UTC-4, David Bruant wrote: > Hi, > > > For context, MDN is removing the Persona login option [1], leaving MDN > in a somewhat uncomfortable situation that logging to MDN now has to go > through github which generates a bit of frustration to some people. > > > I'd like to discuss here an option to get out of the github-auth-only > situation. > > One solution could be to use capability urls [2] as a form of login. The > way it would work would be that someone who creates an account provides > an email address (as they do today) and on account creation, the user > would receive a confirmation email (as it does today, I imagine? It's > been a long time I created my account). This email would contain the > capability url for account sign in. Something along the lines of: > > ------------------ > > Thank you for creating an account, David Bruant! > > > If you want to login and start editing MDN, please go to: > > https://developer.mozilla.org/login?cap=86700D44NND4KNF5O5NFP5K > > > If you received this email by mistake, blablabla... > > ------------------ > > > The backend knows that 86700D44NND4KNF5O5NFP5K is associated with > bruant.d@gmail.com, so it knows which account this associates to. > > What to do with this URL can be open, but one idea would be to login the > user (create cookies, a Django session or whatever you're doing today) > and then 302 redirect to https://developer.mozilla.org/ (but now there > are cookies and stuff, so it's all good). > > > # Benefits > > > * Easy (?) to implement > > * The URL can be bookmarked (!), so logging in to MDN takes literally > one click > > * Independance from identity providers (which can be seen as a downside) > > * Creating an account on MDN only requires an email. > > > # Security properties > > > * The capability URL is meant to be unguessable. If the random part is > long enough it's as good as a random password [3] > > Securing the MDN user account boils down to securing the email account > (which the user already has to do in both the persona and github case), > so this solution is not asking more of them. > > * People do not choose a password (so they avoid the password reuse > issue and dictionary attacks) > > * People can go to MDN and ask for another capability URL. It revokes > the previous one if it's been compromised or lost. > > > Of course, this email is only intended to be the beginning of a > discussion. I'm happy to answer any question or concern. > > > David > > > [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1273028 > > [2] https://w3ctag.github.io/capability-urls/ > > [3] https://twitter.com/jessysaurusrex/status/766340481101934592
Technical Details
Message-ID:
<f7b20f1c-44d7-4909-a39f-bcbf0ad9ded1o@googlegroups.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mailReferences:
<mailman.2027.1471553022.18165.dev-mdn@lists.mozilla.org>Show Full Headers
Complete Article Headers
Message-ID: <f7b20f1c-44d7-4909-a39f-bcbf0ad9ded1o@googlegroups.com> Subject: Re: Capability urls for accounts Date: Wed, 05 Aug 2020 04:08:46 +0000 From: gilbertterrance70@gmail.com References: <mailman.2027.1471553022.18165.dev-mdn@lists.mozilla.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mail Newsgroups: mozilla.dev.mdn Complaints-To: groups-abuse@google.com Content-Type: text/plain; charset="UTF-8" In-Reply-To: <mailman.2027.1471553022.18165.dev-mdn@lists.mozilla.org> User-Agent: G2/1.0 X-Received-Bytes: 4047 X-Received-Body-Crc: 1053712645 Mime-Version: 1.0 X-Received: by 2002:ac8:760a:: with SMTP id t10mr1432246qtq.127.1596600526624; Tue, 04 Aug 2020 21:08:46 -0700 (PDT) X-Received: by 2002:a25:6f88:: with SMTP id k130mr2033950ybc.338.1596600526384; Tue, 04 Aug 2020 21:08:46 -0700 (PDT) Nntp-Posting-Host: 98.18.154.7 Injection-Date: Wed, 05 Aug 2020 04:08:46 +0000