See https://developers.google.com/identity/protocols/AuthForInstalledApps Would be great to remove everything that is related to it from the gem.