I want to write a web app that depending on the URL requested sets the authentication method. For example, if a user browses to form.myapp.com, they will be prompted to login via forms based authentication. If the user browses to sso.myapp.com, they hit the same site and code base, but are then directed to use SSO as their auth method.
What event in global.asax would be used to catch this? (assuming that's the way to do it) Or is there a better way? What objects do I need to manipulate to set the auth method used?
Is this even possible or do I need to setup a separate code base/web app for each auth method?
I would like to use ASP.NET Identity for all of this.