Commit ef77038a authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

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

parent 07a563b0
...@@ -12,7 +12,13 @@ except ValueError: ...@@ -12,7 +12,13 @@ except ValueError:
web_site = context.getWebSiteValue() web_site = context.getWebSiteValue()
request_method = "POST" 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( access_token = portal.access_token_module.newContent(
portal_type="One Time Restricted Access Token", 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