Move auth decorators into a decorators module

The non-decorators will be broken out in the followup change
This commit is contained in:
Joseph Schorr 2017-03-16 16:50:09 -04:00
parent abf179eb09
commit 1bd4422da9
14 changed files with 14 additions and 12 deletions

View file

@ -9,10 +9,10 @@ from flask import request, make_response, jsonify, session
from data.interfaces.v1 import pre_oci_model as model
from app import authentication, userevents, metric_queue
from auth.auth_context import get_authenticated_user, get_validated_token, get_validated_oauth_token
from auth.decorators import process_auth, generate_signed_token
from auth.permissions import (ModifyRepositoryPermission, UserAdminPermission,
ReadRepositoryPermission, CreateRepositoryPermission,
repository_read_grant, repository_write_grant)
from auth.process import process_auth, generate_signed_token
from util.http import abort
from util.names import REPOSITORY_NAME_REGEX
from endpoints.common import parse_repository_name