2 class AuthenticationConsumer(object):
\r
4 def prepare_authentication_request(self, request, redirect_to):
\r
5 raise NotImplementedError()
\r
7 def process_authentication_request(self, response):
\r
8 raise NotImplementedError()
\r
10 def get_user_data(self, key):
\r
11 raise NotImplementedError()
\r
14 class ConsumerTemplateContext(object):
\r
16 Class that provides information about a certain authentication provider context in the signin page.
\r
20 mode - one of BIGICON, SMALLICON, FORM
\r
22 human_name - the human readable name of the provider
\r
24 extra_js - some providers require us to load extra javascript on the signin page for them to work,
\r
25 this is the place to add those files in the form of a list
\r
27 extra_css - same as extra_js but for css files
\r
34 show_to_logged_in_user = True
\r
36 class InvalidAuthentication(Exception):
\r
37 def __init__(self, message):
\r
38 self.message = message
\r