Actually, with this bit of code here it looks like this will always return a 401 no matter what you do...