gbezyuk / django-crowd

Simple Attlasian CROWD authentication backend for Django
Other
18 stars 14 forks source link

HTTP 415 - Unsupported Media Type #9

Closed adamstauffer closed 7 years ago

adamstauffer commented 7 years ago

Using Crowd version 2.11.1 here, we seem to get back HTTP Status 415 - Unsupported Media Type when attempting to authenticate using the options specified in https://github.com/gbezyuk/django-crowd/blob/master/crowd/backends.py#L61

Specifically, when we change the content-type header to application/xml it seems to work. I don't know if this used to work in older versions of Crowd the Crowd API Documentation doesn't seem to provide any examples where the content-type is set.

gbezyuk commented 7 years ago

Fixed with #10 (actually I didn't test, but if you say so)