Serving an iCalendar file in ASPNET MVC with authentication
问题 I'm trying to serve an iCalendar file (.ics) in my MVC application. So far it's working fine. I have an iPhone subscribing to the URL for the calendar but now I need to serve a personalised calendar to each user. When subscribing to the calendar on the iPhone I can enter a username and password, but I don't know how to access these in my MVC app. Where can I find details of how the authentication works, and how to implement it? 回答1: It turns out that Basic Authentication is what is required.