Changes between Initial Version and Version 1 of Ticket #33513


Ignore:
Timestamp:
Feb 14, 2022, 9:14:13 AM (3 years ago)
Author:
Aurel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33513 – Description

    initial v1  
    66If a user is not authenticated I do:
    77**raise exceptions.AuthenticationFailed(_('Invalid token.'))**
    8 I expect that djano returns a 401. But django returns 403 like i were in has_permission(). But I am in authenticate() for sure and if there this exception is raised Django shaluld return a 401!
     8I expect that djano returns a 401. But django returns 403 like if I were in has_permission(). But I am in authenticate() for sure and if there this exception is raised Django, sholuld return a 401!
    99
    1010My custom auth class inherits from BaseAuthentication:
Back to Top