This documentation site is about the unstable (upcoming) Comentario version.
Switch to the stable version »
Attribute: auto-non-interactive-sso
The auto-non-interactive-sso attribute of the <comentario-comments> tag allows to automatically initiate SSO login upon load
The auto-non-interactive-sso attribute of the comments tag allows to automatically trigger the non-interactive SSO login flow upon page load.
This attribute is only relevant when your website has non-interactive SSO configured.
- If set to
false(the default), you’ll need to programmatically initiate the SSO flow: find more details here. - If set to
true, Comentario will automatically initiate the SSO flow as soon as it’s done initialising.
Changing the value on-the-fly
Unlike the other tag attributes, this one isn’t reactive: it’s only consulted while Comentario initialises, so changing it on an already-running widget has no effect of its own.
To trigger the flow at a later point, call the nonInteractiveSsoLogin() method of the web component instead, as described on the Non-interactive SSO page.
The value is picked up again whenever the widget reinitialises, which happens when
lang or css-override is changed, or when main() is called. If it’s set to true at that moment and the user isn’t signed in, the SSO flow will be initiated once more.