Use new error format for auth errors (factor exceptions into module)
This commit is contained in:
parent
9c08717173
commit
eba75494d9
25 changed files with 214 additions and 177 deletions
|
@ -3,7 +3,8 @@
|
|||
from flask import request
|
||||
|
||||
from endpoints.api import (resource, nickname, ApiResource, validate_json_request, request_error,
|
||||
log_action, Unauthorized, NotFound, path_param, require_scope)
|
||||
log_action, path_param, require_scope)
|
||||
from endpoints.exception import Unauthorized, NotFound
|
||||
from auth.permissions import AdministerOrganizationPermission
|
||||
from auth.auth_context import get_authenticated_user
|
||||
from auth import scopes
|
||||
|
|
Reference in a new issue