sunscrapers / djoser

REST implementation of Django authentication system.
MIT License
2.55k stars 458 forks source link

"Authentication credentials were not provided" on log out TokenAuthentication #802

Closed engin-can closed 7 months ago

engin-can commented 8 months ago

Hi,

I keep getting the following error when I log out with TokenAuthentication: Authentication credentials were not provided.. Any idea why this is happening?

curl -X POST http://localhost:8000/auth/token/logout/ --data 'f4c30aed2268e8d952a742e82fe24b012766fe5f' -H 'Authorization: Token f4c30aed2268e8d952a742e82fe24b012766fe5f'

williank commented 8 months ago

Worked... 'AUTH_HEADER_TYPES': ('JWT', 'Bearer'),

The djoser needs this key in the settings.SIMPLE_JWT

Simplejwt itself doesn't depend on it.