Skip to content
Snippets Groups Projects

Feature/redirect successful post requests#56

Merged Nicola Jordan requested to merge feature/redirectSuccessfulPostRequests#56 into develop
12 files
+ 228
49
Compare changes
  • Side-by-side
  • Inline
Files
12
@@ -69,6 +69,7 @@ MIDDLEWARE_CLASSES = (
# ------------------------------------------------------------------------------
MIGRATION_MODULES = {
'sites': 'osmaxx.contrib.sites.migrations',
'auth': 'osmaxx.contrib.auth.migrations',
'stored_messages': 'osmaxx.third_party_apps.stored_messages.migrations',
}
@@ -298,7 +299,8 @@ LOGIN_URL = '/login/'
LOGOUT_URL = '/logout/'
# TODO: show nice user error page
SOCIAL_AUTH_LOGIN_ERROR_URL = '/'
# Used to redirect the user once the auth process ended successfully. The value of ?next=/foo is used if it was present
# Used to redirect the user once the auth process ended successfully.
# The value of ?next=/foo is used if it was present.
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/'
# Is used as a fallback for LOGIN_ERROR_URL
SOCIAL_AUTH_LOGIN_URL = '/'
@@ -307,7 +309,7 @@ SOCIAL_AUTH_NEW_USER_REDIRECT_URL = '/'
# Like SOCIAL_AUTH_NEW_USER_REDIRECT_URL but for new associated accounts (user is already logged in).
# Used in place of SOCIAL_AUTH_LOGIN_REDIRECT_URL
SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL = '/'
# The user will be redirected to this URL when a social account is disconnected
# The user will be redirected to this URL when a social account is disconnected.
SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/'
# Inactive users can be redirected to this URL when trying to authenticate.
# Successful URLs will default to SOCIAL_AUTH_LOGIN_URL while error URLs will fallback to SOCIAL_AUTH_LOGIN_ERROR_URL.
@@ -316,7 +318,7 @@ SOCIAL_AUTH_LOGIN_SUCCESS_URL = '/'
SOCIAL_AUTH_ADMIN_USER_SEARCH_FIELDS = ['username', 'email']
# TODO: remove these insecure settings and move them out of the repository!
# TODO: Remove these insecure settings and move them out of the repository!
# registered for localhost, localhost:8000 and localhost:8080 only!
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '126950426483-l14itbjtoge7iobol097m2lk0brhu1si.apps.googleusercontent.com'
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'ojL6tk6NuNC6XVHCvO0nnV8F'
@@ -344,3 +346,6 @@ CELERY_RESULT_SERIALIZER = 'json'
# Message-Storage Settings
MESSAGE_STORAGE = 'stored_messages.storage.PersistentStorage'
# Do not alter this once migrations have been run, since these values are stored in the database.
OSMAXX_FRONTEND_USER_GROUP = 'osmaxx_frontend_users'
Loading