为什么Windows版Chromium需要API密钥,而Linux却不需要API密钥? [英] Why does Chromium for Windows need API keys, while with Linux it works without?

查看:366
本文介绍了为什么Windows版Chromium需要API密钥,而Linux却不需要API密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题涉及Google Chromium。在Windows上我可以从Chromium Project网站上下载它,在Debian Linux发行版上,我只需键入 apt installchrome。

my problem involves Google Chromium. Where on Windows I would download it from the Chromium Project Website and on a debian Linux distro I'd simply type "apt install chromium".

在我使用的Windows系统上,当我尝试登录时Chromium提供了404。但是,在全新安装的Linux上,Chromium登录没有任何错误。根据其他Stack帖子和Google论坛帖子,已将此归为API密钥。 Linux编码的Chromium有什么不同?为什么Windows Chromium没有默认的登录密钥?

On Windows systems I use, Chromium provides a 404 when I attempt to sign in. However a fresh install of Linux, Chromium signs in without any error. This has been chalked up to API keys according to other Stack posts and Google Forums posts. What is different about Linux coded Chromium, why doesn't Windows Chromium have default keys for signing in?

感谢您提供的任何清晰信息,并在可能的情况下提供一种解决方案,以使Windows Chromium能够正确登录,而不必通过Google创建一些奇怪的开发者帐户来获取密钥。

Thanks for any clarity you can provide and if possible a solution to make Windows Chromium sign in properly without having to create some weird developer account through Google for the keys.

推荐答案

我来到这里时遇到的是相同的问题,后来发现了这个Python脚本,用于在macOS下安全地注入API密钥:

I came here with the same question you have, and later discovered this Python script for injecting the API keys securely under macOS:

https://github.com/ezeeyahoo/ChromiumSyncEnabler

在自述文件中,作者说,作为生成自己的密钥的一种替代方法:

In the readme, the author says that as an alternative to generating your own keys:

You can also use keys used in chromium for linux platform:-

export GOOGLE_API_KEY="AIzaSyCkfPOPZXDKNn8hhgu3JrA62wIgC93d44k"
export GOOGLE_DEFAULT_CLIENT_ID="811574891467.apps.googleusercontent.com"
export GOOGLE_DEFAULT_CLIENT_SECRET="kdloedMFGdGla2P1zacGjAQh"

所以,手风琴为此,Linux版本仅附带了这些现成的密钥。

So, according to this, the Linux version simply comes with these ready-to-use keys.

尽管我不知道为什么Windows和macOS不能做到这一点,希望它是有用的信息。

Though I have no insight as to why this isn't done for Windows and macOS, I hope it's useful information.

这篇关于为什么Windows版Chromium需要API密钥,而Linux却不需要API密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆