auth: remove relative imports
This commit is contained in:
parent
d7564fd627
commit
7444055511
1 changed files with 5 additions and 3 deletions
|
@ -7,10 +7,10 @@ from flask import request, url_for
|
||||||
from flask_principal import identity_changed, Identity
|
from flask_principal import identity_changed, Identity
|
||||||
|
|
||||||
from app import app, get_app_url, instance_keys
|
from app import app, get_app_url, instance_keys
|
||||||
from .auth_context import set_grant_context, get_grant_context
|
from auth.auth_context import (set_grant_context, get_grant_context)
|
||||||
from .permissions import repository_read_grant, repository_write_grant, repository_admin_grant
|
from auth.permissions import repository_read_grant, repository_write_grant, repository_admin_grant
|
||||||
from util.names import parse_namespace_repository
|
|
||||||
from util.http import abort
|
from util.http import abort
|
||||||
|
from util.names import parse_namespace_repository
|
||||||
from util.security.registry_jwt import (ANONYMOUS_SUB, decode_bearer_header,
|
from util.security.registry_jwt import (ANONYMOUS_SUB, decode_bearer_header,
|
||||||
InvalidBearerTokenException)
|
InvalidBearerTokenException)
|
||||||
from data import model
|
from data import model
|
||||||
|
@ -18,8 +18,10 @@ from data import model
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
CONTEXT_KINDS = ['user', 'token', 'oauth']
|
CONTEXT_KINDS = ['user', 'token', 'oauth']
|
||||||
|
|
||||||
|
|
||||||
ACCESS_SCHEMA = {
|
ACCESS_SCHEMA = {
|
||||||
'type': 'array',
|
'type': 'array',
|
||||||
'description': 'List of access granted to the subject',
|
'description': 'List of access granted to the subject',
|
||||||
|
|
Reference in a new issue