File: settings.py

package info (click to toggle)
python-social-auth 0.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,828 kB
  • ctags: 3,245
  • sloc: python: 12,867; makefile: 119; sh: 3
file content (51 lines) | stat: -rw-r--r-- 2,260 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
SOCIAL_AUTH_SETTINGS = {
    'SOCIAL_AUTH_LOGIN_URL': '/',
    'SOCIAL_AUTH_LOGIN_REDIRECT_URL': '/done',
    'SOCIAL_AUTH_USER_MODEL': 'example.models.User',
    'SOCIAL_AUTH_LOGIN_FUNCTION': 'example.auth.login_user',
    'SOCIAL_AUTH_LOGGEDIN_FUNCTION': 'example.auth.login_required',
    'SOCIAL_AUTH_AUTHENTICATION_BACKENDS': (
        'social.backends.twitter.TwitterOAuth',
        'social.backends.open_id.OpenIdAuth',
        'social.backends.google.GoogleOpenId',
        'social.backends.google.GoogleOAuth2',
        'social.backends.google.GoogleOAuth',
        'social.backends.yahoo.YahooOpenId',
        'social.backends.stripe.StripeOAuth2',
        'social.backends.persona.PersonaAuth',
        'social.backends.facebook.FacebookOAuth2',
        'social.backends.facebook.FacebookAppOAuth2',
        'social.backends.yahoo.YahooOAuth',
        'social.backends.angel.AngelOAuth2',
        'social.backends.behance.BehanceOAuth2',
        'social.backends.bitbucket.BitbucketOAuth',
        'social.backends.box.BoxOAuth2',
        'social.backends.linkedin.LinkedinOAuth',
        'social.backends.github.GithubOAuth2',
        'social.backends.foursquare.FoursquareOAuth2',
        'social.backends.instagram.InstagramOAuth2',
        'social.backends.live.LiveOAuth2',
        'social.backends.vk.VKOAuth2',
        'social.backends.dailymotion.DailymotionOAuth2',
        'social.backends.disqus.DisqusOAuth2',
        'social.backends.dropbox.DropboxOAuth',
        'social.backends.evernote.EvernoteSandboxOAuth',
        'social.backends.fitbit.FitbitOAuth',
        'social.backends.flickr.FlickrOAuth',
        'social.backends.livejournal.LiveJournalOpenId',
        'social.backends.soundcloud.SoundcloudOAuth2',
        'social.backends.thisismyjam.ThisIsMyJamOAuth1',
        'social.backends.stocktwits.StocktwitsOAuth2',
        'social.backends.tripit.TripItOAuth',
        'social.backends.twilio.TwilioAuth',
        'social.backends.clef.ClefOAuth2',
        'social.backends.xing.XingOAuth',
        'social.backends.yandex.YandexOAuth2',
        'social.backends.podio.PodioOAuth2',
        'social.backends.reddit.RedditOAuth2',
    )
}


def includeme(config):
    config.registry.settings.update(SOCIAL_AUTH_SETTINGS)