WFLY-2934 Fix SSO and programmatic authentication

Reference authentication mechanism as string instead of enum.