don't include using idp intro cookie button if common domain has not been
configured. git-svn-id: svn://localhost/lasso-conform/trunk@30 2a3a78c3-912c-0410-af21-e1fb2d1df599
This commit is contained in:
parent
6b761cebe1
commit
7588096077
12
lcs/root.ptl
12
lcs/root.ptl
|
@ -168,8 +168,11 @@ class RootDirectory(Directory):
|
|||
form.add_submit(kidp, _('Log on %s') % kidp)
|
||||
|
||||
if get_session().saml_idp_cookie is None:
|
||||
form.add_submit('intro', _('Get IdP via Introduction Cookie'))
|
||||
common_domain = get_cfg('sp', {}).get('common_domain')
|
||||
if common_domain:
|
||||
form.add_submit('intro', _('Get IdP via Introduction Cookie'))
|
||||
elif get_session().saml_idp_cookie:
|
||||
common_domain = get_cfg('sp', {}).get('common_domain')
|
||||
intro_cookie_q = urllib.unquote(get_session().saml_idp_cookie)
|
||||
splitted_cookie = [x for x in intro_cookie_q.split(str(' ')) if x]
|
||||
last_id = splitted_cookie[-1]
|
||||
|
@ -182,6 +185,13 @@ class RootDirectory(Directory):
|
|||
|
||||
form.render()
|
||||
|
||||
if not common_domain:
|
||||
'<p><strong>'
|
||||
_('Note: ')
|
||||
'</strong>'
|
||||
_('Service Provider not configured to use IdP Introduction Cookie')
|
||||
'</p>'
|
||||
|
||||
def loggedin_page [html] (self):
|
||||
identity_dump = get_request().user.lasso_dump
|
||||
session_dump = get_session().lasso_session_dump
|
||||
|
|
Reference in New Issue