openwisp / django-freeradius

Administration web interface and REST API for freeradius 3 build in django & python, development has moved to openwisp-radius
http://openwisp-radius.readthedocs.io
Other
365 stars 87 forks source link

[api] Improve robustness of TokenAuthentication #182

Closed nemesifier closed 6 years ago

nemesifier commented 6 years ago

Reserved for GCI

At this line: https://github.com/openwisp/django-freeradius/blob/master/django_freeradius/api/views.py#L29

The code would fail if the authorization header does not contain any space. Proceed as follows: