Co-authorship just because a Professor provides me the employment? I am a postdoc at a European University. However, I am planning to quit my postdoc in a month or so since the research environment and the city life is not to me liking.

Also, I work with a Professor who is very polite, but also very busy with meetings. My salary comes from the project he administers, so he is the boss of the organization and the project.

For the past four months I have been working on a problem day and night including weekends as I found the problem very interesting and challenging. The theoretical part of the work is complete. It is a "complete" solution. He had NO contribution at all in this. Not even a single email exchange. He is too busy with meetings all the time. He is in the department twice a week for two to three hours at a time. I am also managing his master student as he has no time. 

He is definitely polite and nice though, but I have not received any input from him other than giving me printed research papers. But he always asked me to give him the PDFs of lengthy derivations which I did. But I am dealing with analytical/numerical Navier-Stokes equation and its variations, so you can imagine how much terse that is. He has the entire theory now with him from my work. He may have been a good researcher in the past but no contribution to this work. And he had no proper publication in the work that I am doing so I am not sure how much he can contribute in writing the paper.

Now remains the numerical part which I believe I can do in next 2/3 weeks. And I have the ability to write the paper by myself when I have the numerical solution.

I talked to him and asked if I can work for him based in another city. He said if it is a week visit, that is fine, but not otherwise. He said it clearly that "I will not pay you to work somewhere else."

I still have a cordial relationship with him. No worries on that part. So, I am going to leave the place and the position in a month or two for sure.

So, he gains co-authorship just because he has the authority to provide employment? What should I do? Please help. I could have continued to live in the city though it was little boring for me, provided I was able to get inputs from my collaborator, or if he had given me necessary freedom to collaborate with other researchers, which he hasn't.



Update 10th June, I have resigned now. This problem has evolved into a new stage. Please post your replies there:

Gifting co-authorship if the topic of research was suggested by my boss?

and 

Acknowledgment of funding and adding an affiliation in exchange of permission to use experimental data?
This is a form of gift authorship. The worst form, if he imposes it on you. I know some people would think otherwise, but my last supervisor, who was a big name in his field never signed papers he had no contribution on. And this was despite of the fact that he was the big grant writer and winner of the group. 

It's hard to tell what to do. In my case, I used to simply do what I was told by the boss. Only I never had such dilemmas. But, I had a few friends who were in the same situation as you. When they refused co-authorship, their supervisors got angry. I work with one of these supervisors at this time. The guy went around and told everyone my friend "stole" his idea. Nevermind that dude had no ideas to begin with. The other guy, wrote a negative recommendation letter for my other friend who lost a very tempting postdoc offer over it. 

My recommendation is to stall until you leave the group. Until then you fix all the details you need to fix for the paper and find out if your boss plans to contribute anything else to it. If it wasn't his idea and had so little involvement in it, once you are gone, you can publish without permission. As a courtesy, you can tell your superviser, after you're gone, that you are thinking of including him in the paper if he has time to make a contribution you think would be useful and within his capabilities. If not, include him in your Acknowledgements  section.

Edit: backup your correspondence with him (emails). You may need them if he's the kind of guy who gets upset and writes your editor that you "stole" ideas from him. Hopefully, it won't be the case.