Change this:
server.AuthorizationEndpoint = new Uri("https://launchpad.37signals.com/authorization/new");
to this:
server.AuthorizationEndpoint = new Uri("https://launchpad.37signals.com/authorization/new?type=web_server");
Note: i added type=web_server
to the end of the uri.
Take from these official docs.