'OIDC_CLAIMS_OPTIONS': {
'aud': {
'values': ['my_audience'],
'essential': True,
}
}
Please note the addition of essential: True
in this dict. If you leave this out it will mean that any audience will have access to your API. This is probably not what you want, so please make sure you add this to your settings if you're coming from a previous version.
Also note that cryptography needs to be a least version 2.6 to work with the new authlib library.