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

64 Коммитов

Автор SHA1 Сообщение Дата
Leo McArdle e1c0d9cf9c
add 'don't show this to me again' option 2019-08-12 12:47:09 +01:00
Leo McArdle 9e106b70f9
show dinopark link prompt on login 2019-08-10 17:45:47 +01:00
Leo McArdle ffd5055731
add dinopark link controller 2019-08-07 12:11:30 +01:00
Leo McArdle 84a785e2cd
show welcome banner after dinopark sign up 2019-07-09 14:37:51 +01:00
Leo McArdle 1ce2c356a7
FEATURE: allow users to edit avatars if dinopark avatars are disabled
https://github.com/mozilla/discourse/issues/209
2019-06-05 19:44:24 +01:00
Leo McArdle cf00a5e554
Merge branch 'development' into cpu-poc 2019-06-05 19:22:55 +01:00
Leo McArdle 43e67a7d1a
FIX: work with update to jwt 2.2.1 2019-06-05 18:35:06 +01:00
Leo McArdle 0042b26554
FIX: Ensure only groups with access to dinopark are offered dinopark-linked accounts
https://github.com/mozilla/discourse/issues/198
2019-05-13 17:18:08 +01:00
Leo McArdle dfda123c3f
FIX: don't show dinopark sign up flow modal after user deletes account
https://github.com/mozilla/discourse/issues/197
2019-05-08 13:51:57 +01:00
Leo McArdle 363cee6c91
FIX: add setting to disable dinopark avatars globally
https://github.com/mozilla/discourse/issues/199
2019-05-08 13:32:47 +01:00
Leo McArdle 2ba3373cb5
FIX: refresh page when username updates
https://github.com/mozilla/discourse/issues/193
2019-05-03 14:06:55 +01:00
Leo McArdle 1d686e22d8
SPEC: make sure auth result queries the correct profile 2019-05-02 21:36:38 +01:00
Leo McArdle b447fdc0fd
FIX: sign-up was broken by previous commit
2c9cc36010

Also adds specs for c9e43eadf6
https://github.com/mozilla/discourse/issues/186
2019-05-02 19:19:30 +01:00
Leo McArdle 2c9cc36010
FEATURE: Prevent editing of synced fields from DinoPark
https://github.com/mozilla/discourse/issues/187
2019-04-26 17:50:07 +01:00
Leo McArdle 01cb63210c
Merge branch 'development' into cpu-poc 2019-04-26 17:11:13 +01:00
Leo McArdle 3b0df9af18
BACKPORT: FEATURE: consume CIS webhook and refresh profiles
https://github.com/mozilla/discourse/issues/184
2019-04-25 17:52:12 +01:00
Leo McArdle 6a99670ea1
FIX: store last_refresh and aal in database per session
https://github.com/mozilla/discourse/issues/188#issuecomment-483593821
2019-04-17 13:19:34 +01:00
Leo McArdle 94320b29c6
FEATURE: consume CIS webhook and refresh profiles
https://github.com/mozilla/discourse/issues/184
2019-04-12 11:20:15 +01:00
Leo McArdle 8d915405d6
FIX: log session when users are logged out 2019-04-11 19:33:24 +01:00
Leo McArdle c4221c5939
FIX: allow impersonation of system accounts 2019-04-11 18:51:49 +01:00
Leo McArdle ac64dc9d74
FEATURE: add link to dinopark profile, and preferences CTA
We're not currently getting any personal website data from dinopark
so setting the website preference to the dinopark profile link.
This avoids the slightly convoluted process of adding a link from a
custom user field. We can do that once dinopark starts sending
personal websites.

https://github.com/mozilla/discourse/issues/183
https://github.com/mozilla/discourse/issues/185
2019-04-10 19:08:58 +01:00
Leo McArdle 24e7e716c4
FEATURE: Implement profile picture refresh method
https://github.com/mozilla/discourse/issues/183
2019-04-10 15:04:00 +01:00
Leo McArdle 652d284ad0
FIX: add increased logging around when users are logged out
https://github.com/mozilla/discourse/issues/188
2019-04-08 13:31:32 +01:00
Leo McArdle c9e43eadf6
FEATURE: first pass at dinopark sign-up flow
Specs still need to be written.

https://github.com/mozilla/discourse/issues/186
2019-04-05 13:44:49 +01:00
Leo McArdle ade12b37a3
FIX: unstable username when dinopark username taken
Taken usernames would change on every profile refresh.

https://github.com/mozilla/discourse/issues/183
2019-04-04 02:23:44 +01:00
Leo McArdle 95249527ff
FEATURE: Implement refresh method for location
https://github.com/mozilla/discourse/issues/183
2019-04-01 21:40:31 +01:00
Leo McArdle 6bcf7cedee
FIX: usernames were being unnecessarily updated when needing sanitization
https://github.com/mozilla/discourse/issues/183
2019-04-01 18:35:10 +01:00
Leo McArdle ded00deded
FEATURE: Implement refresh method for bio
https://github.com/mozilla/discourse/issues/183
2019-04-01 18:13:29 +01:00
Leo McArdle 2b49d2b2dd
FEATURE: Implement refresh method for title
Takes preferred pronouns and fun job title and combines them into
a user's Discourse title.

https://github.com/mozilla/discourse/issues/183
2019-04-01 16:15:22 +01:00
Leo McArdle 7ef8ce5baa
FEATURE: Implement full name refresh method
Updates name from Person API v2 for users with dinopark_enabled?
set to true.

Also DRYs some specs.

https://github.com/mozilla/discourse/issues/183
2019-03-28 18:07:58 +00:00
Leo McArdle 743e186cf1
FEATURE: Implement username refresh method
Updates username from Person API v2 for users with dinopark_enabled?
set to true, after sanitization to ensure it meets Discourse's
requirements.

https://github.com/mozilla/discourse/issues/183
2019-03-27 18:32:25 +00:00
Leo McArdle ad3ce0d8aa
FEATURE: consume Person API v2
Adds an API class for Person API v2. Returns a profile with public
and verified attributes. Returns a full_name based off first_name,
last_name and alternative_name.

Also adds better logging/error messages to failed OAuth requests.

https://github.com/mozilla/discourse/issues/182
2019-03-25 12:49:58 +00:00
Leo McArdle b1d67c450d
FEATURE: add dinopark_enabled? profile flag
shows in admin user details

https://github.com/mozilla/discourse/issues/181
2019-03-25 12:42:28 +00:00
Leo McArdle 87cda3b293
FEATURE: show custom error page to users logging in with secondary email 2019-03-11 17:30:07 +00:00
Leo McArdle a8312f6449
Revert "allow users to log in with secondary emails"
This reverts commit 2f52f66454.
2019-02-27 09:06:53 +00:00
Leo McArdle 56d233d3a0
FIX: incorrect callback_url being send to auth0 2019-02-15 14:46:11 +00:00
Leo McArdle 2f52f66454 allow users to log in with secondary emails 2019-01-13 21:20:21 +00:00
Leo McArdle 957a748321 show nice error for AAL auth failure 2019-01-13 21:13:45 +00:00
Leo McArdle a1a73b619f FEATURE: show custom error page 2019-01-13 20:21:51 +00:00
Leo McArdle a0a206b870 first attempt at AAL compatibility
will block login of users if their AAL isn't sufficient,
and kill sessions if they later require a higher AAL
2019-01-13 19:08:20 +00:00
Leo McArdle c652048f2a FIX: update to work with jwt 2.1.0 2019-01-08 15:33:41 +00:00
Leo McArdle 6497c39f4e FEATURE: show "includes ldap aliases" instruction to ldap users
also sends mozilla_iam user custom_fields to users
2018-09-11 16:55:17 +01:00
Leo McArdle 51e83d0469 FIX: prevent infinite recursion of serializer 2018-09-11 14:43:49 +01:00
Leo McArdle 1a3d67ddb7 FEATURE: show duplicate accounts in user preferences 2018-09-10 17:36:21 +01:00
Leo McArdle 8229dd6e37 FIX: make update_emails work with non-en locales 2018-08-31 16:52:10 +01:00
Leo McArdle 38fe5060c5
TEMP: disable update_emails
broken for non-english browser locales
2018-08-31 12:55:22 +01:00
Leo McArdle 672977ddf0 SECURITY: if last_refresh isn't set in session, fetch from user profile 2018-08-29 18:56:54 +01:00
Leo McArdle 2d0840d3cf FIX: don't show users logging in with secondary email sign up form 2018-08-29 16:13:52 +01:00
Leo McArdle 82fa4a532c SECURITY: don't allow users to log in with their secondary email 2018-08-29 14:06:29 +01:00
Leo McArdle 12368b4b06 FIX: remove primary emails from secondary_emails attr 2018-08-24 17:57:51 +01:00