ui_locales
request parameter triggers AttributeError
under certain circumstances
#1468
Closed
2 tasks done
Labels
Describe the bug
A valid authorization request, for a client that doesn't require consent, that includes the
ui_locales
parameter triggersAttributeError: 'list' object has no attribute 'split'
.To Reproduce
skip_authorization
scope
andui_locales
parameter, i.e.:/o/authorize/?response_type=code&client_id=test&scope=openid&ui_locales=de
Expected behavior
I expect the authorization request to succeed and the user to be redirected to the redirect_uri with a code response.
Version
django==5.1
django-oauth-toolkit==2.4.0
oauthlib==3.2.2
Additional context
I've written a testcase that triggers the issue,
TestUILocalesParam.test_trusted_application_ui_locales_param
is the one that fails:My guess is that the call to
self.create_authorization_response
indjango-oauth-toolkit/oauth2_provider/views/base.py
Lines 194 to 198 in 9fceef1
django-oauth-toolkit/oauth2_provider/views/base.py
Line 149 in 9fceef1
The text was updated successfully, but these errors were encountered: