diff options
Diffstat (limited to 'gn_auth/auth/authorisation/users/masquerade')
-rw-r--r-- | gn_auth/auth/authorisation/users/masquerade/models.py | 10 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/users/masquerade/views.py | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/gn_auth/auth/authorisation/users/masquerade/models.py b/gn_auth/auth/authorisation/users/masquerade/models.py index 9779764..86b9e53 100644 --- a/gn_auth/auth/authorisation/users/masquerade/models.py +++ b/gn_auth/auth/authorisation/users/masquerade/models.py @@ -5,13 +5,13 @@ from datetime import datetime from flask import current_app as app -from gn_auth.auth.db import sqlite3 as db -from gn_auth.auth.authorisation.errors import ForbiddenAccess -from gn_auth.auth.authorisation.roles.models import user_roles +from ...errors import ForbiddenAccess +from ...roles.models import user_roles -from gn_auth.auth.authentication.users import User -from gn_auth.auth.authentication.oauth2.models.oauth2token import ( +from ....db import sqlite3 as db +from ....authentication.users import User +from ....authentication.oauth2.models.oauth2token import ( OAuth2Token, save_token) __FIVE_HOURS__ = (60 * 60 * 5) diff --git a/gn_auth/auth/authorisation/users/masquerade/views.py b/gn_auth/auth/authorisation/users/masquerade/views.py index 7bd8ddb..259cdfe 100644 --- a/gn_auth/auth/authorisation/users/masquerade/views.py +++ b/gn_auth/auth/authorisation/users/masquerade/views.py @@ -4,12 +4,12 @@ from functools import partial from flask import request, jsonify, Response, Blueprint -from gn_auth.auth.db.sqlite3 import with_db_connection -from gn_auth.auth.authorisation.errors import InvalidData -from gn_auth.auth.authorisation.checks import require_json +from ...errors import InvalidData +from ...checks import require_json -from gn_auth.auth.authentication.users import user_by_id -from gn_auth.auth.authentication.oauth2.resource_server import require_oauth +from ....db.sqlite3 import with_db_connection +from ....authentication.users import user_by_id +from ....authentication.oauth2.resource_server import require_oauth from .models import masquerade_as |