check_hobos: set idp session cookie name (#42878)
This commit is contained in:
parent
5b75356e17
commit
7ab878ff3c
|
@ -357,6 +357,7 @@ def test_configure_authentication_methods(http_requests):
|
|||
assert pub.cfg['sp']['idp-manage-user-attributes']
|
||||
assert pub.cfg['sp']['idp-manage-roles']
|
||||
assert pub.get_site_option('idp_account_url', 'variables').endswith('/accounts/')
|
||||
assert pub.get_site_option('idp_session_cookie_name') == 'a2-opened-session-5aef2f'
|
||||
|
||||
|
||||
def test_deploy():
|
||||
|
|
|
@ -409,6 +409,8 @@ class CmdCheckHobos(Command):
|
|||
variables['idp_account_url'] = service_url + 'accounts/'
|
||||
variables['idp_api_url'] = service_url + 'api/'
|
||||
variables['idp_registration_url'] = service_url + 'accounts/register/'
|
||||
idp_hash = hashlib.md5(force_bytes(service_url)).hexdigest()[:6]
|
||||
config.set('options', 'idp_session_cookie_name', 'a2-opened-session-%s' % idp_hash)
|
||||
|
||||
if service.get('secondary'):
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue