diff --git a/apps/gooyal_oauth/__init__.py b/apps/gooyal_oauth2/__init__.py similarity index 100% rename from apps/gooyal_oauth/__init__.py rename to apps/gooyal_oauth2/__init__.py diff --git a/apps/gooyal_oauth/admin.py b/apps/gooyal_oauth2/admin.py similarity index 100% rename from apps/gooyal_oauth/admin.py rename to apps/gooyal_oauth2/admin.py diff --git a/apps/gooyal_oauth/apps.py b/apps/gooyal_oauth2/apps.py similarity index 69% rename from apps/gooyal_oauth/apps.py rename to apps/gooyal_oauth2/apps.py index cf6fa74..08ad008 100755 --- a/apps/gooyal_oauth/apps.py +++ b/apps/gooyal_oauth2/apps.py @@ -2,4 +2,4 @@ from django.apps import AppConfig class GooyalOauthConfig(AppConfig): - name = 'apps.gooyal_oauth' + name = 'apps.gooyal_oauth2' diff --git a/apps/gooyal_oauth/forms.py b/apps/gooyal_oauth2/forms.py similarity index 100% rename from apps/gooyal_oauth/forms.py rename to apps/gooyal_oauth2/forms.py diff --git a/apps/gooyal_oauth/migrations/0001_initial.py b/apps/gooyal_oauth2/migrations/0001_initial.py similarity index 100% rename from apps/gooyal_oauth/migrations/0001_initial.py rename to apps/gooyal_oauth2/migrations/0001_initial.py diff --git a/apps/gooyal_oauth/migrations/0002_scope.py b/apps/gooyal_oauth2/migrations/0002_scope.py similarity index 96% rename from apps/gooyal_oauth/migrations/0002_scope.py rename to apps/gooyal_oauth2/migrations/0002_scope.py index 9f7a16c..ff2a9f6 100644 --- a/apps/gooyal_oauth/migrations/0002_scope.py +++ b/apps/gooyal_oauth2/migrations/0002_scope.py @@ -8,7 +8,7 @@ import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ - ('gooyal_oauth', '0001_initial'), + ('gooyal_oauth2', '0001_initial'), ] operations = [ diff --git a/apps/gooyal_oauth/migrations/__init__.py b/apps/gooyal_oauth2/migrations/__init__.py similarity index 100% rename from apps/gooyal_oauth/migrations/__init__.py rename to apps/gooyal_oauth2/migrations/__init__.py diff --git a/apps/gooyal_oauth/models.py b/apps/gooyal_oauth2/models.py similarity index 100% rename from apps/gooyal_oauth/models.py rename to apps/gooyal_oauth2/models.py diff --git a/apps/gooyal_oauth/scopes.py b/apps/gooyal_oauth2/scopes.py similarity index 100% rename from apps/gooyal_oauth/scopes.py rename to apps/gooyal_oauth2/scopes.py diff --git a/apps/gooyal_oauth/signals.py b/apps/gooyal_oauth2/signals.py similarity index 100% rename from apps/gooyal_oauth/signals.py rename to apps/gooyal_oauth2/signals.py diff --git a/apps/gooyal_oauth/validators.py b/apps/gooyal_oauth2/validators.py similarity index 100% rename from apps/gooyal_oauth/validators.py rename to apps/gooyal_oauth2/validators.py diff --git a/gooyal_accounts/settings.py b/gooyal_accounts/settings.py index 9273b86..58b17a6 100644 --- a/gooyal_accounts/settings.py +++ b/gooyal_accounts/settings.py @@ -44,7 +44,7 @@ INSTALLED_APPS = [ 'apps.transactions', # 'apps.gooyal_restrict_scopes', # 'apps.gooyal_dynamic_scopes', - 'apps.gooyal_oauth', + 'apps.gooyal_oauth2', ] MIDDLEWARE = [ @@ -59,19 +59,19 @@ MIDDLEWARE = [ ] # Tell Django OAuth Toolkit to use the Gooyal Application model -OAUTH2_PROVIDER_APPLICATION_MODEL = 'gooyal_oauth.Application' +OAUTH2_PROVIDER_APPLICATION_MODEL = 'gooyal_oauth2.Application' OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'oauth2_provider.AccessToken' OAUTH2_PROVIDER_GRANT_MODEL = 'oauth2_provider.Grant' OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken' OAUTH2_PROVIDER = { # this is the list of available scopes - 'SCOPES_BACKEND_CLASS': 'apps.gooyal_oauth.scopes.Scopes', + 'SCOPES_BACKEND_CLASS': 'apps.gooyal_oauth2.scopes.Scopes', 'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups', 'introspection': 'Introspect token scope'}, - 'OAUTH2_VALIDATOR_CLASS': 'apps.gooyal_oauth.validators.MultiGatewayOAuth2Validator' + 'OAUTH2_VALIDATOR_CLASS': 'apps.gooyal_oauth2.validators.MultiGatewayOAuth2Validator' } # GOOYAL_RESTRICT_SCOPES = {