Posting from LiveWriter
Categories
I've been wanting to use LiveWriter for a while now but there was a bug in SUB which would not allow me to connect to it from LiveWriter. Last night Paul sent me a fix which will hopefully work... here goes!
[Click]
Update: Here is the fix that Paul sent me:
SUB\BlueFenix.MetaWeblog\MetaBlog.cs:
private bool Authenticate(string username, string password) {
bool result = DataLayer.Instance.Authenticate(username, password);
if (result == true) {
HttpContext.Current.User = new GenericPrincipal(new GenericIdentity(username), new string[] { });
}
return result;
}
This was because the SecurityHelper expects there to be a current user in HttpContext when you save a post, but when you login via the MetaBlog API one never gets set.
#
Cheating...
posted by
Matt Ellis
on
10/22/2006 9:13:33 PM
:
Yeah, I cheated with the security helper stuff. I removed the security check from the file system data layer, with a view to revisiting this in the future. (I want to experiment with the membership API to see if we could make it a little easier to install)
This is much nicer way to sort it...
#
All fixed
posted by
Matt Ellis
on
11/13/2006 7:05:24 AM
:
Right, this has been fixed and checked in. (Along with support for image upload in Windows Live Writer)