You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the ApiTokenAuthentication class, drf-oidc-auth is required as a dependency. Actually ApiTokenAuthentication is tightly coupled with drf-oidc-auth as it extends drf-oidc-auth's JSONWebTokenAuthentication. Django-helusers doesn't restrict the used version of drf-oidc-auth in any way.
For this to work Django-helusers should configure drf-oidc-auth correctly. There is now a problem with how accepted audience values are configured in different versions of drf-oidc-auth.
ApiTokenAuthentication overrides the get_audiences method and this works for drf-oidc-auth versions < 1. In version 1.0.0 drf-oidc-auth changed the way how accepted audiences are configured. This is mentioned in the release notes.
Currently ApiTokenAuthentication accepts any "aud" claim value with drf-oidc-auth versions >= 1.0.0.
The text was updated successfully, but these errors were encountered:
One option would be to reimplement ApiTokenAuthentication using RequestJWTAuthentication and completely without drf-oidc-auth. Perhaps something like this (completely untested):
When using the
ApiTokenAuthentication
class, drf-oidc-auth is required as a dependency. ActuallyApiTokenAuthentication
is tightly coupled with drf-oidc-auth as it extends drf-oidc-auth'sJSONWebTokenAuthentication
. Django-helusers doesn't restrict the used version of drf-oidc-auth in any way.For this to work Django-helusers should configure drf-oidc-auth correctly. There is now a problem with how accepted audience values are configured in different versions of drf-oidc-auth.
ApiTokenAuthentication
overrides theget_audiences
method and this works for drf-oidc-auth versions < 1. In version 1.0.0 drf-oidc-auth changed the way how accepted audiences are configured. This is mentioned in the release notes.Currently
ApiTokenAuthentication
accepts any "aud" claim value with drf-oidc-auth versions >= 1.0.0.The text was updated successfully, but these errors were encountered: