-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Remove edx-token-utils dependency #36077
base: master
Are you sure you want to change the base?
Conversation
48ab9fa
to
ef07615
Compare
fe88592
to
89a4ba5
Compare
b4ab13b
to
1aef9c7
Compare
5d183d0
to
c372f0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good just a couple of small things.
@@ -2530,6 +2530,15 @@ | |||
EXAMS_SERVICE_URL = 'http://localhost:18740/api/v1' | |||
EXAMS_SERVICE_USERNAME = 'edx_exams_worker' | |||
|
|||
############## Settings for JWT token handling ############## | |||
TOKEN_SIGNING = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you add this here because the new tests you added are running in both the LMS and CMS environments? If so, I think that's not necessary and we can just run them in one of the two shards. So we could remove this and the block in cms/envs/test.py
and then use the @skip_unless_lms
decorator to skip these tests in the CMS context.
|
||
|
||
############## Settings for JWT token handling ############## | ||
TOKEN_SIGNING = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there docs for how to generate a valid TOKEN_SIGNING
block that we could link to from here for people who are trying to setup their own instances?
Description
There's been a request to remove
edx-token-utils
dependency from the repository by Axim on issue #36009. The platform only uses one function from this repository, and since this repository is outdated one of the suggestions was to remove the dependency and fold the necessary parts intoedx-platform
itself.This update moves the functionality for packing/unpacking and signing JWT tokens. We only use the unpacking on
edx-platform
but I thought it was a good idea to have both implementations just in case.This would have no noticeable impact user wise.
This is a 2U contribution, but I'd like to have a review from @openedx/committers-edx-platform if possible.
Supporting information
Testing instructions
Deadline
None.