The predicate named shibboleth.Conditions.BrowserProfile returns true if the currently active profile supports a browser,

Is an activation condition, which means that is can be automatically configured as an activation condition, this also means it can also configured anywhere that a ProfileRequestContext is supplied as input.

It requires no parameterization and hence can be used directly by name.


Bean to return true if this is NOT a browser profile
<bean parent="shibboleth.conditions.NOT" c:_0-ref="shibboleth.Conditions.BrowserProfile"/>

If you have the ProfileRequestContext available, you can find this out directly by calling the isBrowserProfile method.

        <transition on="#{opensamlProfileRequestContext.isBrowserProfile() }" to="Somewhere" />