How complex is it to plug an external auth provider

It is the highest requested non-planned feature for Ghost. I suggest voting for it here:

Did anyone make progress and open source anything?