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 %}
The simplest way, just add hidden input with autofocus attribute . < input type ="hidden" autofocus > As it said in jQuery UI documentation, it will find this input firstly by priority and move focus on this input. But as this input hidden user does not see this. Choosing priority: The first element with the autofocus attribute The first :tabbable element within the dialog's content The first :tabbable element within the dialog's buttonpane The dialog's close button The dialog itself
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