Pass credentials as part of the uri...

Topics: Argotic.Core
Sep 29, 2008 at 4:45 PM
I would like to be able to consume an atom feed that requires authentication by passing the credentials as part of the uri:
    var uri = new Uri("http://barb:password@localhost/testfeed");
    var feed = AtomFeed.Create(uri);

Currently I have to do this:
    var uri = new Uri("http://localhost/testfeed");
    var feed = AtomFeed.Create(uri, new NetworkCredential("barb", "password"), null);

I'm quite new to web authentication so I'm not even sure this makes sense.
Is this feasible?

Oct 23, 2008 at 10:27 PM
It would depend on the security implementation details of the feed you are trying to consume. If they let you pass credentials on the URL, then I guess what you are describing would work. Or are you asking for Argotic to parse the URL for credential information prior to making the web request? I'm not sure what you are describing makes sense, as the .NET framework has an established way of providing credentials on a web request, which is what Argotic ueses.