This function forces users who try to access Moodle directly to be redirected to the "SSO Host". The functionality is enabled by setting a SSO redirect URl in the plugins admin settings
The forced redirect can be overridden by using the query param "enrolkey_skipsso=on"