Unify JWT generation code
These changes unify four different approaches to JWT creation, moving the core of the AccessTokenView to a general-purpose JwtBuilder class. This utility class defaults to using the system's JWT configuration, but it will allow overriding of the signing key and audience claim to support those clients which still require this. Part of ECOM-4566.
Showing
- cms/djangoapps/contentstore/views/program.py 22 additions, 3 deletionscms/djangoapps/contentstore/views/program.py
- cms/djangoapps/contentstore/views/tests/test_programs.py 6 additions, 7 deletionscms/djangoapps/contentstore/views/tests/test_programs.py
- cms/envs/aws.py 3 additions, 0 deletionscms/envs/aws.py
- cms/envs/common.py 2 additions, 0 deletionscms/envs/common.py
- cms/envs/test.py 1 addition, 0 deletionscms/envs/test.py
- lms/djangoapps/edxnotes/helpers.py 15 additions, 2 deletionslms/djangoapps/edxnotes/helpers.py
- lms/djangoapps/oauth_dispatch/tests/mixins.py 12 additions, 0 deletionslms/djangoapps/oauth_dispatch/tests/mixins.py
- lms/djangoapps/oauth_dispatch/views.py 2 additions, 47 deletionslms/djangoapps/oauth_dispatch/views.py
- openedx/core/djangoapps/api_admin/utils.py 6 additions, 41 deletionsopenedx/core/djangoapps/api_admin/utils.py
- openedx/core/djangoapps/programs/tasks/v1/tasks.py 18 additions, 3 deletionsopenedx/core/djangoapps/programs/tasks/v1/tasks.py
- openedx/core/djangoapps/programs/tasks/v1/tests/test_tasks.py 3 additions, 4 deletions...edx/core/djangoapps/programs/tasks/v1/tests/test_tasks.py
- openedx/core/lib/edx_api_utils.py 18 additions, 2 deletionsopenedx/core/lib/edx_api_utils.py
- openedx/core/lib/tests/test_token_utils.py 48 additions, 59 deletionsopenedx/core/lib/tests/test_token_utils.py
- openedx/core/lib/token_utils.py 83 additions, 103 deletionsopenedx/core/lib/token_utils.py
Please register or sign in to comment