# Path: webmachine/auth/base.py
# class Auth(object):
# 
#     def authorized(self, request):
#         return True
# 
# Path: webmachine/util/const.py
# TOKEN_REQUEST  = 2
# 
# TOKEN_ACCESS = 1


from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django.utils.importlib import import_module
    from restkit import oauth2
from webmachine.auth.base import Auth
from webmachine.util.const import TOKEN_REQUEST, TOKEN_ACCESS
# -*- coding: utf-8 -
#
# This file is part of dj-webmachine released under the MIT license.
# See the NOTICE for more information.


try:
except ImportError:
    raise ImportError("restkit>=3.0.2 package is needed for auth.")



def load_oauth_datastore():
    datastore = getattr(settings, 'OAUTH_DATASTORE',
            'webmachine.auth.oauth_store.DataStore')

# Path: webmachine/auth/base.py
# class Auth(object):
# 
#     def authorized(self, request):
#         return True
# 
# Path: webmachine/util/const.py
# TOKEN_REQUEST  = 2
# 
# TOKEN_ACCESS = 1


# Path: webmachine/auth/oauth.py
from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django.utils.importlib import import_module
    from restkit import oauth2
from webmachine.auth.base import Auth
from webmachine.util.const import TOKEN_REQUEST, TOKEN_ACCESS

# -*- coding: utf-8 -
#
# This file is part of dj-webmachine released under the MIT license.
# See the NOTICE for more information.


try:
except ImportError:
    raise ImportError("restkit>=3.0.2 package is needed for auth.")



def load_oauth_datastore():
    datastore = getattr(settings, 'OAUTH_DATASTORE',
            'webmachine.auth.oauth_store.DataStore')

    i = datastore.rfind('.')