Commit 03a9c281 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Rafael Monnerat

slapos_jio: Fix token generation where website url is not equal to slapos_master_web_url

parent 6995e47e
......@@ -12,7 +12,13 @@ except ValueError:
web_site = context.getWebSiteValue()
request_method = "POST"
request_url = "%s/%s" % (web_site.absolute_url(), "Person_getCertificate")
request_url = "%s/%s" % (
web_site.getLayoutProperty(
"configuration_slapos_master_web_url",
default=web_site.absolute_url()
),
"Person_getCertificate"
)
access_token = portal.access_token_module.newContent(
portal_type="One Time Restricted Access Token",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment