mastodon/config/locales
santiagorodriguez96 e8d41bc2fe
Add WebAuthn as an alternative 2FA method (#14466)
* feat: add possibility of adding WebAuthn security keys to use as 2FA

This adds a basic UI for enabling WebAuthn 2FA. We did a little refactor
to the Settings page for editing the 2FA methods – now it will list the
methods that are available to the user (TOTP and WebAuthn) and from
there they'll be able to add or remove any of them.
Also, it's worth mentioning that for enabling WebAuthn it's required to
have TOTP enabled, so the first time that you go to the 2FA Settings
page, you'll be asked to set it up.
This work was inspired by the one donde by Github in their platform, and
despite it could be approached in different ways, we decided to go with
this one given that we feel that this gives a great UX.

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>

* feat: add request for WebAuthn as second factor at login if enabled

This commits adds the feature for using WebAuthn as a second factor for
login when enabled.
If users have WebAuthn enabled, now a page requesting for the use of a
WebAuthn credential for log in will appear, although a link redirecting
to the old page for logging in using a two-factor code will also be
present.

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>

* feat: add possibility of deleting WebAuthn Credentials

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>

* feat: disable WebAuthn when an Admin disables 2FA for a user

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>

* feat: remove ability to disable TOTP leaving only WebAuthn as 2FA

Following examples form other platforms like Github, we decided to make
Webauthn 2FA secondary to 2FA with TOTP, so that we removed the
possibility of removing TOTP authentication only, leaving users with
just WEbAuthn as 2FA. Instead, users will have to click on 'Disable 2FA'
in order to remove second factor auth.
The reason for WebAuthn being secondary to TOPT is that in that way,
users will still be able to log in using their code from their phone's
application if they don't have their security keys with them – or maybe
even lost them.

* We had to change a little the flow for setting up TOTP, given that now
  it's possible to setting up again if you already had TOTP, in order to
  let users modify their authenticator app – given that now it's not
  possible for them to disable TOTP and set it up again with another
  authenticator app.
  So, basically, now instead of storing the new `otp_secret` in the
  user, we store it in the session until the process of set up is
  finished.
  This was because, as it was before, when users clicked on 'Edit' in
  the new two-factor methods lists page, but then went back without
  finishing the flow, their `otp_secret` had been changed therefore
  invalidating their previous authenticator app, making them unable to
  log in again using TOTP.

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>

* refactor: fix eslint errors

The PR build was failing given that linting returning some errors.
This commit attempts to fix them.

* refactor: normalize i18n translations

The build was failing given that i18n translations files were not
normalized.
This commits fixes that.

* refactor: avoid having the webauthn gem locked to a specific version

* refactor: use symbols for routes without '/'

* refactor: avoid sending webauthn disabled email when 2FA is disabled

When an admins disable 2FA for users, we were sending two mails
to them, one notifying that 2FA was disabled and the other to notify
that WebAuthn was disabled.
As the second one is redundant since the first email includes it, we can
remove it and send just one email to users.

* refactor: avoid creating new env variable for webauthn_origin config

* refactor: improve flash error messages for webauthn pages

Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
2020-08-24 16:46:27 +02:00
..
activerecord.ar.yml
activerecord.ast.yml
activerecord.bg.yml
activerecord.bn.yml
activerecord.br.yml
activerecord.ca.yml
activerecord.co.yml
activerecord.cs.yml
activerecord.cy.yml
activerecord.da.yml
activerecord.de.yml
activerecord.el.yml
activerecord.en.yml
activerecord.eo.yml
activerecord.es-AR.yml
activerecord.es.yml
activerecord.et.yml
activerecord.eu.yml
activerecord.fa.yml
activerecord.fi.yml
activerecord.fr.yml
activerecord.gl.yml
activerecord.he.yml
activerecord.hi.yml
activerecord.hr.yml
activerecord.hu.yml
activerecord.hy.yml
activerecord.id.yml
activerecord.io.yml
activerecord.is.yml
activerecord.it.yml
activerecord.ja.yml
activerecord.ka.yml
activerecord.kab.yml
activerecord.kk.yml
activerecord.kn.yml
activerecord.ko.yml
activerecord.ku.yml
activerecord.lt.yml
activerecord.lv.yml
activerecord.mk.yml
activerecord.ml.yml
activerecord.mr.yml
activerecord.ms.yml
activerecord.nl.yml
activerecord.nn.yml
activerecord.no.yml
activerecord.oc.yml
activerecord.pl.yml
activerecord.pt-BR.yml
activerecord.pt-PT.yml
activerecord.ro.yml
activerecord.ru.yml
activerecord.sc.yml
activerecord.sk.yml
activerecord.sl.yml
activerecord.sq.yml
activerecord.sr-Latn.yml
activerecord.sr.yml
activerecord.sv.yml
activerecord.szl.yml
activerecord.ta.yml
activerecord.tai.yml
activerecord.te.yml
activerecord.th.yml
activerecord.tr.yml
activerecord.ug.yml
activerecord.uk.yml
activerecord.ur.yml
activerecord.vi.yml
activerecord.zh-CN.yml
activerecord.zh-HK.yml
activerecord.zh-TW.yml
activerecord.zh_Hant.yml
ar.yml
ast.yml
bg.yml
bn.yml
br.yml
ca.yml
co.yml
cs.yml
cy.yml
da.yml
de.yml
devise.ar.yml
devise.ast.yml
devise.bg.yml
devise.bn.yml
devise.br.yml
devise.ca.yml
devise.co.yml
devise.cs.yml
devise.cy.yml
devise.da.yml
devise.de.yml
devise.el.yml
devise.en.yml Add WebAuthn as an alternative 2FA method (#14466) 2020-08-24 16:46:27 +02:00
devise.eo.yml
devise.es-AR.yml
devise.es.yml
devise.et.yml
devise.eu.yml
devise.fa.yml
devise.fi.yml
devise.fr.yml
devise.gl.yml
devise.he.yml
devise.hi.yml
devise.hr.yml
devise.hu.yml
devise.hy.yml
devise.id.yml
devise.io.yml
devise.is.yml
devise.it.yml
devise.ja.yml
devise.ka.yml
devise.kab.yml
devise.kk.yml
devise.kn.yml
devise.ko.yml
devise.ku.yml
devise.lt.yml
devise.lv.yml
devise.mk.yml
devise.ml.yml
devise.mr.yml
devise.ms.yml
devise.nl.yml
devise.nn.yml
devise.no.yml
devise.oc.yml
devise.pl.yml
devise.pt-BR.yml
devise.pt-PT.yml
devise.ro.yml
devise.ru.yml
devise.sc.yml
devise.sk.yml
devise.sl.yml
devise.sq.yml
devise.sr-Latn.yml
devise.sr.yml
devise.sv.yml
devise.szl.yml
devise.ta.yml
devise.tai.yml
devise.te.yml
devise.th.yml
devise.tr.yml
devise.ug.yml
devise.uk.yml
devise.ur.yml
devise.vi.yml
devise.zh-CN.yml
devise.zh-HK.yml
devise.zh-TW.yml
doorkeeper.ar.yml
doorkeeper.ast.yml
doorkeeper.bg.yml
doorkeeper.bn.yml
doorkeeper.br.yml
doorkeeper.ca.yml
doorkeeper.co.yml
doorkeeper.cs.yml
doorkeeper.cy.yml
doorkeeper.da.yml
doorkeeper.de.yml
doorkeeper.el.yml
doorkeeper.en.yml
doorkeeper.eo.yml
doorkeeper.es-AR.yml
doorkeeper.es.yml
doorkeeper.et.yml
doorkeeper.eu.yml
doorkeeper.fa.yml
doorkeeper.fi.yml
doorkeeper.fr.yml
doorkeeper.gl.yml
doorkeeper.he.yml
doorkeeper.hi.yml
doorkeeper.hr.yml
doorkeeper.hu.yml
doorkeeper.hy.yml
doorkeeper.id.yml
doorkeeper.io.yml
doorkeeper.is.yml
doorkeeper.it.yml
doorkeeper.ja.yml
doorkeeper.ka.yml
doorkeeper.kab.yml
doorkeeper.kk.yml
doorkeeper.kn.yml
doorkeeper.ko.yml
doorkeeper.ku.yml
doorkeeper.lt.yml
doorkeeper.lv.yml
doorkeeper.mk.yml
doorkeeper.ml.yml
doorkeeper.mr.yml
doorkeeper.ms.yml
doorkeeper.nl.yml
doorkeeper.nn.yml
doorkeeper.no.yml
doorkeeper.oc.yml
doorkeeper.pl.yml
doorkeeper.pt-BR.yml
doorkeeper.pt-PT.yml
doorkeeper.ro.yml
doorkeeper.ru.yml
doorkeeper.sc.yml
doorkeeper.sk.yml
doorkeeper.sl.yml
doorkeeper.sq.yml
doorkeeper.sr-Latn.yml
doorkeeper.sr.yml
doorkeeper.sv.yml
doorkeeper.szl.yml
doorkeeper.ta.yml
doorkeeper.tai.yml
doorkeeper.te.yml
doorkeeper.th.yml
doorkeeper.tr.yml
doorkeeper.ug.yml
doorkeeper.uk.yml
doorkeeper.ur.yml
doorkeeper.vi.yml
doorkeeper.zh-CN.yml
doorkeeper.zh-HK.yml
doorkeeper.zh-TW.yml
el.yml
en.yml Add WebAuthn as an alternative 2FA method (#14466) 2020-08-24 16:46:27 +02:00
en_GB.yml
eo.yml
es-AR.yml
es.yml
et.yml
eu.yml
fa.yml
fi.yml
fr.yml
ga.yml
gl.yml
he.yml
hi.yml
hr.yml
hu.yml
hy.yml
id.yml
io.yml
is.yml
it.yml
ja.yml
ka.yml
kab.yml
kk.yml
kn.yml
ko.yml
ku.yml
lt.yml
lv.yml
mk.yml
ml.yml
mr.yml
ms.yml
nl.yml
nn.yml
no.yml
oc.yml
pl.yml
pt-BR.yml
pt-PT.yml
ro.yml
ru.yml
sc.yml
simple_form.ar.yml
simple_form.ast.yml
simple_form.bg.yml
simple_form.bn.yml
simple_form.br.yml
simple_form.ca.yml
simple_form.co.yml
simple_form.cs.yml
simple_form.cy.yml
simple_form.da.yml
simple_form.de.yml
simple_form.el.yml
simple_form.en.yml Add WebAuthn as an alternative 2FA method (#14466) 2020-08-24 16:46:27 +02:00
simple_form.en_GB.yml
simple_form.eo.yml
simple_form.es-AR.yml
simple_form.es.yml
simple_form.et.yml
simple_form.eu.yml
simple_form.fa.yml
simple_form.fi.yml
simple_form.fr.yml
simple_form.gl.yml
simple_form.he.yml
simple_form.hi.yml
simple_form.hr.yml
simple_form.hu.yml
simple_form.hy.yml
simple_form.id.yml
simple_form.io.yml
simple_form.is.yml
simple_form.it.yml
simple_form.ja.yml
simple_form.ka.yml
simple_form.kab.yml
simple_form.kk.yml
simple_form.kn.yml
simple_form.ko.yml
simple_form.ku.yml
simple_form.lt.yml
simple_form.lv.yml
simple_form.mk.yml
simple_form.ml.yml
simple_form.mr.yml
simple_form.ms.yml
simple_form.nl.yml
simple_form.nn.yml
simple_form.no.yml
simple_form.oc.yml
simple_form.pl.yml
simple_form.pt-BR.yml
simple_form.pt-PT.yml
simple_form.ro.yml
simple_form.ru.yml
simple_form.sc.yml
simple_form.sk.yml
simple_form.sl.yml
simple_form.sq.yml
simple_form.sr-Latn.yml
simple_form.sr.yml
simple_form.sv.yml
simple_form.szl.yml
simple_form.ta.yml
simple_form.tai.yml
simple_form.te.yml
simple_form.th.yml
simple_form.tr.yml
simple_form.ug.yml
simple_form.uk.yml
simple_form.ur.yml
simple_form.vi.yml
simple_form.zh-CN.yml
simple_form.zh-HK.yml
simple_form.zh-TW.yml
sk.yml
sl.yml
sq.yml
sr-Latn.rb
sr-Latn.yml
sr.rb
sr.yml
sv.yml
szl.yml
ta.yml
tai.yml
te.yml
th.yml
tr.yml
ug.yml
uk.yml
ur.yml
vi.yml
zh-CN.yml
zh-HK.yml
zh-TW.yml