def build_v1auth(self): orf = Auth(self) # Matrix spec makes no reference to what HTTP status code is returned, # but the V1 API uses 403 where it means 401, and the webclient # relies on this behaviour, so V1 gets its own copy of the auth # with backwards compat behaviour. orf.TOKEN_NOT_FOUND_HTTP_STATUS = 403 return orf