Below wouldn't be too difficult to include https://github.com/SimpleAuthentication/SimpleAuthentication/wiki/NancyFX-Manual-Setup I'm tempted to dig through the above and see if we can just do it on the powershell side, but why reinvent?