ska.contrib.django.ska package

Submodules

ska.contrib.django.ska.admin module

ska.contrib.django.ska.backends module

ska.contrib.django.ska.conf module

ska.contrib.django.ska.conf.get_setting(setting, override=None)[source]

Get a setting from ska.contrib.django.ska conf module, falling back to the default.

If override is not None, it will be used instead of the setting.

ska.contrib.django.ska.decorators module

ska.contrib.django.ska.defaults module

  • UNAUTHORISED_REQUEST_ERROR_MESSAGE (str): Plain text error message. Defaults to “Unauthorised request. {0}”.

  • UNAUTHORISED_REQUEST_ERROR_TEMPLATE (str): Path to 401 template that should be rendered in case of 401 responses. Defaults to empty string (not provided).

  • AUTH_USER (str): Default auth_user for ska.sign_url function. Defaults to “ska-auth-user”.

  • USER_GET_CALLBACK (str): User get callback (when user is fetched in auth backend).

  • USER_CREATE_CALLBACK (str): User create callback (when user is created in auth backend).

  • USER_INFO_CALLBACK (str): User info callback.

  • REDIRECT_AFTER_LOGIN (str): Redirect after login.

  • DB_STORE_SIGNATURES (bool): If set to True, signatures are stored in the database.

  • DB_PERFORM_SIGNATURE_CHECK (bool): If set to True, an extra check is fired on whether the token has already been used or not.

  • PROVIDERS (dict): A dictionary where key is the provider UID and the key is another dictionary holding the following provider specific keys: ‘SECRET_KEY’, ‘USER_GET_CALLBACK’, ‘USER_CREATE_CALLBACK’, ‘USER_INFO_CALLBACK’, ‘REDIRECT_AFTER_LOGIN’. Note, that the ‘SECRET_KEY’ is a required key. The rest are optional, and if given, override respectively the values of ska.contrib.django.ska.settings.

ska.contrib.django.ska.exceptions module

ska.contrib.django.ska.http module

class ska.contrib.django.ska.http.HttpResponseUnauthorized(content=b'', *args, **kwargs)[source]

Bases: django.http.response.HttpResponseForbidden

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error

status_code = 401

ska.contrib.django.ska.models module

ska.contrib.django.ska.settings module

ska.contrib.django.ska.tests module

ska.contrib.django.ska.urls module

ska.contrib.django.ska.utils module

ska.contrib.django.ska.views module

Module contents