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

76 Коммитов

Автор SHA1 Сообщение Дата
Leo McArdle f66123785a
hotfix: remove person api v1 2020-11-17 20:10:44 +00:00
Leo McArdle eba4269711
hotfix: management api returning email objects rather than strings 2020-10-29 16:56:23 +00:00
Leo McArdle 4c1d02f51d
FIX: set uid for staged user created from auth0 uid 2019-12-06 14:26:49 +00:00
Leo McArdle 057c5211ef
add profile scope 2019-11-18 16:32:11 +00:00
Leo McArdle 88b5c08940
remove honeypot from pmo flow 2019-10-18 17:10:40 +01:00
Leo McArdle ae196c88d3
add methods to Profile for mozilla-gcm plugin 2019-10-08 12:00:52 +01:00
Leo McArdle 2bba06d11a
FIX: only update uploaded_avatar_id if it differs
no need to write to DB if it's the same
https://github.com/mozilla/discourse/issues/228
2019-09-19 17:37:51 +01:00
Leo McArdle 1cfd0fae30
FIX: ensure pmo avatar gets set when already set before
https://github.com/mozilla/discourse/issues/228
2019-09-19 17:28:53 +01:00
Leo McArdle 5c75389bdc
FEATURE: add unlink from pmo button in user preferences 2019-09-11 16:55:53 +01:00
Leo McArdle 5058aa70c1
FIX: show avatar in dinopark prompt
also remove preference to enable dinopark profile pictures, now
that the picture api works
2019-09-11 15:44:11 +01:00
Leo McArdle 7924308fa7
FEATURE: support picture api 2019-08-21 14:01:32 +02:00
Leo McArdle 89a469bb6c
FIX: use auth0_callback_url when set 2019-08-15 12:08:41 +01:00
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