In Twig exist "constant" function that returns constant value, but if you set "class" in first parameter and object in second parameter, then function returns the fully qualified class name of an object. So we can use it in our case and compare it on class name that we want to check like "instanceof". Example: {% if constant('class', app.user) == 'User' %}{% endif %} Or with namespace: {% if constant('class', app.user) == 'EntityBundle\\Entity\\User' %}{% endif %}
As standard SAML request logout does not work, you can use OAuth logout URL . When you try to put standard SAML logout URL, you catch an error: "The SAML v2 logout request is missing the SAMLRequest parameter." As a work case, you can use standard AOuth logout URL. For example, you can get it from Fusion Auth, in "OAuth2 & OpenID Connect Integration details" tab.
Comments