SSO on AMP pages
The Vuukle AMP comment iframe accepts an SSO token as a URL parameter. Generate the token server-side (see SSO overview) and add it to the iframe src:
<amp-iframe width="740" height="350" layout="responsive" sandbox="allow-scripts allow-same-origin allow-modals allow-popups allow-forms allow-top-navigation" resizable frameborder="0" src="https://cdn.vuukle.com/amp.html?url={CANONICAL_URL}&host={HOST}&id={ARTICLE_ID}&apiKey={APIKEY}&title={ARTICLE_TITLE}&img={ARTICLE_IMAGE_URL}&tags={ARTICLE_CATEGORY}&sso={BASE64_SSO_TOKEN}"> <div overflow tabindex="0" role="button" aria-label="Show comments" style="display:block;text-align:center;background:#1f87e5;color:#fff;border-radius:4px;"> Show comments </div></amp-iframe>Render the page server-side so {BASE64_SSO_TOKEN} is empty when no user is logged in.
Related
Was this page helpful?
Help us improve — drop a note or open the dashboard.