Commit graph

649 commits

Author SHA1 Message Date
Translation updater bot e90196325a Localisation updates from https://translatewiki.net.
Change-Id: I74da4777405f214fc38d086a1098b9016e8dba78
2016-06-10 22:18:39 +02:00
Translation updater bot 71a049cc64 Localisation updates from https://translatewiki.net.
Change-Id: I6dde00bcf1c7fd3777adc7796e108c871c8d0bc6
2016-06-09 22:39:34 +02:00
Translation updater bot cfcfe47081 Localisation updates from https://translatewiki.net.
Change-Id: I43bc4e6eaf0e913ceb6e2c5e454cc5a1b99b09cb
2016-06-07 22:45:10 +02:00
Translation updater bot 47b7dd8019 Localisation updates from https://translatewiki.net.
Change-Id: Ie8a83530c9435d7f3a829882065c69ab92ff9787
2016-06-06 22:59:19 +02:00
Translation updater bot 853bc6ca00 Localisation updates from https://translatewiki.net.
Change-Id: Id8b4cdc210412ae8001c6f1d03ef912cc5e93591
2016-06-05 22:21:54 +02:00
Translation updater bot 847a4b9209 Localisation updates from https://translatewiki.net.
Change-Id: I91f32000206bc70b62744f28343a9cc56fa87568
2016-06-04 22:24:01 +02:00
Translation updater bot 5c24b3b3df Localisation updates from https://translatewiki.net.
Change-Id: I4621c364ff464bb333f11dea846f8ed26c21bee3
2016-06-03 23:21:42 +02:00
Translation updater bot f3533feac3 Localisation updates from https://translatewiki.net.
Change-Id: I4414aa077fd438e77680911151ebf292a76d25de
2016-06-02 22:24:52 +02:00
Translation updater bot a4be5669a2 Localisation updates from https://translatewiki.net.
Change-Id: Ic9c994bf5ab7c0b4c4469dba2563cf4242aeb381
2016-06-01 23:12:11 +02:00
Aaron Schulz 28d625e6bc Avoid DB connections on OATHUserRepository construction
Bug: T136224
Change-Id: I405d2f544409d635e4fac1d5222c42e8036c6945
2016-05-31 13:24:18 -07:00
Gergő Tisza 563796a98c Update for AuthManager
Handling enabling/disabling via AuthManager is left to a separate
patch.

Bug: T110457
Change-Id: Ic492b8f2477c475f8414b61505139e9a1df2ba5b
2016-05-31 19:38:41 +00:00
Dpatrick 6f809fef27 Merge "Add URL encoding to TOTP QR code URL" 2016-05-26 18:19:22 +00:00
Tyler Romeo 7b8a68fd5a
Add URL encoding to TOTP QR code URL
Add RFC 3986 URI encoding to the account label in accordance with the
Google Authenticator specification to ensure the QR code is properly
generated for usernames with special characters in them.

Bug: T136269
Change-Id: I18175c9a3c9a45346fa7a227a5209194385c6696
2016-05-26 12:20:06 -04:00
Aaron Schulz 9b8edbb7c7 Define doesWrites() for special pages
Change-Id: Ie76189ad1c91150e4cef315dacbb845911f7477a
2016-05-25 12:25:10 -07:00
Translation updater bot 1b6780b8e7 Localisation updates from https://translatewiki.net.
Change-Id: Id04818d138b280580c7d643e8fb4d97df0a481ca
2016-05-10 22:28:41 +02:00
Translation updater bot 1432439b17 Localisation updates from https://translatewiki.net.
Change-Id: Ib94b65a67b164520eb8e97459ea5b6e3024abb0a
2016-04-18 22:21:26 +02:00
Dpatrick 0aab34ffdb Merge "Delete users who didn't complete setup on upgrade" 2016-04-11 17:50:02 +00:00
Translation updater bot 71a09d79fc Localisation updates from https://translatewiki.net.
Change-Id: I23da81e04fe56170ed748279acfc0fe3a5c9a2af
2016-04-10 20:05:02 +02:00
Translation updater bot 093f81551e Localisation updates from https://translatewiki.net.
Change-Id: Ifbb40f4200c8c27089820b68379f003b34032ba5
2016-04-07 23:03:30 +02:00
jenkins-bot ec9e8fafbb Merge "Fixup DB/uid handling for SUL wikis" 2016-04-07 01:40:52 +00:00
csteipp 65543e1f6c Fixup DB/uid handling for SUL wikis
We need to pass the db name to getConnection, in addition to wfGetLB.
Also, use core's CentralIdLookup for mapping local user to CentralId
when using a central DB for OATH secret storage.

Change-Id: I12a457633956a9a34dc5302ddcff468e31dd9cef
2016-04-06 17:52:34 -07:00
csteipp e79fd8ebc5 Delete users who didn't complete setup on upgrade
Users who started the "Enable two-factor" process, but never confirmed
their setup were stored in the database under the previous format.
After Ife5f1bae4ad65b66c5e20017cc43c0576b4aba19, we no longer look at
the is_validated column to see if the user confirmed their 2fa setup,
and instead only store users in the table who have confirmed.

Delete these users from the table when updating the table format.

Bug: T130892
Change-Id: I54a706043b44db50344d138207b472c35d00724e
2016-04-06 08:54:29 -07:00
Translation updater bot fb6f9ebf17 Localisation updates from https://translatewiki.net.
Change-Id: I1f0ac20dafa8ae40eae0667e4bb6f376d821ccbb
2016-04-03 23:22:23 +02:00
Darian Anthony Patrick ff233b3e97 Reintroduce TwoFactorIsEnabled hook
Production code in another extension depends on the existence of this
hook.

Bug: T131445
Change-Id: I3844150801f724f3eb217dc16c26cb76a58aedd8
2016-04-02 10:33:18 +00:00
Translation updater bot cfc7e3849f Localisation updates from https://translatewiki.net.
Change-Id: I8115023f19aab2126c7c0a54ec98cfb6facad983
2016-04-01 22:28:06 +02:00
Dpatrick 079877734c Merge "Encrypt password when stored in user session" 2016-03-31 22:19:23 +00:00
Translation updater bot cb3d55f37c Localisation updates from https://translatewiki.net.
Change-Id: I5b11fc314d4ae3df385259bfc478e524319de3be
2016-03-31 22:45:35 +02:00
csteipp 07f99656dc Fix i18n merge errors
Address comments by Raimond Spekking on
I39859cc59f1811de42b72f6167d332ea48812f97

Change-Id: Ib17f1a2f0e70e5fd286d7ea441b13f79da3743c5
2016-03-31 07:51:26 -07:00
jenkins-bot 1dd09985d0 Merge "Move token login to separate page" 2016-03-31 04:31:39 +00:00
csteipp a24d6adfbf Encrypt password when stored in user session
During the two-step login, users with OATH enabled need to have their
login details saved into their session while we prompt them for their
OATH code. This encrypts that data, so we don't write their user's
password into our session storage.

Change-Id: I9969871205ac5c438706df41ef1519cb4cd7a964
2016-03-30 21:23:48 -07:00
Translation updater bot 1c95cc53cd Localisation updates from https://translatewiki.net.
Change-Id: I9e6ab33a2722ed40cfd5e6ee95ac95731c3625fd
2016-03-30 22:41:05 +02:00
Tyler Anthony Romeo 1a8006317d Move token login to separate page
Rather than have an extraneous form on the login page,
move the token input to a separate page. The actual
logic for logging in is identical, the only difference
is that the token is added to the form data on a second
page request.

Bug: 53195
Change-Id: I39859cc59f1811de42b72f6167d332ea48812f97
2016-03-29 16:02:54 -07:00
Translation updater bot 25828bfd82 Localisation updates from https://translatewiki.net.
Change-Id: Ie0229f920eea9591bfca9b4b53d7fc70e61e2b9b
2016-03-29 22:38:09 +02:00
Translation updater bot 9fbf9d037a Localisation updates from https://translatewiki.net.
Change-Id: I1d1d8089142ce378f95eb0b326821da57864aa0b
2016-03-28 22:44:27 +02:00
Translation updater bot 5a98aff998 Localisation updates from https://translatewiki.net.
Change-Id: I8bff7a23ae61c5640079757c04b4c481add03a1f
2016-03-27 21:20:30 +02:00
Translation updater bot fe38684597 Localisation updates from https://translatewiki.net.
Change-Id: I7d94dbe7e7acef698e31c97eb8c31718009890d2
2016-03-24 22:37:49 +01:00
Tyler Romeo 4e9ad22469 Add user right for enabling two-factor auth
Make new right oathauth-enable that the user must have to enable two
factor authentication (disabling and logging in, of course, are still
allowed).

Bug: T100376
Change-Id: I18d43f8b2cf2c2ce9c2309a43961686498b5c999
2016-03-24 12:45:41 -07:00
jenkins-bot 5ffdd6078b Merge "Allow for using separate database for OATH creds" 2016-03-24 19:17:00 +00:00
Tyler Romeo 67c7dd10e7 Allow for using separate database for OATH creds
Add configuration variable for specifying what database the OATH
credentials are stored in, that way wikis that use CentralAuth can
centralize their two-factor authentication data as well.

Bug: T100374
Change-Id: I285e2fe29fee43ddc6c5a6e51823911d43c596f6
2016-03-24 12:03:23 -07:00
Paladox 41b9f5d2e7 Add grunt-contrib-jshint to npm
Change-Id: I6bcf5c2b98e918f675181c2fe283416f07cce982
2016-03-24 16:47:31 +00:00
Translation updater bot a161c3122c Localisation updates from https://translatewiki.net.
Change-Id: I37c58596e845f958a1337193fbabca36b843209a
2016-03-23 22:23:27 +01:00
Tyler Anthony Romeo 0c389f5025 Refactored special pages into HTMLForm and proxy
Made new class ProxySpecialPage, which acts as a
proxy object to another SpecialPage object that is
determined based on context information other than
the title.

Then Special:OATH has been split into two separate
special page classes (both FormSpecialPages using
HTMLForm) that are routed to by a ProxySpecialPage
object.

In addition, the form for enabling two-factor auth
has been refactored into vform style, with some
better instructions on how to enable two-factor
authentication.

Change-Id: Ib9117cbc9d7f044de9607db81a157e1b472b5ec0
2016-03-23 11:26:04 -07:00
jenkins-bot fc54f3cd6e Merge "Refactor extension key storage" 2016-03-23 04:20:37 +00:00
Tyler Anthony Romeo 89455cdfb2 Refactor extension key storage
This takes out the actual key information from
OATHUser and puts it into an OATHKey class, which OATHUser
depends on. This allows easily swapping keys in/out from
a user.

Change-Id: Ife5f1bae4ad65b66c5e20017cc43c0576b4aba19
2016-03-22 18:08:45 -07:00
Translation updater bot c51c60bfe4 Localisation updates from https://translatewiki.net.
Change-Id: I1d6912809c20f854ef5c417f2c96889c3c18fa13
2016-03-22 22:32:28 +01:00
Translation updater bot 7f82fbc7da Localisation updates from https://translatewiki.net.
Change-Id: I0497b07e506df76bb039b3222597274e5fdb83cc
2016-03-17 23:20:10 +01:00
Translation updater bot b682faa013 Localisation updates from https://translatewiki.net.
Change-Id: Ie29359fb73a217ca8ab196075d0562e88fdad780
2016-03-09 22:44:37 +01:00
Translation updater bot 84a401f76a Localisation updates from https://translatewiki.net.
Change-Id: Ib455947e7478c3bec8d48c721f1f48b4cb81975f
2016-03-08 22:43:37 +01:00
Siebrand Mazeland 44a170a4f4 Remove use of "successful" in strings
Change-Id: If9e32d42a56b85318ce4b7446db95db579f63e14
2016-03-07 12:47:59 +01:00
Paladox ac3a2a5fa5 Add composer.json for running phplint test
Change-Id: I307bbbb6d3fe2cf655196dd4c0d4fccd75aafe7e
2016-01-19 22:29:19 +00:00