Граф коммитов

2663 Коммитов

Автор SHA1 Сообщение Дата
vladikoff 0f2d808077 Release v1.92.1 2017-08-01 11:44:23 -04:00
vladikoff bbdaf226f7 fix(db): update perf patch to use object 2017-08-01 11:41:55 -04:00
vladikoff 6f4a545a01 fix(redis): detect if redis is enable in session token delete 2017-08-01 11:41:55 -04:00
Udara Weerasinghege b533fb935d fix(redisSessions): improve redis session lookup performance (#2026) r=vladikoff,rfk
Fixes #2025
2017-08-01 11:41:55 -04:00
Vijay Budhram 8c1d7f2f73 Release v1.92.0 2017-07-26 01:32:31 -04:00
Vlad Filippov 9568c706e0 feat(style): update to new device image (#2014) r=ryanfeeley
Fixes #1914
2017-07-25 13:16:02 -04:00
Vijay Budhram 76aedd2800 fix(emails): check against original account email (#2011), r=@philbooth 2017-07-24 09:02:41 -04:00
Vijay Budhram 310e199f6a feat(tokens): delete account all reset tokens on password reset (#1979) r=vladikoff 2017-07-21 12:51:35 -04:00
Phil Booth 50c55f1cda feat(metrics): emit route performance events
https://github.com/mozilla/fxa-auth-server/pull/2012
r=vbudhram
2017-07-21 16:23:33 +01:00
Phil Booth cc052f9259 Merge branch 'train-91' 2017-07-21 07:48:23 +01:00
Udara Weerasinghege 516826b581 chore(timestamps): add two timestamps to sessions and devices (#2009) r=vladikoff
Fixes https://github.com/mozilla/fxa-auth-server/issues/2008
2017-07-20 17:08:05 -04:00
Phil Booth 4941dd5b9f feat(tokens): expire session tokens that have no device record
Session tokens that have no device record and are older than 4 weeks old
(by default) will now be rejected as expired by all auth server endpoints.
Additionally, the `/account/sessions` endpoint will filter out expired session
tokens on the same basis.

https://github.com/mozilla/fxa-auth-server/pull/1996

r=vbudhram
2017-07-20 13:38:56 +01:00
Vijay Budhram e201e7f0e8 Release v1.91.3 2017-07-19 22:31:18 -04:00
Vijay Budhram 9db0fc6a17 fix(devices): perform string comparison when notifying devices by id (#2006), r=@rfk 2017-07-19 22:28:05 -04:00
Udara Weerasinghege 1f578212c3 fix(tokens): add is memory token property to sessions (#2004) r=vladikoff 2017-07-19 15:58:06 -04:00
Vijay Budhram 0541f131ec feat(emails): Add ability to change email (#1983), r=@philbooth 2017-07-18 16:15:26 -04:00
Phil Booth 23ab4f8ed8 Merge branch 'train-91' 2017-07-18 04:30:51 +01:00
Phil Booth e779a459a0 Release v1.91.2 2017-07-18 04:10:56 +01:00
Phil Booth c0595182d1 fix(tests): update tests to match recent db changes (#1995), r=@vbudhram 2017-07-17 21:56:06 -04:00
Vlad Filippov bdf7db6c6a fix(config): set token updates to true by default (#1994) r=udaraweerasinghege 2017-07-14 16:23:01 -04:00
Phil Booth 29036090e7 refactor(server): extract email-related routes to a separate module (#1989), r=@vbudhram 2017-07-14 09:47:59 -04:00
Udara Weerasinghege 5742ffff3a * feat(cache): store updated session tokens in redis
https://github.com/mozilla/fxa-auth-server/pull/1968
r=philbooth,vladikoff
2017-07-14 08:56:21 +01:00
Shane Tomlinson 9900c4226d feat(signin): Skip signin confirmation for new accounts by default (#1992) r=vladikoff
* feat(signin): Skip signin confirmation for new accounts by default

fixes #1991

* fix(test): Fix the tests broken by the config change.

Disabling signin confirmation caused a lot of test failures.

Tests that called `loginAndVerify` to get a verified
session have been updated to call `login`.

Tests that work with both unverified and verified sessions
are handled differently. So that it's possible to generate
unverified sessions, config in these tests override
signinConfirmation.skipForNewAccounts.enabled to false.
2017-07-13 17:16:10 -04:00
Phil Booth 0217750ca2 feat(errors): include conflicting device id in errno 124 response
https://github.com/mozilla/fxa-auth-server/pull/1990
r=seanmonstar
2017-07-13 16:58:49 +01:00
Sean McArthur b0c45ca983 Release v1.91.1 2017-07-12 12:07:37 -07:00
Sean McArthur 53251a84c9 Merge pull request #1987 from mozilla/node-sec
fix(nodejs): update to 6.11.1 for security fixes
2017-07-12 12:07:12 -07:00
Sean McArthur b653e4c4f0 fix(nodejs): update to 6.11.1 for security fixes 2017-07-12 11:45:00 -07:00
Vijay Budhram b657db05ff Release v1.91.0 2017-07-12 11:28:23 -04:00
Phil Booth aecb7f16c5 fix(tests): update db tests to match recent session token changes (#1986), r=@vbudhram 2017-07-12 10:57:07 -04:00
Phil Booth a1568e3e64 Merge branch 'train-90' 2017-07-12 10:03:56 +01:00
John Morrison 2945ef9a64 fix(nodejs): update to node:4.8.4-alpine 2017-07-11 17:22:38 -07:00
Sean McArthur cff1b797ff Merge pull request #1984 from mozilla/optin-2
feat(account): receive marketingOptIn when verifying email codes
2017-07-11 10:13:58 -07:00
Sean McArthur 1d2a9f494c feat(account): receive marketingOptIn when verifying email codes 2017-07-11 09:54:51 -07:00
Phil Booth a1f3373657 chore(docs): git add generated api docs in precommit hook
https://github.com/mozilla/fxa-auth-server/pull/1985
r=shane-tomlinson
2017-07-11 12:23:07 +01:00
Phil Booth 2f10d1b0cc fix(server): return sane user agent from /account/sessions
https://github.com/mozilla/fxa-auth-server/pull/1982
r=shane-tomlinson,vbudhram
2017-07-10 17:30:43 +01:00
John Morrison fc31bcebaa Release v1.90.2 2017-07-06 11:34:07 -07:00
Sean McArthur 8a560bada6 Merge pull request #1974 from mozilla/marketing-opt-in
feat(account): send marketingOptIn to attached services on registration
2017-07-06 10:50:32 -07:00
Sean McArthur ea936426bd feat(account): send marketingOptIn to attached services on registration
Adds optional `marketingOptIn` payload parameter to `/account/create`.

If set, a flag is set in memcached that the user opted in to marketing.
The `/recovery_email/verify_code` route will check memcached for this
flag, and if found, will set `marketingOptIn` to the message sent to
attached services (SNS).

Closes #1973
2017-07-06 09:38:58 -07:00
Vijay Budhram 979968a58b feat(email): When primary email gated, send to secondary email if avalible (#1954), r=@seanmonstar 2017-07-05 11:59:05 -04:00
Phil Booth aaa2cb725d Release v1.90.1 2017-07-05 15:48:24 +01:00
Phil Booth 14f0bf946e fix(server): stop using raw user agent string for browser name
Fixes [bug 1377919](https://bugzilla.mozilla.org/show_bug.cgi?id=1377919).
https://github.com/mozilla/fxa-auth-server-private/pull/67
r=vbudhram
2017-07-05 15:47:16 +01:00
Phil Booth 7d59790ca0 chore(package): update api docs on precommit (#1972) r=vladikoff 2017-07-05 08:08:40 -04:00
Ryan Kelly baed71d201 fix(push): Don't notify the originating device about pwd change. (#1931) r=mhammond,vladikoff
* fix(push): Don't notify the originating device about pwd change.

The originating device should already know about the pwd change
thanks to a local WebChannel message from the content-server.
Avoid sending it a push notification as well, since this could
race with the WebChannel message and produce confusion.

* fix(docs): adjust doc string for password.js
2017-07-04 14:09:00 -04:00
Phil Booth ba5c927b54 refactor(routes): break out device-related routes to a separate module
https://github.com/mozilla/fxa-auth-server/pull/1971
r=vladikoff
2017-07-04 16:12:32 +01:00
Phil Booth 91f8e4358c refactor(server): eliminate some unnecessary serial invocation (#1965), r=@vbudhram 2017-06-29 14:11:16 -07:00
Sean McArthur 8d2a86180a fix(hawk): key passed to hawk must be a Buffer
https://github.com/mozilla/fxa-auth-server/pull/1966
r=philbooth
2017-06-29 09:18:13 -07:00
Sean McArthur e4463c8b48 Merge pull request #1950 from mozilla/death-to-buffers
refactor(lib): use strings instead of buffers for as much as possible
2017-06-28 16:30:06 -07:00
Sean McArthur 0cfd39ca05 refactor(lib): use strings instead of buffers for as much as possible
This settles our dance of `Buffer` vs `String` down to simply this:

> You have a `String`. You should (almost) never have a `Buffer`.

Buffers are useful for talking about a specific set of bytes, without an
encoding. In our app, the places where this is useful are:

- crypto
- mysql

We don't actually speak MySQL in this repo anywhere, so that leaves us
with only crypto. Instead of requiring the mental overhead of "Do I have
a buffer or a string?" throughout all our code base, we can just push
that completely into the crypto code.

This *should* reduce bugs where we aren't sure if we have a `Buffer` or
a `String`. If you're not in crypto, you should just have a `String`.
2017-06-28 16:05:30 -07:00
Sean McArthur 96aae0e0ca Merge pull request #1961 from mozilla/node6
feat(node): upgrade to Nodejs 6!!!
2017-06-28 16:05:01 -07:00
Sean McArthur c9be152b4b feat(node): upgrade to Nodejs 6!!! 2017-06-28 15:05:25 -07:00