Aarif
c880a44947
replaced unittest assertions pytest assertions ( #26566 )
2021-02-22 12:24:07 +05:00
mariagrimaldi
acc9eaed8c
feat: Changed username max_length to get it from setting and set default to 30 chars
2021-02-19 15:29:14 -04:00
Aarif
ba16e05899
replaced unittest assertions pytest assertions ( #26564 )
2021-02-19 16:04:32 +05:00
Aarif
774caac305
replaced unittest assertions pytest assertions ( #26513 )
2021-02-18 18:07:46 +05:00
Aarif
d2644e2dc2
replaced unittest assertions pytest assertions ( #26554 )
2021-02-18 18:06:13 +05:00
Zainab Amir
c260f72c2e
VAN-311: Add multiple enterprise support for Authn MFE ( #26526 )
2021-02-18 17:24:44 +05:00
Feanil Patel
7840c1f248
Merge pull request #26487 from edx/feanil/remove_django_ratelimit_backend
...
refactor Replace django-ratelimit-backend with django-ratelimit
2021-02-16 11:16:13 -05:00
Awais Qureshi
d7dc8de053
BOM-1437
...
Fixing tests which were failing on running alone.
Main root cause was the mongodb client connection error.
On running all tests this mongodb connection establishes by some other test.
2021-02-16 10:35:59 +05:00
Matt Tuchfarber
63a144dda7
fix: Correct logging message to match function
...
The logging text was duplicated from a different function
2021-02-12 13:20:52 -05:00
Braden MacDonald
50dd1e8eca
Merge pull request #26416 from BbrSofiane/bbrsofiane/tsd-schedules_enable_debugging
...
[TSD] Annotate schedules debugging toggle
2021-02-12 09:15:54 -08:00
Olivia Ruiz-Knott
5c95258115
Merge pull request #26461 from edx/ork/MICROBA-989_notify-credentials-takes-usernames
...
feat: allow notify_credentials to take a list of usernames
2021-02-12 10:45:15 -05:00
Manjinder Singh
a5e3675ce2
docs: annotate comprehensive theming settings
2021-02-12 15:05:55 +00:00
Feanil Patel
6fb93463a8
refactor Replace django-ratelimit-backend with django-ratelimit
...
We use django-ratelimit to limit per IP login attempts, and then we use
django-ratelimit-backend to limit per username login attempts. This
change replaces the usage of django-ratelimit-backend with another
instance of django-ratelimit so that both limits can be managed by one
library.
This is the first step in being able to fully excise
django-ratelimit-backend from edx-platform. Note that we're still using
the `RateLimitMixin` in openedx/core/djangoapps/oauth_dispatch/dot_overrides/backends.py
because studio and the admin UI still relies on that for rate limiting.
Those login paths will have to be updated before we can remove the mixin
from our auth backend.
2021-02-12 09:52:13 -05:00
Sofiane Bebert
a006bdde17
add annotation for DEBUG_MESSAGE_WAFFLE_FLAG
2021-02-12 12:22:19 +00:00
stvn
0aa75a4b2b
Merge PR #26335 bd03/type-hints
...
* Commits:
style: Add more type-hints to discussions app
2021-02-11 11:00:38 -08:00
Aarif
01ac3c2ed3
replaced unittest assertions pytest assertions ( #26308 )
2021-02-11 17:41:41 +05:00
Aarif
2ea9ea916a
replaced unittest assertions pytest assertions ( #26287 )
2021-02-11 17:40:23 +05:00
Feanil Patel
14e11cad3d
Merge pull request #26460 from edx/feanil/always_squelch
...
feat: Update the user_authn app to not log PII by default.
2021-02-10 13:58:04 -05:00
stvn
b17bbc8d66
style: Add more type-hints to discussions app
2021-02-10 08:42:05 -08:00
oliviaruizknott
52814f7378
test: add test to notify_credentials for multiple usernames
2021-02-10 11:25:23 -05:00
stvn
ef77ddc18d
Merge PR #26345 bd03/admin/enabled
...
* Commits:
fix: Add DiscussionsConfiguration.enabled to admin page
2021-02-10 08:25:16 -08:00
stvn
d8d4b4a0cc
Merge PR #26346 bd03/models/str
...
* Commits:
style: Cleanup DiscussionsConfiguration.__str__
2021-02-10 08:23:49 -08:00
Feanil Patel
62c0aa4917
feat: Update the user_authn app to not log PII by default.
...
Instead of optionally not logging usernames and emails, do so by
default. This mostly removes some complexity from the app and is makes
it so that it's more secure by default.
I considered the question of allowing people to log usernames and
e-mails if they wanted to but opted not to for a couple of reasons:
* It would involve adding a new feature flag that would be the opposite
of the SQUELCH_PII_IN_LOGS which would be a bit confusing. When do you
use which one? or do you need both? etc.
* There is still a way to correlate the messages to eachother and in
most cases also to a specific user(email being the exception).
2021-02-10 10:14:58 -05:00
Waheed Ahmed
5c9c6176b6
Add skip_authn_mfe query param option.
...
Added to serve old login/register pages for the e2e tests
until new tests added or old ones are fixed for the Authn MFE.
2021-02-10 19:17:46 +05:00
edX requirements bot
a2635e9821
Python Requirements Update ( #26463 )
...
* Updating Python Requirements
* change namespaced_switch_name to name
Co-authored-by: Zulqarnain <muhammad.zulqarnain@arbisoft.com >
2021-02-10 16:25:34 +05:00
oliviaruizknott
0533ecc814
feat: allow notify_credentials to take a list of usernames
2021-02-09 17:04:21 -05:00
Adeel Ehsan
59bc5072cd
Merge pull request #26459 from edx/aehsan/van-351/field_added_in_validate_decisions_for_authn
...
field added in validate decisions for authn
2021-02-10 01:14:21 +05:00
Feanil Patel
a482bc15e3
Merge pull request #26441 from edx/feanil/make_rate_limit_errors_429s
...
Make rate limit errors 429s instead of 403s
2021-02-09 15:07:22 -05:00
adeelehsan
bcfe2874fc
field added in validate decisions for authn
...
VAN-351
2021-02-10 00:44:10 +05:00
Carla Duarte
7f7edd93c7
Merge pull request #26440 from edx/ciduarte/AA-590
...
AA-590: pass translated tab titles to MFE
2021-02-09 08:57:10 -05:00
usamasadiq
1e2aa1dec5
Apply manesty to convention warnings
2021-02-09 17:09:19 +05:00
jawad khan
95580b79a7
LEARNER-8218 Added BearerAuthenticationAllowInactiveUsern in celebration api
...
Added BearerAuthenticationAllowInactiveUsern in celebration api
2021-02-09 12:52:12 +05:00
Carla Duarte
00a025f073
AA-590: pass translated tab titles to MFE
2021-02-08 17:00:33 -05:00
Matt Tuchfarber
cabb5d928f
Merge pull request #26292 from edx/tuchfarber/add_consistent_logging_credentials_tasks
...
Make credentials celery tasks errors consistent
2021-02-08 14:40:35 -05:00
Feanil Patel
cd3e4353b1
feat: Add a 403 and 429 handler.
...
See context here: https://django-ratelimit.readthedocs.io/en/latest/cookbook/429.html#context
For now we continue to fall back to django's default 403 handler for 403
but provide a new 429 template that we use for ratelimit exceptions.
This commit also updates a logistration test that relied on the old 403
behavior of django-ratelimit instead of the newly added 429 behavior.
2021-02-08 14:03:26 -05:00
Matt Tuchfarber
64032faae7
Make credentials celery tasks errors consistent
...
In order to better alert off of tasks that failed after maximum retries,
this makes the the error for each task consistent with itself.
2021-02-08 13:55:35 -05:00
Bianca Severino
54505b82c4
Merge pull request #26436 from edx/bseverino/proctoring-check-fix
...
[MST-645] Account for no enrollment in courseware rules
2021-02-08 13:39:40 -05:00
Bianca Severino
4fb36709a5
Account for no enrollment in courseware rules
2021-02-08 13:12:52 -05:00
Fox Piacenti
c840e6f9bb
Update Library v2 Indexes to work with ElasticSearch 7. Repair blockstore integration tests. ( #26230 )
2021-02-08 11:55:47 -05:00
Usama Sadiq
7eb2c40106
Merge branch 'master' into usamasadiq/bom-2327-pylint-amnesty
2021-02-08 18:24:53 +05:00
Usama Sadiq
90666a6231
Merge pull request #26311 from edx/usamasadiq/bom-2305-pylint-amnesty
...
Applied pylint-amnesty
2021-02-08 18:23:34 +05:00
Muhammad Soban Javed
108859a550
Merge pull request #25954 from edx/iamsobanjaved/celery-tasks-openedx
...
Replace @task decorator with @shared_task in openedx
2021-02-08 18:23:22 +05:00
M. Zulqarnain
047a5f5f19
BOM-2319 : Pylint amnesty in openedx content apps ( #26347 )
...
* pylint amnesty in openedx content apps
Co-authored-by: Jawayria <jawayriahashmi@gmail.com >
2021-02-08 15:51:22 +05:00
usamasadiq
7bbde8f0f5
Applied pylint-amnesty
2021-02-08 13:00:22 +05:00
usamasadiq
e6d43ac69c
Applied pylint amnesty
2021-02-08 12:45:57 +05:00
uzairr
d86550e1a3
reset-password-success-email
2021-02-06 15:41:56 +05:00
Aarif
b3b8e81148
replaced unittest assertions pytest assertions ( #26267 )
2021-02-05 23:54:11 +05:00
Waheed Ahmed
335915a933
Fix failed attempts and lockout messages for MFE.
...
VAN-342
2021-02-05 19:37:20 +05:00
Matthew Piatetsky
b91f720b7e
Merge pull request #26293 from edx/AA-613
...
[AA-613] Return content type gate for staff users when masquerading as the Learner in Audit or Learner in Limited Access Roles
2021-02-05 09:18:34 -05:00
Matthew Piatetsky
ae7d0a1ed8
Return content type gate for staff users when masquerading as the Learner in Audit or Learner in Limited Access Roles
...
This is necessary to display the content type gate in the UI
AA-613
2021-02-04 17:34:16 -05:00