]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/oauthauth/settings.py
adding a new setting that allows to automatically redirect the user's browser to...
[osqa.git] / forum_modules / oauthauth / settings.py
1 from forum.settings import EXT_KEYS_SET
2 from forum.settings.base import Setting
3 from django.utils.translation import ugettext_lazy as _
4
5 TWITTER_CONSUMER_KEY = Setting('TWITTER_CONSUMER_KEY', '', EXT_KEYS_SET, dict(
6 label = _("Twitter consumer key"),
7 help_text = _("""
8 Get this key at the <a href="http://twitter.com/apps/">Twitter apps</a> to enable
9 authentication in your site through Twitter.
10 """),
11 required=False))
12
13 TWITTER_CONSUMER_SECRET = Setting('TWITTER_CONSUMER_SECRET', '', EXT_KEYS_SET, dict(
14 label = _("Twitter consumer secret"),
15 help_text = _("""
16 This your Twitter consumer secret that you'll get in the same place as the consumer key.
17 """),
18 required=False))
19
20 TWITTER_AUTO_CALLBACK_REDIRECT = Setting('TWITTER_AUTO_CALLBACK_REDIRECT', True, EXT_KEYS_SET, dict(
21 label = _("Twitter auto-callback redirect"),
22 help_text = _("""
23 Automatically redirect to the Twitter authentication done page, pass the oauth_callback parameter.
24 """),
25 required=False))