Revision c101b32b snf-astakos-app/astakos/im/auth_providers.py
b/snf-astakos-app/astakos/im/auth_providers.py | ||
---|---|---|
152 | 152 |
login_prompt_template = 'im/auth/shibboleth_login_prompt.html' |
153 | 153 |
|
154 | 154 |
|
155 |
class TwitterAuthProvider(AuthProvider): |
|
156 |
module = 'twitter' |
|
157 |
title = _('Twitter') |
|
158 |
description = _('Allows you to login to your account using your twitter ' |
|
159 |
'account') |
|
160 |
add_prompt = _('Connect with your Twitter account.') |
|
161 |
|
|
162 |
@property |
|
163 |
def add_url(self): |
|
164 |
return reverse('astakos.im.target.twitter.login') |
|
165 |
|
|
166 |
login_template = 'im/auth/twitter_login.html' |
|
167 |
login_prompt_template = 'im/auth/twitter_login_prompt.html' |
|
168 |
|
|
155 | 169 |
def get_provider(id, user_obj=None, default=None): |
156 | 170 |
""" |
157 | 171 |
Return a provider instance from the auth providers registry. |
Also available in: Unified diff