JWT audience is validated if JWT_VERIFY_AUDIENCE is set to True. See
|
'verify_aud': settings.JWT_AUTH.get('JWT_VERIFY_AUDIENCE', True), |
.
However, since we don't have a strong stance on this, JWT_VERIFY_AUDIENCE is set to False in many places, including in edx.org settings. See https://github.com/search?q=(org%3Aopenedx%20OR%20org%3Aedx)%20JWT_VERIFY_AUDIENCE&type=code
Additionally, in many edx.org settings, the AUDIENCE setting is unnecessarily encrypted, which leads to further confusion.
JWT audience is validated if
JWT_VERIFY_AUDIENCEis set to True. Seeedx-drf-extensions/edx_rest_framework_extensions/auth/jwt/decoder.py
Line 260 in ae7416f
However, since we don't have a strong stance on this,
JWT_VERIFY_AUDIENCEis set to False in many places, including in edx.org settings. See https://github.com/search?q=(org%3Aopenedx%20OR%20org%3Aedx)%20JWT_VERIFY_AUDIENCE&type=codeAdditionally, in many edx.org settings, the AUDIENCE setting is unnecessarily encrypted, which leads to further confusion.