Mixed authentication on Web Portal

Is it possible to set the authentication on the web portal to Windows authentication and anonymously. When I do it, it is always authenticated anonymously and the login mask from the web portal is displayed. I would like to use the Windows authentication for SSO first and if this fails, then the anonymous one to display the login mask.